changing thumb title changing thumb title
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

changing thumb title

Started by santoro, February 05, 2008, 09:03:56 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

santoro

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.

thapame

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

$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
$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

thapame

$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.

santoro

Maybe some local Coppermine expert will give us some advise :)