forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: santoro on February 05, 2008, 09:03:56 pm

Title: changing thumb title
Post by: santoro on February 05, 2008, 09:03:56 pm
Thumb title in Coppermine contains  "file name". I want to change it to "file title". I have many YouTube videos in my gallery and their "file names" in "thumb title" are not very  meaningful. I think this change would be more SEO friendly. Is it possible to change this? Thanks for answer.
Title: Re: changing thumb title
Post by: thapame on February 06, 2008, 12:03:46 am
yes Exactly
I was also looking for the same thing and about to post new thread.
but I found the thread already created.

actually I tried to modify the function display_thumbnails at functions.inc.php

I need to change

Code: [Select]
$pic_title =$lang_display_thumbnails['filename'].$row['filename']."\n".
                                $lang_display_thumbnails['filesize'].($row['filesize'] >> 10).$lang_byte_units[1]."\n".
                                $lang_display_thumbnails['dimensions'].$row['pwidth']."x".$row['pheight']."\n".
                                $lang_display_thumbnails['date_added'].localised_date($row['ctime'], $album_date_fmt);

to somewhat like this
Code: [Select]
$pic_title=bb_decode($row['caption_text']);
but it's not working
may be I am doing some mistake, can anyone help through out this. and I am sure 'santoro' is also looking for the same thing
Title: Re: changing thumb title
Post by: thapame on February 06, 2008, 12:39:16 am
Code: [Select]
$pic_title=strip_tags(bb_decode($row['caption_text']));is working fine but it's also displaying the date after the image title  ???
couldn't figure how to do. still looking on forums.
Title: Re: changing thumb title
Post by: santoro on February 15, 2008, 10:29:09 pm
Maybe some local Coppermine expert will give us some advise :)