Member
Member
motionbug   19-03-2008, 21:01
#1

I want to do this

http://motionbug.com/eg.jpg

I got everything basically together but I can't seem to get it so that I can have it create
`

" class="img">

[img][/img]`

but i get duplicate thumbnails.

is there a way just to pull the most 6 photos from a galley?

Thanks

Administrator
Administrator
acrylian   19-03-2008, 21:18
#2

getRandomImagesAlbum()->getThumb()
That can't work. getRandomImages is a function that it self gets Random Thumbnails and not an object. If you want random images from the gallery use this (but outside the album loop):
http://www.zenphoto.org/documentation/Zenphoto/_template-functions.php.html#functionprintRandomImages

[i]is there a way just to pull the most 6 photos from a galley?[/i]
The most what photos? We have several functions for statistic:
http://www.zenphoto.org/documentation/Zenphoto/_template-functions.php.html#functionprintMostRatedImages
http://www.zenphoto.org/documentation/Zenphoto/_template-functions.php.html#functionprintLatestImages
http://www.zenphoto.org/documentation/Zenphoto/_template-functions.php.html#functionprintPopularImages
http://www.zenphoto.org/documentation/Zenphoto/_template-functions.php.html#functionprintTopRatedImages

Simply place theme somewhere outside the album or image loop. They work on all pages.

Member
Member
motionbug   19-03-2008, 21:38
#3

thanks for that, but I guess I wasn't exactly clear.

http://motionbug.com/eg.jpg

So the first line of thumbnails is one Album
The next line is another
and so forth and so forth

functionprintLatestImages() looked at that but how would you do it so it can go through the albums and then list the most revcent 5 then go to the next and do that also

Sorry I am not great programmer I know my way around but nothing like you guys

Administrator
Administrator
acrylian   19-03-2008, 21:51
#4

Alright, I didn't get it right. In that case try printlatestimages() that as an option for a specific album.
Try in your loop from above instead of this part
`" class="img">

[img][/img]getFolder());`

That should do it. Although it contains no link to the album itself. You have to add that otherwise in a albumname or so.

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