Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tut] How to add extra links into the header!
#1
This is for the newcomers to Mybb.
This will show you how to add extra links to you sites header.

ACP>>Templates & Styles>> Templates>> Your theme>> Header Templates>>Header.

Now looks for a code similar to this one.
Code:
Code:
<li><a href="{$mybb->settings['bburl']}/search.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/search.gif" alt="" title="" />{$lang->toplinks_search}</a></li>

Paste the code on a new line.

Now change this part <li><a href="{$mybb->settings['bburl']}/search.php">
To the ending path of the new page. Usally
mysite.com/RightHere.php Or anything after the /

Now change this part. {$lang->toplinks_search} To what you want the link to say, such as "Ban List". Its not always going to be a {$lang->toplinks_search} But something close.

To change a image if possible look for this code.
<img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/search.gif" alt="" title="" />

And change the bolded part to the path of the image!

Hope this help!
Ansem Wrote:Lets admit, phpbb is a joke, smf is a joke but atleast thats a little funny, things like xmb or punbb just don't cut it and vb is like the douchbag of them all. Mybb wins.
My mods Clicky!
Reply
#2
Good tut Smile I can now add a link to my main site in the header ;D Tyvm
Reply
#3
yay Yw! ^_^
Ansem Wrote:Lets admit, phpbb is a joke, smf is a joke but atleast thats a little funny, things like xmb or punbb just don't cut it and vb is like the douchbag of them all. Mybb wins.
My mods Clicky!
Reply
#4
Nice tut, thanks for the help Smile
Reply
#5
how do you add a link to something that is not in your forum directory? this only works if you are using the forum as the base for the /page.php
Reply
#6
(11-09-2010, 04:33 PM)~Rs Wrote: how do you add a link to something that is not in your forum directory? this only works if you are using the forum as the base for the /page.php
Not sure what you are asking?

Ansem Wrote:Lets admit, phpbb is a joke, smf is a joke but atleast thats a little funny, things like xmb or punbb just don't cut it and vb is like the douchbag of them all. Mybb wins.
My mods Clicky!
Reply
#7
(11-09-2010, 04:33 PM)~Rs Wrote: how do you add a link to something that is not in your forum directory? this only works if you are using the forum as the base for the /page.php
You can add anny link you want
just edit the first code :


<li><a href="www.your link.com/page.php"><img src=" Here image link that you wanna a use " alt="" title="" /> Title that you wanna show in the menu</a></li>


That's all i think i answer you question

[Image: 25314.png]
Reply
#8
(11-10-2010, 02:51 PM)haytoch Wrote:
(11-09-2010, 04:33 PM)~Rs Wrote: how do you add a link to something that is not in your forum directory? this only works if you are using the forum as the base for the /page.php
You can add anny link you want
just edit the first code :


<li><a href="www.your link.com/page.php"><img src=" Here image link that you wanna a use " alt="" title="" /> Title that you wanna show in the menu</a></li>


That's all i think i answer you question

it doesn't work like that, it tries to redirect to that page on your forum.
Reply
#9
just put http:// in front of the link i found this out when trying to direct to a sub domain.
Reply
#10
(11-10-2010, 11:33 PM)adbrad Wrote: just put http:// in front of the link i found this out when trying to direct to a sub domain.

thank you so much! <3

repped
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)