Removing :: in menu/navigation Removing :: in menu/navigation
 

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

Removing :: in menu/navigation

Started by vomitbox, November 28, 2006, 10:42:46 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

vomitbox

How could I change: :: (which is between the menu/navigation links) to something else? I looked through template.html and found nothing. Perhaps I am looking in the wrong place.

I have attached an example. Thanks.

Hein Traag

Open theme.php from the sample theme and find this section

  // HTML template for template sys_menu spacer
  $template_sys_menu_spacer ="::";


Change the :: to what you want and paste it into theme.php of the theme your using right before this line

// HTML template for filmstrip display

Works for me.

Hein

vomitbox

Quote from: Hein on November 28, 2006, 11:00:53 PM
Open theme.php from the sample theme and find this section

  // HTML template for template sys_menu spacer
  $template_sys_menu_spacer ="::";


Change the :: to what you want and paste it into theme.php of the theme your using right before this line

// HTML template for filmstrip display

Works for me.

Hein


All I have in theme.php for my current theme is:

<?php
/*************************
  Coppermine Photo Gallery
  ************************
  Copyright (c) 2003-2006 Coppermine Dev Team
  v1.1 originally written by Gregory DEMAR

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.
  ********************************************
  Coppermine version: 1.4.10
  $Source$
  $Revision: 3275 $
  $Author: gaugau $
  $Date: 2006-09-03 12:10:47 +0200 (So, 03 Sep 2006) $
**********************************************/

// ------------------------------------------------------------------------- //
// This theme has all CORE items removed                                     //
// ------------------------------------------------------------------------- //
define('THEME_IS_XHTML10_TRANSITIONAL',1);

?>

Hein Traag

Ok. Once more then only slower.

Step 1

Open notepad
Go to the themes folder of CPG on your computer and open the sample theme folder
Open theme.php and find this line
  // HTML template for template sys_menu spacer
  $template_sys_menu_spacer ="::";


Copy it and then close theme.php.

Step 2

Open notepad
Open the folder of the theme you are using
Open theme.php
Paste this code
  // HTML template for template sys_menu spacer
  $template_sys_menu_spacer ="::";

before this line
// HTML template for filmstrip display

Then change the :: bit into what you like. For example if i wanted to use * as a seperator symbol it would look like this
  // HTML template for template sys_menu spacer
  $template_sys_menu_spacer ="*";


Once your done, save theme.php and upload it to the proper folder using FTP. In other words, upload the edited theme.php from the theme folder on your computer to the correct theme folder in the themes folder on your FTP account.

Try again and do read a post thoroughly before thinking about posting that you can't do it.

Hein