forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: tqmartini on August 28, 2010, 06:51:22 pm

Title: Gallery name.... :/
Post by: tqmartini on August 28, 2010, 06:51:22 pm
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.

 :-\
Title: Re: Gallery name.... :/
Post by: papukaija on September 01, 2010, 10:03:19 pm
Please post a link to your gallery (http://forum.coppermine-gallery.net/index.php/topic,55415.msg270616.html#msg270616) as requested by board rules.
Title: Re: Gallery name.... :/
Post by: tqmartini on September 02, 2010, 12:14:31 pm
Sorry... I'm doing it right away!

http://www.streepinstyle.info/galeria (http://www.streepinstyle.info/galeria)
Title: Re: Gallery name.... :/
Post by: Αndré on September 02, 2010, 12:23:55 pm
Copy this code to your theme's theme.php file and modify it to your needs:
Code: [Select]
/******************************************************************************
** 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
******************************************************************************/
Title: Re: Gallery name.... :/
Post by: tqmartini on September 03, 2010, 02:38:32 pm
Thanks so much for help! I'm a beginner so could I ask for a small example of this code with modification?
Thanks again!
Title: Re: Gallery name.... :/
Post by: Αndré on September 03, 2010, 02:42:51 pm
Just change
Code: [Select]
$return = strip_tags(bb_decode($section)) . ' - ' . $CONFIG['gallery_name'];to
Code: [Select]
$return = $CONFIG['gallery_name'] . ' - ' . strip_tags(bb_decode($section));
Title: Re: Gallery name.... :/
Post by: tqmartini on September 03, 2010, 04:07:40 pm
Thanks so much! Everything is working great ") Thanks you Αndré  ;)