NameSilo

Simple issue on a SMF forum

Spaceship Spaceship
Watch

edsmiths

Established Member
Impact
17
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
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Replace:

Code:
<a href="www.linktopagethatiwant.com">

with:

Code:
<a href="http://www.linktopagethatiwant.com">
 
1
•••
Hi qbert,

Thanks a lot... it was a really basic mistake, need some sleep.
Rep added
 
0
•••
Dynadot — .com Registration $8.99Dynadot — .com Registration $8.99

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Zero Commission
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back