Member
Member
zanderography   30-07-2008, 22:26
#1

Can anyone point me in a good direction for this implementation I'd like to provide for one of my clients:

The gallery design I'm creating shows all of the thumbs of a given album in a addition to the larger version of the currently selected main image. Following the example from the zenphoto themes this seems easy to do separately on album.php, then image.php, but I'm having trouble figuring out how to combine the needed functions on to one page. How does zenphoto know which page it's on (and therefore limit was functions I have access to)?

Any help would be greatly appreciated!

Member
Member
sbillard   30-07-2008, 23:57
#2

Zenpoto 'knows' what page it is on by the paramters of the URL. If these include just an album you are on an album page, if they include both an album and an image you are on an image page. More specifically, zenphoto loads your theme index.php if there are no parameters, album.php if there is just an album parameter, and image.php if there are both an album and an image parameter.

But, that is maybe not so important. Sounds like you need to modify the album.php page to show the images. You might want to look at the Efferevescence+ theme. It has a 'simpleviewer' personality which uses flash to do just what you describe.

BTW: there is no 'restriction' as to the functions you can use. Some make assumptions about the state of affairs--for instance some of the functions assume that $_zp_current_image has been set to an image object. These functions are just abstractions of object functions, so you can do your own image management using the basic object functions.

Administrator
Administrator
acrylian   31-07-2008, 08:30
#3

You could just move the next_image() loop from album.php to your image.php file and zenphoto will show all thumbs of that album together with the sized (bigger) image. Or do you need something else?

Member
Member
macalter   31-07-2008, 18:07
#4

If I did the move, then set the thumb display number to say 10 for the corresponding theme (a clone), would that then limit the new combo page to displaying 10 thumbs and the resized image?

Member
Member
macalter   31-07-2008, 18:55
#5

IMAGE.PHP
copied in minus code then all code to the closing div after but saw no thumbs on the image.php page (set to 5 thumbs)

Code was placed just above the

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.