no thumbnails for list on main gallery page (fgallery)
lfrey - October 28, 2009 - 00:16
| Project: | Flash gallery |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
hi there,
everything seems installed correctly, but I have no thumbnail(s) as part of the gallery list on the fgallery page. what did I miss?
thanks,
lfrey

#1
If you already had your images created before fgallery, then yhou will need to rebuild the thumbnails.
You need to go to Content Management > Flash Galleries and under miscellaneous. Tick the box: Build thumbnail library.
Have a look at this issue too: (you might be having a folder permissions issue)
http://drupal.org/node/555070
cheers,
#2
I probably wasn't clear - my thumbnails within the flash gallery are great - all appearing correctly and looking good - but I was wondering if there should be thumbnails on the main gallery page (fgallery), like one per gallery listing?
also, i've spent the last hour trying to figure out how I can create a block that lists the flash gallery titles, and I just can't get it - do you have any suggestions?
thanks again for your help,
lfrey
#3
Same thing for me.
Thumbnails within the galleries are fine, but there are no thumbnails on the "/fgallery" page. There are empty "a href" tags which presumably are meant to have the image in them.
The written title of each gallery is linked and displaying correctly. Its just the thumbnails on the fgallery page that don't show up.
#4
I have the same problem too but found a work around.
I managed to do some digging into the flash_gallery.module and figured out there was a problem in the function theme_flash_gallery($galleries, $tid).
I will try to explain what I did to see if it helps anyone else but it is a bit technical and involves coding.
In the function theme_flash_gallery I discovered the variable "gallery->latest" (around line 129 in the module) was set to nothing and hence no thumbnail image was being created which is what this line basically does. So I figured out a database query that would get the node of the latest image in the gallery and set "gallery->latest" to this value. Hey presto it worked!
I used the code below in the loop to find out the value of my variables and thats how I discovered it. Yes the old print_r:
<?phpprint_r($gallery);
?>
1.) The first step to the work arouns involves overriding the function by copying it into your template.php file under the function name: "_flash_gallery".
2.) The second step needs the code to be added just after the begining of the foreach loop (after line 126 in the original module):
<?php// Get last changed node id for thumbnail.
$result = db_query('select node.nid as nid, node.changed as lastupdated FROM {node} AS node INNER JOIN {term_node} AS term ON node.nid = term.nid WHERE term.tid = '.$gallery->tid.' ORDER BY node.changed DESC LIMIT 1');
$row = db_fetch_array($result);
// Set Gallery latest.
$gallery->latest = node_load(array('nid' => $row['nid']));
?>
I would say this is a dirty fix because I don't completely understand how the taxomny links into the image/gallery module and there must be some reason why in my installation the "gallery->latest" value was not being set. However if I look at one of the image gallery views I can see this being set ok. Very strange.
Well it worked for me, and if it save you some time then good luck. If anyone else can verify it then maybe it is a bug?