Advanced search  

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

Pages: [1]   Go Down

Author Topic: Gallery name.... :/  (Read 3937 times)

0 Members and 1 Guest are viewing this topic.

tqmartini

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Gallery name.... :/
« 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.

 :-\
Logged

papukaija

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 333
Re: Gallery name.... :/
« Reply #1 on: September 01, 2010, 10:03:19 pm »

Please post a link to your gallery as requested by board rules.
Logged

tqmartini

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Gallery name.... :/
« Reply #2 on: September 02, 2010, 12:14:31 pm »

Sorry... I'm doing it right away!

http://www.streepinstyle.info/galeria
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Gallery name.... :/
« Reply #3 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
******************************************************************************/
Logged

tqmartini

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Gallery name.... :/
« Reply #4 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!
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Gallery name.... :/
« Reply #5 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));
Logged

tqmartini

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Gallery name.... :/
« Reply #6 on: September 03, 2010, 04:07:40 pm »

Thanks so much! Everything is working great ") Thanks you Αndré  ;)
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 20 queries.