Hi,
I'm looking to combine the functionalities of Album.php and Image.php
I have no sub Albums so I'm not really interested in subalbums for now.
The concept is this:
List all the images in an album (as album.php) and display the first image of the album in a scaled view next to the list then when someone clicks another thumbnail, I want the page to relaod and the scaled image to changed to teh selected photo.
Illustration
Album.php shows thumbs of img1, img2,img3 and 500px by 500px display of img1. I click img2 thumb and the page relaods to show 500px by 500px img2.
Comments
http://www.zenphoto.org/support/topic.php?id=2877&replies=11#post-17258
http://www.zenphoto.org/support/topic.php?id=63&replies=6
And be sure to visit our theming tutorial, too.
Is there anyway I can have it look like ~/zenphoto/album_name/ only or atleast ~/zenphoto/album_name/image_title.php
`
<?php if (hasNextImage()) { ?>
<?php } if (hasPrevImage()) { ?>
<?php } ?>
`
That is in image.php
My problem is that sometimes an album has a next image and you click "next" it goes to a different album. Any idea why this is happening?
Next question I am now displaying the images and album thumbnails on the image.php page skipping album.php out. My question is, can I have users comment on the who album whilst viewing images. So for example if someone is viewing "image001.jpg.php" and clicks "next" to go to "image002.jpg.php" and makes a comment on "image002.jpg.php" ... I want the comment to appear on the whole album (ie on both "image002.jpg.php" and "image001.jpg.php".
```
<?php while (next_album(true)): $c++;?>
<?php $firstimage = $_zp_current_album->getImages(); // get the first image of the current album in the loop?>
" title="<?php echo getAlbumTitle();?>"><?php printCustomAlbumThumbImage(getAlbumTitle(), null, 200, null, 115, 115); ?>
" title="<?php echo getAlbumTitle();?>"><?php printAlbumTitle(); ?>
/images/tag.png" class="tagImage"/><?php printTags('links', null, 'taglist', ''); ?>
<?php printLinklessRating("album"); ?>
<?php printAlbumDesc(false); ?>
<?php if($c%10 == 0) break; ?>
<?php endwhile; ?>
`
and the hasNextImage() on image.php is listed above. I've searched around the forums and have been playing with it for a while but I'm completely stumped. I tried play with set_context(), what it seems to be doing is not realising that it is now within an album . If I click on a thumbnail after arriving from a search page that reloads the image.php page it works fine.
Sorry for the trouble I'm just baffled
mode_rewrite is an integral part of the theme.
Is there an alternative way for getNextImageURL and getPrevImageURL ??
Ok, I think I should post up the link to show you.
http://development.thepaperdump.com/dump/
Search for "baskin robins" ignore the auto complete.
It seems erratic it'll work sometimes and wont at other times. I'll wait and see what sbillard has to say
There was another problem with next/prev that has been fixed after the nightly was generated. So please either wait until the next nightly or use the svn version directly.