I'm not sure if this will work perfectly with 1.2, but it works with 1.3.1.
This will display the filename of each picture during slideshow. See my comment below to display a different field(s)
displayimage.php
FIND: (in slideshow function)
$params = array('{CELL_HEIGHT}' => $CONFIG['picture_width'] + 100,
'{IMAGE}' => '<img src="' . $start_img . '" name="SlideShow" class="image" /><br />',
'{ADMIN_MENU}' => '',
ADD:
'{SLIDESHOW_CAPTION}' => '<textarea id="slideshow_caption" class="textinput" cols="60" disabled="true"></textarea>',
themes/yourtheme/theme.php
FIND:
$template_display_picture = <<<EOT
<tr>
<td align="center" class="tableb" height="{CELL_HEIGHT}" style="white-space: nowrap; padding: 0px;">
<table cellspacing="2" cellpadding="0" class="imageborder">
<tr>
<td>
{IMAGE}
{ADMIN_MENU}
ADD:
{SLIDESHOW_CAPTION}
include/slideshow.inc.php
FIND:
var Pic = new Array() // don't touch this
ADD:
var Pic_Caption = new Array()
FIND:
echo "Pic[$i] = '" . $picture_url . "'\n";
ADD:
Change $picture['filename'] to $picture['caption'] if you want to see the caption instead.
This can also be modified to display multiple SQL fields.
echo "Pic_Caption[$i] = '". $picture['filename'] . "'\n";
FIND:
document.images.SlideShow.src = preLoad[j].src
ADD:
document.getElementById("slideshow_caption").value = Pic_Caption[j]
I was able to make this work with a textarea box, but I couldn't get it to write the image's caption to a <DIV>.
If anyone can figure out why
//in displayimage.php
'{SLIDESHOW_CAPTION}' => '<div id="slideshow_caption"></div>',
and:
//in includes/slideshow.inc.php
document.getElementById("slideshow_caption").innerHtml = Pic_Caption[j]
doesn't work?