link made is showing twice link made is showing twice
 

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

link made is showing twice

Started by digof, October 12, 2008, 12:15:51 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

digof

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:

// 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 ='';


?>

Gizmo

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.
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

#2
I found out the problem of double link even though I entered a code for one link
I added this code before $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:

// 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 ='';


?>