ZenphotoCMS Forum
Lightbox problem - 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: Lightbox problem (/thread-8385.html)



Lightbox problem - Jeroen07 - 2011-03-19

I've manually installed a lightbox so the foto's are more user friendly.

As you can see here, it kinda works:

http://www.iendracht-archief.be/foto/2010-2011/koksijde-eendracht-aalst/

But, i'm still having some problems:

  • The "Next" and "Last" button doesn't work. How could i fix that?
  • I would like to display the description under the foto (now, it's the title that is displayed). I succeeded to display the title by adding this to the link:

" title="" >

When i change that to getImageDescription, it doesn't work...

  • What about google. Will my images be indexed if I display them this way (so only with lightbox, no page for every image) ...

Thanks in advance




Lightbox problem - acrylian - 2011-03-19

  1. Well, regarding user friendly: keep in mind that if someone disables Javascript in his browser he can't access them at all. Additionally no one can point some one to a image he likes since he can't link it. He has describe it like the 6th image in the 10th row.

  2. Regarding next/prev consult the documentation of the lightbox scripts used (it is not hte colorbox that comes with Zenphoto as far as I can see) and set the proper defines on your theme.

  3. Regarding the description it does really help to read our documentation as well. Start with the theming tutorial and possibly the functions documentation for the correct names.

  4. The full images probably are indexed directly based on the other settings of your site (htaccess, permissions, robot.txt). Since there is no image page of course title, description etc. are not.




Lightbox problem - Jeroen07 - 2011-03-20

Thanks for your quick response acrylian.

I think you're right that the lightbox should only be placed on the image page itself, but i fear that i have a too limited knowledge of PHP to do this correctly, and i can't find a manual that explains it clearly.

I would like to have the normal resolution on the image page, but when you click on the photo, you should get the full size image in a lightbox effect. And you should be able to browse to the next image in the lightbox...

Do you think you could explain me briefly how to do this?




Lightbox problem - acrylian - 2011-03-21

Look at the standard Zenpage theme for example which does exactly this.




Lightbox problem - Jeroen07 - 2011-03-21

I tried to do that, but what part do I have to copy? When i copy the whole script, it works, but when I copy some parts, it doesn't work...




Lightbox problem - acrylian - 2011-03-21

Look at the source code and see how the lightbox script you use needs to be set up (there are tons of derivates).




Lightbox problem - Jeroen07 - 2011-03-21

Could you tell me what I have to copy from image.php in Zenpage? I tried a hundred things, but it's not working...

[code]

 |  | 



Lightbox problem - acrylian - 2011-03-22

The full image part and the colorbox JS define. Please read the theming tutorial to learn the basics of Zenphoto theming. Also review the Colorbox website about how to set that up.