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

Re: Image count/Number

You can add the image name in the caption.

Felix Turner
SimpleViewer Support Team.

Re: Image count/Number

Doh.

so you can. its because i always delete that line.

Thanks for the quick reply.
John

Re: Image count/Number

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&#58; 'Image X'

    if &#40;$showDownloadLinks&#41;&#123;        

//        $xml .= '<caption><!&#91;CDATA&#91;<A href="images/'.$key.'" target="_blank"><U>Open image in new window</U></A>&#93;&#93;></caption>';

        $xml .= '<caption><!&#91;CDATA&#91;Image '.$count.'/'.sizeof&#40;$files&#41;.'&#93;&#93;></caption>';


    &#125;

    $xml .= '</image>';

    

    print "- Created Image Entry for&#58; $key<br>";  

    

    if &#40;!file_exists&#40;"./thumbs/".$key&#41;&#41;&#123;                    

        if &#40;createThumb&#40;$key&#41;&#41;&#123;

            print "- Created Thumbnail for&#58; $key<br>";              

        &#125;                                    

    &#125;

&#125;
Regards
Phil
http://www.phillipnorman.com