REGISTER or LOGIN to have the annoying ads removed.
Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How To Add Extra Links To Your Header
#1
Example - http://www.ultrarom.com

You can see i have a link to the awards page up top. Some people may not know how this is possible, well all you need is some minor HTML skills.


First go to your admin panel > templates > header templates > header.

Originally it should be somewhat like this

Code:
<div id="container">
        <a name="top" id="top"></a>
        <div id="header">
            <div class="logo"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a></div>
            <div class="menu">
                <ul>
                    <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>
                    <li><a href="{$mybb->settings['bburl']}/memberlist.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/memberlist.gif" alt="" title="" />{$lang->toplinks_memberlist}</a></li>
                    <li><a href="{$mybb->settings['bburl']}/misc.php?action=help"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/help.gif" alt="" title="" />{$lang->toplinks_help}</a></li>
                         </ul>
            </div>
            <hr class="hidden" />
            <div id="panel">
                {$welcomeblock}
            </div>
        </div>
        <hr class="hidden" />
        <br class="clear" />
        <div id="content">
            {$pm_notice}
            {$bannedwarning}
            {$bbclosedwarning}
            {$unreadreports}
            <navigation>
            <br />

So to add a custom code you first want to decide where you want the link to be. For my example im going to say, next to the members list. So im going to write my code after

Code:
<img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/memberlist.gif" alt="" title="" />{$lang->toplinks_memberlist}</a></li>

So for this example were going to do a post of the week link. So first lets get the image, for this example were going to do a star. So first upload the image to your root or image folder, for my example we have uploaded it to the image folder. So right after the member list code were going to add the following.
Code:
<IMG SRC="/images/star.gif" ALT="PoTW">
[/code][/code]
Then a space. Then.
Code:
<a href="/threadlinkhere">Post Of The Week</a>
Make sure in the a href, you only add whats after the / and not the www stuff.

Final demo - http://www.ultrarom.com/



Messages In This Thread
How To Add Extra Links To Your Header - by Kaleb - Jul 14, 2010, 07:47 PM
RE: How To Add Extra Links To Your Header - by Cybr - Jul 15, 2010, 11:52 PM
RE: How To Add Extra Links To Your Header - by Kaleb - Jul 15, 2010, 11:57 PM
RE: How To Add Extra Links To Your Header - by Guru - Aug 02, 2010, 10:24 AM
RE: How To Add Extra Links To Your Header - by Guru - Aug 02, 2010, 11:30 AM
RE: How To Add Extra Links To Your Header - by Kaleb - Sep 05, 2010, 11:17 AM

Possibly Related Threads...
Thread Author Replies Views Last Post
  [Ask]separate mybb forum to wordpress header? TaligsikDako 0 3,882 Sep 10, 2010, 09:32 PM
Last Post: TaligsikDako
Big Grin [Tutorial] How To Move Member List Search To The Header Kaleb 3 4,760 Aug 29, 2010, 03:31 PM
Last Post: Kaleb
  Header image sebastiaankop 5 5,132 Feb 19, 2010, 12:07 PM
Last Post: euantor
  Need help with my header link itsmie 2 2,702 Dec 30, 2009, 09:58 PM
Last Post: Starnova
  vB header? theone759 1 2,311 Feb 14, 2009, 10:41 PM
Last Post: labrocca

Forum Jump:


Users browsing this thread: 1 Guest(s)