![]() |
|
Next album's first picture - 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: Next album's first picture (/thread-5554.html) |
Next album's first picture - pedroPT - 2009-07-27 Hey all. I've also looked into the source code, and tryed to put together a function to achieve this but that requires some deeper knowledge of how zenphoto is built. This is what I need to: I am comfortable with PHP, i just need a bit of help. Thank you Next album's first picture - sbillard - 2009-07-27 There is no function to point to the first image of the next album. You will have to build that from the object model. Next album's first picture - pedroPT - 2009-07-27 I can't really find the object model. But i am thinking about this quick hack: All functions and plugins seem to access whatever is necessary through $zp* globals. Getting the albums with Then loop until i get my album and therefore know witch one is next and with one is previous. Thank you Next album's first picture - sbillard - 2009-07-27 Sart here: http://www.zenphoto.org/category/User-Guide/ -- the second page has a guide on 'How to read the Zenphoto Functions Guide'. But since you said you were comfortable with PHP I presumed you could actually look at the objects themselves in the PHP code. Next album's first picture - pedroPT - 2009-07-28 Ok, here it goes. It took me some time, but it was rather easy in the end. Neat application design It can be a bit tricky to follow the code because it's getting very extensive. Anyway, here go the functions I used: ` function getPrevAlbumFirstPicture() { |