MyBB Community Forums
[Tut] How to add extra links into the header! - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Resources (https://community.mybb.com/forum-8.html)
+--- Forum: Tutorials (https://community.mybb.com/forum-38.html)
+--- Thread: [Tut] How to add extra links into the header! (/thread-78062.html)

Pages: 1 2


[Tut] How to add extra links into the header! - blake - 2010-09-10

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!


RE: [Tut] How to add extra links into the header! - 29t88 - 2010-10-19

Good tut Smile I can now add a link to my main site in the header ;D Tyvm


RE: [Tut] How to add extra links into the header! - blake - 2010-10-20

yay Yw! ^_^


RE: [Tut] How to add extra links into the header! - Hocker - 2010-10-23

Nice tut, thanks for the help Smile


RE: [Tut] How to add extra links into the header! - ~Rs - 2010-11-09

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


RE: [Tut] How to add extra links into the header! - blake - 2010-11-10

(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?




RE: [Tut] How to add extra links into the header! - haytoch - 2010-11-10

(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




RE: [Tut] How to add extra links into the header! - ~Rs - 2010-11-10

(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.



RE: [Tut] How to add extra links into the header! - adbrad - 2010-11-10

just put http:// in front of the link i found this out when trying to direct to a sub domain.


RE: [Tut] How to add extra links into the header! - ~Rs - 2010-11-11

(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