ZenphotoCMS Forum
Album.php combine Image.php - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Themes (https://forum.zenphoto.org/forum-5.html)
+--- Thread: Album.php combine Image.php (/thread-3020.html)

Pages: 1 2 3


Album.php combine Image.php - salemhms - 02-06-2008

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.




Album.php combine Image.php - acrylian - 02-06-2008

Just copy the next_image() loop from your album.php page to image.php to achieve this. Please also read here how to skip the actual album display and link directly to image.php from index.php:
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.




Album.php combine Image.php - salemhms - 02-06-2008

lovely, you're a star. Theming tutorial was a great read :) support here is better ;) I'll post up a link to the finished theme once I'm done with it thanks!




Album.php combine Image.php - salemhms - 03-06-2008

Ok so I have achieved what I wanted except now I want the URL to look like the album.php URL (better for permalinks) So I'm skipping album.php but the url for image.php looks something like ~/zenphoto/album_name/imagefilename001.jpg.php

Is there anyway I can have it look like ~/zenphoto/album_name/ only or atleast ~/zenphoto/album_name/image_title.php




Album.php combine Image.php - sbillard - 03-06-2008

No




Album.php combine Image.php - salemhms - 05-06-2008

An issue popped up more than once while i was putting up "next" and "back" here is my look:

`

" title=""> 

" title=""> 

`

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?




Album.php combine Image.php - acrylian - 05-06-2008

Which version and which theme please?




Album.php combine Image.php - salemhms - 05-06-2008

1.1.6 and my own theme that I'm making.




Album.php combine Image.php - acrylian - 05-06-2008

Does it happen with any of the standard themes, too?




Album.php combine Image.php - salemhms - 05-06-2008

Yep tested it on the default theme did the same thing.