Show file name only Show file name only
 

News:

CPG Release 1.6.29
During HTML5 upload, keep pseudo blank code 200 messages from triggering error condition
added Russian language
correct failure to use theme menu icons in album manager
minor vulnerabilities mitigation

Main Menu

Show file name only

Started by profili, January 20, 2011, 01:56:15 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

profili

How to get rid of the album name and the main gallery title when viewing a single file?

E.g http://coppermine-gallery.net/demo/cpg15x/displayimage.php?pid=6#top_display_media here the title structure is: Album Name - File Name - Gallery Name (Animals - ascalaphe 4 - cpg1.5.x demo).

http://www.galsh.com/

ΑndrĂ©

Open displayimage.php, find
pageheader($album_name . ' - ' . $picture_title, $meta_keywords, false);
and replace with
pageheader($picture_title, $meta_keywords, false);

Now copy the following function to your themes/yourtheme/theme.php file:
function theme_page_title($section) {
    if (defined('DISPLAYIMAGE_PHP')) {
        $return = strip_tags(bb_decode($section));
    } else {
        global $CONFIG;
        $return = strip_tags(bb_decode($section)) . ' - ' . $CONFIG['gallery_name'];
    }
    return $return;
}

profili