Hi,
I need some help here.
I've been trying to setup a SMF forum on my localhost. I need to add an extra link on my top main menu. This is not a category link inside the forum, it's just a link to an outside webpage.
Just follow a tutorial and this is the code:
// Show [mynewlink] button.
if ($context['current_action'] == 'mynewlink')
$current_action = 'mynewlink';
echo ($current_action=='mynewlink' || $context['browser']['is_ie4']) ? '' : '' , '
<li class="' , $current_action == 'mynewlink' ? 'current' : '' , '"><a href="www.linktopagethatiwant.com">My New Link</a></li>';
So I really have a new link on main menu but with the root URL as prefix, something like this (localhost/forum/linktopagethatiwant.com)
Could you please help me to fix this properly!
Thanks in advance,
Ed
I need some help here.
I've been trying to setup a SMF forum on my localhost. I need to add an extra link on my top main menu. This is not a category link inside the forum, it's just a link to an outside webpage.
Just follow a tutorial and this is the code:
// Show [mynewlink] button.
if ($context['current_action'] == 'mynewlink')
$current_action = 'mynewlink';
echo ($current_action=='mynewlink' || $context['browser']['is_ie4']) ? '' : '' , '
<li class="' , $current_action == 'mynewlink' ? 'current' : '' , '"><a href="www.linktopagethatiwant.com">My New Link</a></li>';
So I really have a new link on main menu but with the root URL as prefix, something like this (localhost/forum/linktopagethatiwant.com)
Could you please help me to fix this properly!
Thanks in advance,
Ed






