![]() |
|
almost there - latest images and 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: almost there - latest images and lightbox (/thread-1586.html) |
almost there - latest images and lightbox - Lillymon - 2007-08-09 first of all, thank you Zenphoto makers for this awesome script. i've been having a hard time arranging my gallery and having to deal with 2342452 html pages and stuff but this script made everything a piece of cake! .. even though i know nothing about php or working with scripts in general i was able to install zenphoto without any problems .. i even got around integrating it nicely into my own homepage and i already solved many little problems thanks to the many threads here .. i still have two tiny problems i tried my best to find the answers to them here before bothering anyone but didn't find anything .. so im hoping someone will guide me with my problems .. please ? im using the default theme which i customized to fit my site. "> ` or am i doing it wrong in the first place O_O?? my second problem is that i want to use the 'latest images' hack which is here : http://www.zenphoto.org/trac/wiki/ZenphotoHacks but i dont know where exactly to put it. im really sorry for talking so much but i want to make my problems clear. here is the link to my gallery : http://lillymon.net/artworks almost there - latest images and lightbox - dspnorman - 2007-08-09 You need to add the rel="lightbox" to the anchor (link) tag. You can put it after the title in the link tag, like so:
almost there - latest images and lightbox - sbillard - 2007-08-09 The best way to add the 'latest images' hack is to copy the code to a file named (for instance) custom-functions.php. Then you stick almost there - latest images and lightbox - Lillymon - 2007-08-10 @dspnorman: i added it like this ` " rel="lightbox[]"> ` @sbillard: thank you both of you for your time and help almost there - latest images and lightbox - Ballwalker - 2007-08-10 The correct code, like [b]dspnorman[/b] had said, should be:
The problem was you were adding an extra Try it again without that and see if that works for you. almost there - latest images and lightbox - Lillymon - 2007-08-10 i did try it without that extra bit but it still didn't work .. it only stops the image from opening in a new window. =( almost there - latest images and lightbox - penzoto - 2007-08-10 from a quick glance, it looks like you are missing some css. Otherwise, it looks like it is working. almost there - latest images and lightbox - Lillymon - 2007-08-10 thanks alot penzoto .. dspnorman was right but i totally forgot to fix the lightbox css .. it shows up now but something makes me think lightbox is not meant for using with big images because the black overlay always breaks when viewing big images but looks fine with smaller ones .. anyways, i'll skip the lightbox .. but i still need to figure out how to use the hack for the latest images .. any help with that please ? im a fast learner so yeah, any help will be appreciated =) almost there - latest images and lightbox - acrylian - 2007-08-10 Just make a php-file called "latest_images.php" and place it within your theme folder. It should look like this: Then place `` within the head of your theme file. Then place `` within the html-body where you want to show the latest images. The "4" means in this case the 4 latest images are shown. PS: Don't you think that the pictures on your gallery need to be a little compressed. 300-400k for pictures of that shown size is not necessary. almost there - latest images and lightbox - Lillymon - 2007-08-10 @acrylian : almost there - latest images and lightbox - livejamie - 2008-08-25 How would I make this work to display on an external site? like if I wanted to display this on index.php in the root of my site, when I have zenphoto in /gallery/ of my root. |