Member
Member
inertiawebdesign   2008-11-25, 22:11
#1

Hi all,

What I'd like to do seems simple enough, but some searching and digging around hasn't been able to provide me with the answer I'm looking for...

What I'd like to do is to have the homepage of my zenphoto site display all of the photos from my most recently created gallery. So basically the homepage acts as a gallery page.

Is this possible, and if so how would I go about accomplishing it? Thanks in advance.

Member
Member
sbillard   2008-11-25, 23:10
#2

I assume that your home page is different from your gallery page. If so, look at the zenphoto hacks http://www.zenphoto.org/2008/01/hacks/ for using zenphoto as a plugin.

You will have to do some investigation on how to decide which album is most recent. Once you have that, just setup the album as the current album and use the next image loop. See the functions guide for various functions which may be of help.

Member
Member
inertiawebdesign   2009-01-27, 02:20
#3

Hi,

Sorry for the huge delay, my photo project got placed on the backburner.

No, my home page is not different from my gallery page. My home page will be the gallery page of whichever gallery is newest.

Is there any easy way just to make the homepage of my zenphoto installation the newest gallery page?

Thanks so much.

Member
Member
sbillard   2009-01-27, 02:57
#4

You should probably look into the zenpage plugin and the zenpage-default them which comes with it.

Administrator
Administrator
acrylian   2009-01-27, 10:36
#5

No need for Zenpage here, simply use the image_album_statistics plugin's functions to show the latest album.

Member
Member
inertiawebdesign   2009-01-27, 16:51
#6

Thanks for the reply, what I'm trying to do is display all of the images from the most recent album.

What I have used is: which isn't displaying anything, what have I done wrong?

Administrator
Administrator
acrylian   2009-01-27, 19:28
#7

That would mean you have no albums in your gallery or you are not logged in and the album is unpublished. If you have only one, that should display that one.

If you want the images of the latest album you can use printLatestImages() that has also the option for a specific album. Of course you have to set the number of images to the same number that album has images.

If that all does not fit you probably will have to write your own function using the classes methods.

Member
Member
inertiawebdesign   2009-01-28, 02:27
#8

I now see that `` is working, but the image it is outputting isn't displaying.

The code above is outputting:
`

[*]
[img]/my-site/site/zp-core/i.php?a=weddings&i=&s=75&cw=75&ch=75[/img]

`
But no image is displaying.

Having said that, I suppose this isn't even the solution I want as it will only be displaying a link to the album and the album thumbnail, whereas I want all of the images to be displayed from that album.

Looks like I will be looking into printLatestImages().

Thanks.

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