Member
Member
os07   2008-06-13, 13:46
#1

Is it possible to have, on the album page with the thumbnails, the full size image represented by a thumbnail? That is, there would be no separate image.php page, as its functions would be incorporated into the album.php page. This would mean no navigation to an image page, as the user would just click on a thumbnail and see the full size image in an adjacent area of the same page.

Administrator
Member
Member
os07   2008-06-13, 16:16
#3

Would the album.php page not require all of the ZP code from the image.php page, though?

Administrator
Administrator
acrylian   2008-06-13, 17:08
#4

I thought you wanted to link directly to the fullsize image in a kind of lightbox or so.

So let us first define the terms. The image on image.php is not the full size image, this is the sized image.
If you want thumbnails together with this sized image the easier way would be to incorporate the thumbs in image.php. In that case please see here: http://www.zenphoto.org/support/topic.php?id=3156&replies=27#post-19082

Member
Member
os07   2008-06-13, 19:19
#5

I want to link to the image that's sized on image.php. I read the other thread, specifically:

I'm looking to combine the functionalities of Album.php and Image.php

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 reload and the scaled image to changed to the selected photo.

Just copy the next_image() loop from your album.php page to image.php to achieve this.

Did you mean the while (next_album()) loop?

This far I have attempted both an iframe method (loads other test files, but apparently will not load the image.php file, even with the proper path indicated) and the method of copying the next_album loop into the image.php page.

What am I missing?

Administrator
Administrator
acrylian   2008-06-13, 19:51
#6

Besides the fact that iFrames are considered outdated and bad web style using this does not work with php files. If you call image.php within a iFrame it looses it's image context, it simply does not know what to do.

[i]Did you mean the while (next_album()) loop?[/i]
No, that is for printing the list of the albums, not for the thumbnails of images in the album. If you copy the next_image() loop from album.php to image.php you get the thumbs of the images and the sized image on one page. There are detailed explanations on the thread I linked to above and linked within the thread.

To get a little more familiar with zenphoto themes please also take a look at our theming tutorial: http://www.zenphoto.org/2008/05/theming-tutorial/

Member
Member
carlyman   2008-06-14, 18:17
#7

I've also been toying around with this layout (with no luck) in attempt to get a Smugmug-style album. I'd be curious if anyone has accomplished this...

Administrator
Administrator
acrylian   2008-06-15, 09:55
#8

So again, just move the next_image() loop from album.php to image.php and you get the thumbnails of the album with the currently selected sized image. Actually you find a lot info in the thread and the within linked other threads.

What is Smugmug??

Member
Member
carlyman   2008-06-15, 16:02
#9

Smugmug is a for-pay photo hosting site. http://www.smugmug.com

Administrator
Administrator
acrylian   2008-06-15, 17:04
#10

I see no reason to do such a layout with zp. But of course you have some work to do especially with the apparently paginated thumbs. Take a look at the effervescence_plus theme that is included with the zp package or the galleria theme http://www.zenphoto.org/support/topic.php?id=2571&replies=59

Member
Member
os07   2008-11-06, 17:15
#11

Just getting back to this. Works brilliantly. Stupid question: In a site integrating this ZP image.php file into the structure, what is the way to directly address the image.php page in a given album?

For instance, to go directly to the index.php page, all I need do is to specify:

www.somewebsite.com/zenphoto/albumname

What would the URL to the image.php file be?

TIA!

Member
Member
sbillard   2008-11-06, 17:54
#12

The for of URIs for zenphoto (assuming mod_rewrite) is //

Member
Member
j916   2009-05-13, 14:24
#13

Old post, but I've been playing around with this. Here's what I have so far:

http://www.moto-treks.com/PhotoGallery/china/gsi_china_tour-1.jpg.php

Member
Member
ksvendsboe   2009-05-14, 01:37
#14

Hey j916 - I have successfully managed to do this as well EXCEPT for linking from gallery.php to the first image.php page. It looks as though you have managed to figure that part out - if so, could you offer some guidance to those of us that are more "challenged"?

Thanks!

Member
Member
j916   2009-05-15, 03:17
#15

Sure, I hope this helps. In the gallery.php there should be a loop for all the albums. Within this loop the album thumb is displayed as well as the link. For the link I use the code.

`

if (GetNumSubalbums() > 0 ) {

echo htmlspecialchars(getAlbumLinkURL());?>" title="" title="

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