edlund
Forum Replies Created
-
The featured image size is defined in your theme and is independent you choosing full size or not. So if you want full size images as featured images you need to look into your theme code and change the size there.
So unless the the_post_thumbnail is called with the ‘full’ option in the code it will not display the image as full sized.
yes.
Depending on the way your theme uses the featured image there should be a fix included in the next release.
From the FAQ:
2. What the hell is an album and a gallery in NextGEN Gallery ? Itβs confusing
Yes, it is (if you compare it with Gallery2 or Coppermine). I thought in the beginning of the development the opposite way is correct and so the structure is :
Gallery is a container for your photos. If you divide your photos into categories you will most likely want a βGalleryβ for each collection.
Album would be a collection of one or more Galleries.Glad it helped. Could you please mark the topic as resolved.
Yes I could, but I usually charge for jobs like that. So you might want to look for someone else. Otherwise let me know.
It is the gallery number which you can see in the first column under “manage gallery” on the admin pages.
The short and rude answer would be yes I have π
The bit longer answer is: obtain the same with the following code replacing your two lines:
<?php if (function_exists("has_post_thumbnail") && has_post_thumbnail() ) { the_post_thumbnail('full',array('alt'=>the_title_attribute('echo=0'))); } ?>which also checks if there is a thumbnail image before inserting it. The parameter ‘full’ means that it will take the original size image which is what the code you have posted does. If you have a specified post thumbnail size you want to use, you can replace it with ‘post-thumbnail’.
I misread your post. It seems that he uses the id to get the post thumbnail and then gets a build in function to get the image source.
The call to wp_get_attachment_image_src does not work on nextgen galleries.
Depending on how he uses the $image variable later, it can be changed in the theme to support nextgen images as well.
You probably shouldn’t exit at that point, since that usually stops the processing of the rest of the site.
And no, I don’t have any other good ideas. I need to get my hands dirty in order to look into this kind of problem.
It is difficult to say what is wrong. If the site hasn’t been updated since 2009 a lot of things has changed.
It seems like you need to create the pages that the menu is pointing and put the galleries on those pages, but I am far from certain.
You can set the constant NGG_SKIP_LOAD_SCRIPTS such that the scripts wont load on any page and then manually load them on the pages you need it. I think that is about it for solutions right now.
There should be a working solution here:
http://code.google.com/p/nextgen-gallery/issues/detail?id=348I think Alex is working on putting it into the next update, but if you can’t wait you can try to replace the file your self.
/Kristian
You can center it approximately with css. but you need to tweak a few things.
First of all there is nothing called float:center. Either things float to the left or to the right, that is part of that property.
If you in the “.ngg-gallery-thumbnail img” part remove the display:block line. your images will be centered in their divs. The tricky part then becomes to spread these divs out equally. since 100/6 = 16.66666 and currently the width of the div is 16% so you miss a bit.
There is also something with margins in the css for “.ngg-gallery-thumbnail” which only have a right margin. If you remove that or add a left margin of equal width you should be a tad closer.
Hope this helps.
You need to change a bit of css to center the images.
In the “.ngg-gallery-thumbnail” part you need to remove the float:left
and in the “.ngg-gallery-thumbnail img” part you need to remove the display:block.Then your images will be centered. However you will have a bit more spacing between lines, but I think that can be corrected with css as well.
/Kristian