coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: vomitbox on November 28, 2006, 10:42:46 PM

Title: Removing :: in menu/navigation
Post by: vomitbox on November 28, 2006, 10:42:46 PM
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.
Title: Re: Removing :: in menu/navigation
Post by: Hein Traag 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
Title: Re: Removing :: in menu/navigation
Post by: vomitbox on November 28, 2006, 11:11:30 PM
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);

?>
Title: Re: Removing :: in menu/navigation
Post by: Hein Traag on November 28, 2006, 11:20:24 PM
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