Topic: Image count/Number
Hi there. Ive tried searching but with no luck.
is there any way to have an image count on each thumbnail or main image so folk can see what the name of the image is?
Thanks
You are not logged in. Please login or register.
SimpleViewer Forum → SimpleViewer v1 → Image count/Number
Hi there. Ive tried searching but with no luck.
is there any way to have an image count on each thumbnail or main image so folk can see what the name of the image is?
Thanks
You can add the image name in the caption.
Doh.
so you can. its because i always delete that line.
Thanks for the quick reply.
John
If your using a php script to creat the gallery.xml and thumbnails etc you can modify the code that genreates the captions to basically whatever you want. I use a format that says 1/100, 2/100, 3/100 etc. Here is how I do it from buildgallery.php
$count = 0;
foreach($files as $key => $value) {
$xml .= '
<image>';
$xml .= '<filename>'.$key.'</filename>';
$count = $count + 1;
//add auto captions: 'Image X'
if ($showDownloadLinks){
// $xml .= '<caption><![CDATA[<A href="images/'.$key.'" target="_blank"><U>Open image in new window</U></A>]]></caption>';
$xml .= '<caption><![CDATA[Image '.$count.'/'.sizeof($files).']]></caption>';
}
$xml .= '</image>';
print "- Created Image Entry for: $key<br>";
if (!file_exists("./thumbs/".$key)){
if (createThumb($key)){
print "- Created Thumbnail for: $key<br>";
}
}
}
SimpleViewer Forum → SimpleViewer v1 → Image count/Number
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 5 official extensions. Copyright © 2003–2009 PunBB.