Topic: Custom Caption

Is it possible to edit the buildgallery.php and modify the php script to create captions like this:
"Image 1/100"
"Image 2/100"
etc...

I know very little about php !

Thanks

Regards
Phil
http://www.phillipnorman.com

Re: Custom Caption

I have the answer...

In buildgallery.php
change this:

foreach($files as $key => $value) {

    $xml .= '
    <image>';
    $xml .= '<filename>'.$key.'</filename>';
    //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>';
    &#125;

to this:

$count = 0;
foreach&#40;$files as $key => $value&#41; &#123;

    $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;
Regards
Phil
http://www.phillipnorman.com