ZenphotoCMS Forum
permanent links to photo shown in lightbox - 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: permanent links to photo shown in lightbox (/thread-1207.html)



permanent links to photo shown in lightbox - monster - 2007-02-27

Hi,
i would like to know if there is possibility to make such a feature...
I use lightboxes for previewing images
and I cant send links to my photos b/c they dont have any URL
I imagine that it would be possible to have URL,
which firstly lead to album/page and
then automatically opens lightbox with adequate image
like for example here
http://monster.forall.pl/minishowcase/#025-paris2007:DSC_5476.JPG




permanent links to photo shown in lightbox - trisweb - 2007-02-27

Definitely possible. The idea is to get the request url (window.location, I believe) in the Javascript on the page, which includes the image filename after the # sign (an HTML anchor, normally) then use that string to load the correct image after the page loads. It's a good practice for javascript-based pages.

Another good practice is to actually change that window.location when changing images, so the back/forward buttons can work, the history is intact, and bookmarks can be made. It's actually a good way to do things.

I've been planning on making a javascript-based theme for ages now.. I hope I get the time soon, because it'd be really freakin cool.




permanent links to photo shown in lightbox - monster - 2007-02-27

I'll be waiting for this cool feature
I'm really interested in it!