show thumbs on image page (combine album.php and impage.php)

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!

Comments

  • 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.
  • acrylian Administrator, Developer
    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?
  • 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?
  • IMAGE.PHP
    copied in <div id="padbox"> minus code</div> then all code to the closing div after <?php endwhile; ?> but saw no thumbs on the image.php page (set to 5 thumbs)

    Code was placed just above the <div id="image>.
Sign In or Register to comment.