MyBB Community Forums

Full Version: Add new tabs
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hello,
how to add new tab in my forums ?

[Image: 29ly1le.jpg]

They are admincp template edits in your "header" template.
Still...
didn't get it...
Go to AdminCP->Templates & Style->Templates->(your theme templates)->Header Templates->header. There, find these lines:
<div class="menu">
	<ul>
		<li><a href="{$mybb->settings['bburl']}/search.php"><img src="{$theme['imgdir']}/toplinks/search.gif" alt="" title="" />{$lang->toplinks_search}</a></li>
		<li><a href="{$mybb->settings['bburl']}/memberlist.php"><img src="{$theme['imgdir']}/toplinks/memberlist.gif" alt="" title="" />{$lang->toplinks_memberlist}</a></li>
		<li><a href="{$mybb->settings['bburl']}/calendar.php"><img src="{$theme['imgdir']}/toplinks/calendar.gif" alt="" title="" />{$lang->toplinks_calendar}</a></li>
		<li><a href="{$mybb->settings['bburl']}/misc.php?action=help"><img src="{$theme['imgdir']}/toplinks/help.gif" alt="" title="" />{$lang->toplinks_help}</a></li>
	</ul>
</div>

To add a tab, you must add a line similar to this one:
Quote:<li><a href="{$mybb->settings['bburl']}/link"><img src="{$theme['imgdir']}/toplinks/image.extension" alt="" title="" />Tab title</a></li>
Still, i have Added this code
<li><a href="{$mybb->settings['bburl']}/donate.php" class="donate">{$lang->toplinks_000000}</a></li>
under these
<li><a href="{$mybb->settings['bburl']}/search.php" class="search">{$lang->toplinks_search}</a></li>
<li><a href="{$mybb->settings['bburl']}/memberlist.php" class="memberlist">{$lang->toplinks_memberlist}</a></li>
<li><a href="{$mybb->settings['bburl']}/calendar.php" class="calendar">{$lang->toplinks_calendar}</a></li>
but nothing changed...
Try something like this:
<li><a href="{$mybb->settings['bburl']}/donate.php" class="donate">Donate</a></li>
{$lang->toplinks_000000} will work only if you add it in your language file.
Also, post here your forum URL.
Ya, it worked but no image..

how to add image ?
<li>
<a href="{$mybb->settings['bburl']}/donate.php" class="donate">
<img src="{$theme['imgdir']}/toplinks/YOUR_IMAGE.gif" alt="" title="" />Donate</a>
</li>
If you don't want to use an image, here is the code without the image:

<li><a href="{$mybb->settings['bburl']}/donate.php">Donate</a></li>
See what happens when i add image..
[Image: 2i6hrlz.png]

here is the Code
<li>
<a href="{$mybb->settings['bburl']}/donate.php" class="donate">
<img src="{$theme['imgdir']}/toplinks/coins.gif" alt="" title="" />Donate</a>
</li>

Here is the file in toplinks
[Image: 66e0t3.png]

thanks
Pages: 1 2