• Welcome to ForumKorner!
    Join today and become a part of the community.

How to edit / add or remove top links on a MyBB forum

Philly

Power member.
Reputation
0
How to edit / add or remove top links on a MyBB forum


What's a top link? You may be asking, well it's the links that are at the top of your forum, usually to the right hand side.



There's two ways to do this, an easy and a less easy way. I'm going to show you both.


The less easy, but proper way.

1. Editing the language file.

Browse to and open:

Code:
/inc/languages/english/global.lang.php

The section you're looking for should be at the top, and look similar, if not the same as:

33wm5wm.jpg



2. In here, just add the top links that you wish to add then save the file, like so:

vqr80g.jpg



3. Upload the images you wish to use to your theme's toplink image folder.

Code:
/images/themename/toplinks/

4. Editing the header template of your theme

On your forum, go to.

Code:
Admin control panel (ACP) > Themes and Templates > Templates > Your Template name > Options > Expand > Header Templates > Options > Expand > header

It'll look similar to below:

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']}/index.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/home.gif" alt="" title="Home" />{$lang->toplinks_home}</a></li>       
                                        <li><a href="{$mybb->settings['bburl']}/donate.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/search.gif" alt="" title="Donate" />{$lang->toplinks_donate}</a></li>
					<li><a href="{$mybb->settings['bburl']}/memberlist.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/memberlist.gif" alt="" title="Member List" />{$lang->toplinks_memberlist}</a></li>
					<li><a href="{$mybb->settings['bburl']}/member.php?action=emailuser&uid=1"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/calendar.gif" alt="" title="Contact" />{$lang->toplinks_contact}</a></li>
                                        <li><a href="http://twitter.com/mcomputeforums" target="_blank"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/twitter.gif" alt="" title="Twitter" />{$lang->toplinks_twitter}</a></li>                                     
					<li><a href="{$mybb->settings['bburl']}/misc.php?action=help&hid=8"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/help.gif" alt="" title="Rules" />{$lang->toplinks_rules}</a></li>
				</ul>
			</div>


These are your top links:

Code:
<li><a href="{$mybb->settings['bburl']}/index.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/home.gif" alt="" title="Home" />{$lang->toplinks_home}</a></li>

If you want to do an external link, it's like so:

Code:
<li><a href="http://twitter.com/mcomputeforums" target="_blank"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/twitter.gif" alt="" title="Twitter" />{$lang->toplinks_twitter}</a></li>

Just add your links in as desired, remember to add the right image name etc.


The easier way

On your top links, eg:

Code:
<li><a href="{$mybb->settings['bburl']}/index.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/home.gif" alt="" title="Home" />{$lang->toplinks_home}</a></li>

Just add the title you want on your link after the title=""/> such as:

Code:
<li><a href="{$mybb->settings['bburl']}/index.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/home.gif" alt="" title="Home" />Home {$lang->toplinks_home}</a></li>

That;s all!

If you have any questions or problems, please post or PM me. I'd be more than happy to help.
 

Jon

User is banned.
Reputation
0
Philly said:
How to edit / add or remove top links on a MyBB forum


What's a top link? You may be asking, well it's the links that are at the top of your forum, usually to the right hand side.



There's two ways to do this, an easy and a less easy way. I'm going to show you both.


The less easy, but proper way.

1. Editing the language file.

Browse to and open:

Code:
/inc/languages/english/global.lang.php

The section you're looking for should be at the top, and look similar, if not the same as:

33wm5wm.jpg



2. In here, just add the top links that you wish to add then save the file, like so:

vqr80g.jpg



3. Upload the images you wish to use to your theme's toplink image folder.

Code:
/images/themename/toplinks/

4. Editing the header template of your theme

On your forum, go to.

Code:
Admin control panel (ACP) > Themes and Templates > Templates > Your Template name > Options > Expand > Header Templates > Options > Expand > header

It'll look similar to below:

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']}/index.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/home.gif" alt="" title="Home" />{$lang->toplinks_home}</a></li>       
                                        <li><a href="{$mybb->settings['bburl']}/donate.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/search.gif" alt="" title="Donate" />{$lang->toplinks_donate}</a></li>
					<li><a href="{$mybb->settings['bburl']}/memberlist.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/memberlist.gif" alt="" title="Member List" />{$lang->toplinks_memberlist}</a></li>
					<li><a href="{$mybb->settings['bburl']}/member.php?action=emailuser&uid=1"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/calendar.gif" alt="" title="Contact" />{$lang->toplinks_contact}</a></li>
                                        <li><a href="http://twitter.com/mcomputeforums" target="_blank"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/twitter.gif" alt="" title="Twitter" />{$lang->toplinks_twitter}</a></li>                                     
					<li><a href="{$mybb->settings['bburl']}/misc.php?action=help&hid=8"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/help.gif" alt="" title="Rules" />{$lang->toplinks_rules}</a></li>
				</ul>
			</div>


These are your top links:

Code:
<li><a href="{$mybb->settings['bburl']}/index.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/home.gif" alt="" title="Home" />{$lang->toplinks_home}</a></li>

If you want to do an external link, it's like so:

Code:
<li><a href="http://twitter.com/mcomputeforums" target="_blank"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/twitter.gif" alt="" title="Twitter" />{$lang->toplinks_twitter}</a></li>

Just add your links in as desired, remember to add the right image name etc.


The easier way

On your top links, eg:

Code:
<li><a href="{$mybb->settings['bburl']}/index.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/home.gif" alt="" title="Home" />{$lang->toplinks_home}</a></li>

Just add the title you want on your link after the title=""/> such as:

Code:
<li><a href="{$mybb->settings['bburl']}/index.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/home.gif" alt="" title="Home" />Home {$lang->toplinks_home}</a></li>

That;s all!

If you have any questions or problems, please post or PM me. I'd be more than happy to help.

Pretty stupid question but what does bb stand for? I remember hearing it on web design last year but i honestly paid no attention in that class.
 

abgaul

Member
Reputation
0
Lol its just for noobs may be but very usefull for me....

i have a forum and i just start then i have big problem with my themes..

can help ?
 

Uzi.

User is banned.
Reputation
0
Jon said:
Pretty stupid question but what does bb stand for? I remember hearing it on web design last year but i honestly paid no attention in that class.
Im not really sure what it means but I am sure philly will tell you.

And philly great tutorial this will help allot of people out.
 

Philly

Power member.
Reputation
0
Jon said:
Pretty stupid question but what does bb stand for? I remember hearing it on web design last year but i honestly paid no attention in that class.

bulletin board

abgaul said:
Lol its just for noobs may be but very usefull for me....

i have a forum and i just start then i have big problem with my themes..

can help ?

What exactly do you need help with?

Uzi said:
Im not really sure what it means but I am sure philly will tell you.

And philly great tutorial this will help allot of people out.

Thanks.
 
Top