coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: digof on October 12, 2008, 12:15:51 AM

Title: link made is showing twice
Post by: digof 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:

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


?>
Title: Re: link made is showing twice
Post by: Gizmo 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 (http://forum.coppermine-gallery.net/index.php/topic,35055.msg175620.html#msg175620) since it may depend on the theme your using or creating.
Title: Re: link made is showing twice in fruity theme
Post by: digof 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 $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 ='';


?>