Gallery name.... :/ Gallery name.... :/
 

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]

Main Menu

Gallery name.... :/

Started by tqmartini, August 28, 2010, 06:51:22 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

tqmartini

Hi, I couldn't find it anywhere, sorry if I missed something but...
Where I can change order of displaying my gallery name ect. in tab?

I have: "Home>cantegory - Gallery name" or "album name - gallery name" but I would like to have "Gallery name - category - album name etc.

:-\

papukaija


tqmartini


Αndré

Copy this code to your theme's theme.php file and modify it to your needs:
/******************************************************************************
** Section <<<theme_page_title>>> - START
******************************************************************************/
// Creates the title tag for each page
// For the sake of search engine friendliness, the dynamic part $section should come first
function theme_page_title($section)
{
    global $CONFIG;
    $return = strip_tags(bb_decode($section)) . ' - ' . $CONFIG['gallery_name'];
    return $return;
}
/******************************************************************************
** Section <<<theme_page_title>>> - END
******************************************************************************/

tqmartini

Thanks so much for help! I'm a beginner so could I ask for a small example of this code with modification?
Thanks again!

Αndré

Just change
$return = strip_tags(bb_decode($section)) . ' - ' . $CONFIG['gallery_name'];
to
$return = $CONFIG['gallery_name'] . ' - ' . strip_tags(bb_decode($section));

tqmartini

Thanks so much! Everything is working great ") Thanks you Αndré  ;)