Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Flipping the contents of <TITLE>  (Read 2299 times)

0 Members and 1 Guest are viewing this topic.

daiello

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Flipping the contents of <TITLE>
« on: January 05, 2005, 06:21:27 pm »

I want to change the title of the pages of a Coppermine Photo Gallery server I'm working on so that the elements of it are reversed.  Instead of:

gallery_name - Home

I want:

Home - gallery_name

I found the pageheader function in theme.php and modified $template_vars as follows:

Code: [Select]
    $template_vars = array('{LANG_DIR}' => $lang_text_dir,
        '{TITLE}' => $section . ' - ' . $CONFIG['gallery_name'],
        '{CHARSET}' => $CONFIG['charset'] == 'language file' ? $lang_charset : $CONFIG['charset'],
        '{META}' => $meta,
        '{GAL_NAME}' => $CONFIG['gallery_name'],
        '{GAL_DESCRIPTION}' => $CONFIG['gallery_description'],
        '{MAIN_MENU}' => theme_main_menu(),
        '{ADMIN_MENU}' => theme_admin_mode_menu(),
        );

Note that the components of the {TITLE} line are reversed around the dash.

I saved and uploaded the changes to my server, but the pages continue to display with the components of the title in the original order.  Have I missed something?

Thanks--

Dave Aiello
« Last Edit: November 06, 2005, 02:48:16 am by Nibbler »
Logged

donnoman

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1615
  • From donovanbray.com
    • Donovan Bray
Re: Flipping the contents of <TITLE>
« Reply #1 on: January 09, 2005, 03:11:54 am »

Your mod works fine on my install.

Are you sure you got your modified theme.php into the right place on your ftp server?

it should be in: themes/<themename>/theme.php

Are you sure you had the right theme selected that you did the mod to?
Logged

nukeworker

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 83
  • Visit NukeWorker.com
    • Nuclear Jobs
Re: Flipping the contents of <TITLE>
« Reply #2 on: November 06, 2005, 02:42:54 am »

Sorry to dig up old bones, but I wanted to thank daiello for sharing this with us, it really helped me today.
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 20 queries.