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: link made is showing twice  (Read 2897 times)

0 Members and 1 Guest are viewing this topic.

digof

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
link made is showing twice
« on: October 12, 2008, 12:15:51 am »

I want to add a second custom link into the menu,(Fruity Theme) but the link is showing twice in the menu.
how can I make it to show only once?
This is the code I'm using. Google is a test only:

Code: [Select]
// HTML template for main menu
$template_sys_menu = <<<EOT
                <div class="topmenu">
                     {BUTTONS}
<a href="http://www.google.com" title="Search Google">Google</a>
                </div>
EOT;

// HTML template for template sys_menu spacer
$template_sys_menu_spacer ='';


?>
« Last Edit: October 13, 2008, 07:44:45 am by Joachim Müller »
Logged

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: link made is showing twice
« Reply #1 on: October 12, 2008, 02:49:50 pm »

This has been asked many times so give it a search and you'll find all kinds of goodies. You can start with this link since it may depend on the theme your using or creating.
Logged
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

digof

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: link made is showing twice in fruity theme
« Reply #2 on: October 13, 2008, 07:02:21 am »

I found out the problem of double link even though I entered a code for one link
I added this code before
Code: [Select]
$template_sys_menu = <<<EOT:

$template_sub_menu = <<<EOT
                <div class="topmenu">
                     {BUTTONS}
<a href="forum URL">Forum </a>
                </div>
EOT;


so, the total code will be:

Code: [Select]
// HTML template for main menu
$template_sub_menu = <<<EOT
                <div class="topmenu">
                     {BUTTONS}
<a href="forum URL">Forum </a>
                </div>
EOT;

$template_sys_menu = <<<EOT
                <div class="topmenu">
<a href="http://www.familiafernandes.ne" title="FamilaFernandes.net">Fernandes Site</a>
                     {BUTTONS}
                </div>
EOT;

// HTML template for template sys_menu spacer
$template_sys_menu_spacer ='';


?>
« Last Edit: October 13, 2008, 07:44:25 am by Joachim Müller »
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.