![]() |
|
Thumbnails in image.php - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Thumbnails in image.php (/thread-51.html) |
Thumbnails in image.php - RogerUsh - 27-09-2005 I am trying to place the code for thumbnails from album.php into image.php but I am coming across some restrictions. It seems as if I can't place the thumbnails before the image because there is a conflict grabbing the 'current_image' value. I get this error: Fatal error: Call to a member function on a non-object in /home/www/jesseo/public_html/portfolio/zen/template-functions.php on line 577. Is there a work around this? I'm trying to get the thumbnails to line-up vertically on the left-hand side using only css, and I don't know a way to do it without putting the thumbnails before the image. Thanks! -Rog Thumbnails in image.php - trisweb - 27-09-2005 So what you're trying to do is put all the thumbnails from the album into the image page, along with the current image... What I would do is save the $_zp_current_image in some backup variable, like $_zp_current_image_backup and then restore it after you've gone through the album loop. In fact I do believe that's what I'll do to the album loop from now on, to make it restore the original current_image after it alters it... Thumbnails in image.php - RogerUsh - 30-09-2005 Worked just fine! `` before the thumbnail loop: `` and put: `` after the loop: `` and it worked just fine. Thumbnails in image.php - trisweb - 30-09-2005 Just FYI - This has been fixed in version 0.9 -- All the loops now restore the previous state of the environment after they run, so you should be able to do anything anywhere |