Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Change title  (Read 4597 times)

0 Members and 1 Guest are viewing this topic.

todieego

  • Coppermine newbie
  • Country: 00
  • Offline Offline
  • Posts: 7
    • GTA 5 PC
Change title
« on: December 04, 2013, 10:22:24 pm »

Now it looks like this:

Index: Index - name of the gallery
Thumbnails: name of the category - name of the gallery
Displayimage: image name - name of the gallery

I would like to like this:

Index: Name of the Gallery
Thumbnails: name of the category
Displayimage: image name

How to do it? THANKS!!
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: Change title
« Reply #1 on: December 04, 2013, 10:56:48 pm »

Could you please post links with each question, it just adds extra work for us having to find them.

From your previous thread -
Url: http://gta5pc.pl/galeria/displayimage.php?album=4&pid=8#top_display_media
Logged
It is a mistake to think you can solve any major problems just with potatoes.

todieego

  • Coppermine newbie
  • Country: 00
  • Offline Offline
  • Posts: 7
    • GTA 5 PC
Re: Change title
« Reply #2 on: December 05, 2013, 06:05:53 pm »

Thanks! :)

But any idea for my problem? :)
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Change title
« Reply #3 on: December 09, 2013, 11:19:52 am »

Copy the function theme_page_title from themes/sample/theme.php to your theme's theme.php file, if it doesn't exist. Then, find
Code: [Select]
$return = strip_tags(bb_decode($section)) . ' - ' . $CONFIG['gallery_name'];and replace with
Code: [Select]
    global $CPG_PHP_SELF;
    switch ($CPG_PHP_SELF) {
        case 'index.php':
            $return = $CONFIG['gallery_name'];
            break;
        case 'thumbnails.php':
        case 'displayimage.php':
            $return = strip_tags(bb_decode($section));
            break;
        default:
            $return = strip_tags(bb_decode($section)) . ' - ' . $CONFIG['gallery_name'];
            break;
    }
Logged

todieego

  • Coppermine newbie
  • Country: 00
  • Offline Offline
  • Posts: 7
    • GTA 5 PC
Re: Change title
« Reply #4 on: December 11, 2013, 09:49:21 pm »

Sorry, but I don't understand :( In my theme.php I can't find this code:
Code: [Select]
$return = strip_tags(bb_decode($section)) . ' - ' . $CONFIG['gallery_name'];
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: Change title
« Reply #5 on: December 11, 2013, 10:12:36 pm »

Please re-read the above post from Andre. Not all theme-able elements have the code included in the theme.php file to make it light and easily readable. So if you need to adjust a particular function (as per above) you simply get the code from the sample theme and copy it into yours. So in your cast open the sample theme.php and find "theme_page_title" and you will see the block is clearly highlighted with the start and end of the function, just copy that block into your theme.php and make your modifications.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

todieego

  • Coppermine newbie
  • Country: 00
  • Offline Offline
  • Posts: 7
    • GTA 5 PC
Re: Change title
« Reply #6 on: December 11, 2013, 10:55:20 pm »

Thank you very much Andre and Phill. Topic solved :)
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 20 queries.