I think Vincent will have to step in here. It looks like is using his code to generate random image strip. I have to wait overnight to get an updated server log.
`
/* zpArdoise_printImageStatistic
- use improvements of zenphoto 1.4.2 on printRandomImages and printImageStatistic (http://www.zenphoto.org/trac/ticket/1914)
- implements call of colorbox (http://www.zenphoto.org/trac/ticket/1908 and http://www.zenphoto.org/trac/ticket/1909)
*/
function zpArdoise_printImageStatistic($number, $option, $albumfolder='', $showtitle=false, $showdate=false, $showdesc=false, $desclength=40, $showstatistic='', $width=NULL, $height=NULL, $crop=NULL, $collection=false, $fullimagelink=false, $a_class=NULL) {
$images = getImageStatistic($number, $option, $albumfolder,$collection);
if (is_null($crop) && is_null($width) && is_null($height)) {
$crop = 2;
} else {
if (is_null($width)) $width = 85;
if (is_null($height)) $height = 85;
if (is_null($crop)) $crop = true;
}
echo "\n\n";
echo "[list]";
foreach ($images as $image) {
$fullimage = getFullImageURL($image);
if(($fullimagelink) && (!empty($fullimage))) {
$aa_class = ' class="' . $a_class . '"';
$imagelink = html_encode($fullimage);
} else {
$aa_class = NULL;
$imagelink = html_encode(getURL($image));
}
echo "[*]<a href=\"" . $imagelink ."\"" . $aa_class . " title=\"" . html_encode($image->getTitle()) . "\">\n";
switch ($crop) {
case 0:
echo "<img src=\"" . pathurlencode($image->getCustomImage($width, NULL, NULL, NULL, NULL, NULL, NULL, TRUE)) . "\" alt=\"" . html_encode($image->getTitle()) . "\" /></a>\n";
break;
case 1:
echo "<img src=\"" . pathurlencode($image->getCustomImage(NULL, $width, $height, $width, $height, NULL, NULL, TRUE)) . "\" alt=\"" . html_encode($image->getTitle()) . "\" /></a>\n";
break;
case 2:
echo "<img src=\"" . pathurlencode($image->getThumb()) . "\" alt=\"" . html_encode($image->getTitle()) . "\" /></a>\n
";
break;
}
if($showtitle) {
echo "<a href=\"" . html_encode($image->getImageLink()) . "\" title=\"" . html_encode($image->getTitle()) . "\">\n";
echo $image->getTitle() . "</a>\n";
}
if($showdate) {
echo "" . zpFormattedDate(DATE_FORMAT,strtotime($image->getDateTime())) . "
";
}
if($showstatistic === "rating" OR $showstatistic === "rating+hitcounter") {
$votes = $image->get("total_votes");
$value = $image->get("total_value");
if($votes != 0) {
$rating = round($value/$votes, 1);
}
echo "" . sprintf(gettext('Rating: %1$u (Votes: %2$u)'), $rating, $votes) . "
";
}
if($showstatistic === "hitcounter" OR $showstatistic === "rating+hitcounter") {
$hitcounter = $image->get("hitcounter");
if(empty($hitcounter)) { $hitcounter = "0"; }
echo "" . sprintf(gettext("Views: %u"), $hitcounter) . "
";
}
if($showdesc) {
echo shortenContent($image->getDesc(), $desclength,' (...)');
}
echo "";
}
echo "[/list]\n";
}
`