Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: changing thumb title  (Read 2441 times)

0 Members and 1 Guest are viewing this topic.

santoro

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 58
changing thumb title
« 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.
Logged

thapame

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 72
Re: changing thumb title
« Reply #1 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
Logged

thapame

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 72
Re: changing thumb title
« Reply #2 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.
Logged

santoro

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 58
Re: changing thumb title
« Reply #3 on: February 15, 2008, 10:29:09 pm »

Maybe some local Coppermine expert will give us some advise :)
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 20 queries.