MyBB Community Forums

Full Version: Top links
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
ok you know the links at the top "Search" "Member List" "Calendar" "Help"
well...its at the top in my theme

well what file do i edit to add more links?
You can edit it from your Admin Control Panel:

Admin CP -> Templates -> Modify/Delete -> *template set* -> Expand -> header
ok thanks
ok i have one more question when i tryed to do a HTML link it didnt show up or is it some crazy type of link coding???
Where were you trying to show the html link? Is it in the template? If so it should be normal html. if its in a post, or parsed by the mybb parser then it should use mycode which is: sometext
ok thanks alot ppl
Great job, Tikitiki! Another happy customer...
cooljesse223 Wrote:ok i have one more question when i tryed to do a HTML link it didnt show up or is it some crazy type of link coding???
It has to be added within the <div class="menu"><ul>

Then, the link needs to have <li> before it and </li> after it, so it would be like this:

<li><a href="yourlink">yourtext</a></li>
To illustrate it more.. the header template will be edited as follows

Quote: <div class="menu">
<ul>
<li><a href="link_here"><img src="image.gif" alt="" />MyNew LInk</a></li>
<li><a href="{$mybb->settings['bburl']}/search.php"><img src="{$theme['imgdir']}/toplinks/search.gif" alt="" />{$lang->toplinks_search}</a></li>
<li><a href="{$mybb->settings['bburl']}/memberlist.php"><img src="{$theme['imgdir']}/toplinks/memberlist.gif" alt="" />{$lang->toplinks_memberlist}</a></li>
<li><a href="{$mybb->settings['bburl']}/calendar.php"><img src="{$theme['imgdir']}/toplinks/calendar.gif" alt="" />{$lang->toplinks_calendar}</a></li>
<li><a href="{$mybb->settings['bburl']}/misc.php?action=help"><img src="{$theme['imgdir']}/toplinks/help.gif" alt="" />{$lang->toplinks_help}</a></li>
</ul>
</div>


the red line is a new link with image added to the top menu. just copy how it is done.
Hi Guys

I am really battling here, can someone please help me, I am using the Mybulletin template and I am trying to add 2 links into the Top Links bar.

Here is the code for the 'Header' default template

Quote:<a name="top" id="top"></a>
<div id="container">
<div id="header">
<div class="logo"><a href="{$mybb->settings['bburl']}/forumindex.php"><img src="{$theme['logo']}" alt="{$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="" />{$lang->toplinks_search}</a></li>
<li><a href="{$mybb->settings['bburl']}/memberlist.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/memberlist.gif" alt="" />{$lang->toplinks_memberlist}</a></li>
<li><a href="yourlink">yourtext</a></li>
<li><a href="{$mybb->settings['bburl']}/calendar.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/calendar.gif" alt="" />{$lang->toplinks_calendar}</a></li>
<li>
<a href="{$mybb->settings['bburl']}/misc.php?action=help"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/help.gif" alt="" />{$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">
{$bannedwarning}
{$bbclosedwarning}
{$unreadreports}
{$latest_news}
<navigation>
<br class="clear" />

and here is the code for the 'Header' template I am using

Quote:<a name="top" id="top"></a>
<dive class="logo" align="left"><a href="{$mybb->settings['bburl']}/forumindex.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" /></a></div>
<div id="container">
<div id="header">
<hr class="hidden" />
</div>
<hr class="hidden" />
<br class="clear" />
<div id="content">
{$welcomeblock}
{$bannedwarning}
{$bbclosedwarning}
{$unreadreports}
<br class="clear" />

I have tried adding the <li> code into the default template but it doesn't work for the new template

Please help, thanks.
Pages: 1 2