Hello,
I am using Zenphoto version 1.4.3.1 [10646] (Official build) with zpFocus v1.4.3.
In my sidebar I use printMostRatedAlbums and it works just fine! But I was wondering how to add a function so the images from the albums would display randomly. This is the code I use:
'<div id="random-wrap">
<?php printMostRatedAlbums( $number = 11, $showtitle = false, $showdate = false, $showdesc = false, $width = 300, $height = 300, $crop = false, $albumfolder = '', $firstimglink = false ); ?>
<div id="random-title">
<?php echo $sstitle; ?>
</div>
</div>'
Thank-you! Renee
Comments
http://www.zenphoto.org/documentation/plugins/_zp-extensions---image_album_statistics.php.html#functionprintImageStatistic
Ups, wrong link but still the same:
http://www.zenphoto.org/documentation/plugins/_zp-extensions---image_album_statistics.php.html#functionprintAlbumStatistic
All the "print" functions of the plugin are just convenience wrappers. All use these two functions.
You are right, I should have investigated the documentation further.
But, I tried the code with '$option = random'.
'<div id="random-wrap">
<?php printMostRatedAlbums( $number = 11, $option = random, $showtitle = false, $showdate = false, $showdesc = false, $width = 300, $height = 300, $crop = false, $albumfolder = '', $firstimglink = false ); ?>
<div id="random-title">
<?php echo $sstitle; ?>
</div>'
It doesn't print the albums (images) randomly, but instead shows the album title. Did I forget something in the code?
Thank-you.
I appreciate your time! Renee