I would like to find out how to display the caption instead of the file name in the filmstrip.
I have searched the forums bit have not found an answer to this...
Maybe I'm using the wrong search words, I don' know, but I can't find it...
So would you please give me a tip as to where I need to edit so that,
in the filmstrip, the image's "Title" is shown instead of the filename?
TIA!!
Code is include/functions.inc.php
$thumb_list[$i]['caption'] = $CONFIG['display_film_strip_filename'] ? '<span class="thumb_filename">'.$row['filename'].'</span>' : '';
Try changing the $row['filename'] to $row['title']
Can that be placed in the theme.php file?
No, but there's probably a way to do it via the theme system somehow.
Nibbler,
Your suggestion worked, thanks!
It would really be nice to be able to handle it through the themes system.
Does anyone have an idea as to how to do it through the themes?
TIA!
There is a trick you can try ;)
copy theme_display_film_strip function from themes\sample\theme.php to themes\yourtheme\theme.php if don't have it already
now edit this function
find foreach statement foreach($thumb_list as $thumb)
and put this line just before it
$pic_data = get_pic_data($aid, $nbThumb, $album_name);
and then put this just after it
$thumb['caption'] = $pic_data[$thumb['pos']]['title'];
So your function should be look like this after changes
.
.
.
$pic_data = get_pic_data($aid, $nbThumb, $album_name);
foreach($thumb_list as $thumb) {
$thumb['caption'] = $pic_data[$thumb['pos']]['title'];
.
.
.
It's done !
hope it works for you
Sami,
That still showed the image file name and not the title of the image.
I don't want visitors to e able to see the file name.
Oops sorry that was my miss understanding !
Check my previous post , I don't have test bed with me so please confirm if it's working
Sami,
Yes, it does work... Yeah!
And it is confined to the theme.php file!!
Thank-you!!