Change title Change title
 

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

Main Menu

Change title

Started by todieego, December 04, 2013, 10:22:24 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

todieego

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

phill104

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
It is a mistake to think you can solve any major problems just with potatoes.

todieego

Thanks! :)

But any idea for my problem? :)

ΑndrĂ©

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
$return = strip_tags(bb_decode($section)) . ' - ' . $CONFIG['gallery_name'];
and replace with
    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;
    }

todieego

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

phill104

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.
It is a mistake to think you can solve any major problems just with potatoes.

todieego

Thank you very much Andre and Phill. Topic solved :)