link made is showing twice link made is showing twice
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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


?>