MyBB Community Forums

Full Version: [Tut] How to add extra links into the header!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
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:
<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!
Good tut Smile I can now add a link to my main site in the header ;D Tyvm
yay Yw! ^_^
Nice tut, thanks for the help Smile
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
(2010-11-09, 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?

(2010-11-09, 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

(2010-11-10, 02:51 PM)haytoch Wrote: [ -> ]
(2010-11-09, 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.
just put http:// in front of the link i found this out when trying to direct to a sub domain.
(2010-11-10, 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
Pages: 1 2