MyBB Community Forums

Full Version: NavBar difficulty.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey all, i'm new to MyBB and i've been doing my best to make my navbar work.

My theme is a modified VisionBB 1.6 theme.

http://clcomputerrepairs.co.uk/index.php

Underneath the forum logo is the NavBar, I would like to add in the following after [FAQ]

For guests: Register, login
For members: Login/Logout
For Mods: Login/Logout
For Admin: Login/Logout

[Image: register.gif]
[Image: login.gif]
[Image: logout.gif]

---------------------------------------------------

After that, I have a similar problem, the Messages button, on my phpBB3 forum I managed to make it change to [Image: newmessage.gif] when an Unread PM was in the inbox, is this possible?

--------------------------------------------------

Many thanks. CT.
1) For Header Links: Go to: ACP > Templates > Your theme's templates > header templates > header > and find;
<a href="http://clcomputerrepairs.co.uk/misc.php?action=help"><img src="http://i1225.photobucket.com/albums/ee385/_FreedomFighter_/Forum%20things/faq.gif" alt=""
</ul>

You've to add your links just before </ul>, liuke this;
<a href="member.php?action=register"><img src="http://i1225.photobucket.com/albums/ee385/_FreedomFighter_/Forum%20things/register.gif"></a><a href="member.php?action=login"><img src="http://i1225.photobucket.com/albums/ee385/_FreedomFighter_/Forum%20things/login.gif"></a><a href="{$mybb->settings['bburl']}/member.php?action=logout&amp;logoutkey={$mybb->user['logoutkey']}"><img src="http://i1225.photobucket.com/albums/ee385/_FreedomFighter_/Forum%20things/logout.gif"></a>

2) For PM alert, Go to: ACP > templates > Your theme's template > Global Templates > global_pm_alert > find "<div>{$privatemessage_text}</div>" and add the image using <img> tag like this;
<div><img src="http://i1225.photobucket.com/albums/ee385/_FreedomFighter_/Forum%20things/newmessage.gif">&nbsp;{$privatemessage_text}</div>
(2011-05-13, 01:15 PM)Yaldaram Wrote: [ -> ]1) For Header Links: Go to: ACP > Templates > Your theme's templates > header templates > header > and find;
<a href="http://clcomputerrepairs.co.uk/misc.php?action=help"><img src="http://i1225.photobucket.com/albums/ee385/_FreedomFighter_/Forum%20things/faq.gif" alt=""
</ul>

You've to add your links just before </ul>, liuke this;
<a href="member.php?action=register"><img src="http://i1225.photobucket.com/albums/ee385/_FreedomFighter_/Forum%20things/register.gif"></a><a href="member.php?action=login"><img src="http://i1225.photobucket.com/albums/ee385/_FreedomFighter_/Forum%20things/login.gif"></a><a href="{$mybb->settings['bburl']}/member.php?action=logout&amp;logoutkey={$mybb->user['logoutkey']}"><img src="http://i1225.photobucket.com/albums/ee385/_FreedomFighter_/Forum%20things/logout.gif"></a>

2) For PM alert, Go to: ACP > templates > Your theme's template > Global Templates > global_pm_alert > find "<div>{$privatemessage_text}</div>" and add the image using <img> tag like this;
<div><img src="http://i1225.photobucket.com/albums/ee385/_FreedomFighter_/Forum%20things/newmessage.gif">&nbsp;{$privatemessage_text}</div>

Hmm, I did exactly as above, I managed to get the register, login and logout buttons in the navbar.

But now only the Logout button works, all the rest are now redirecting to index.php, even though in the coding they go to the correct .php

Also, the PM alert coding worked but it didn't appear in the navbar, but no matter, i can live without that.
Replace login button with this;
<a href="http://clcomputerrepairs.co.uk/member.php?action=login"><img src="http://i1225.photobucket.com/albums/ee385/_FreedomFighter_/Forum%20things/login.gif"></a>

I just noticed that your <a href> tags are not properly closed. PM me ACP details if you wish me to take a look on it, or more precisely paste your header template code here.
Thank you for the offer.

Enjoy unravelling this, i'm a total newb at coding.

(note= changed the login button to= http://i1225.photobucket.com/albums/ee38...button.png)
----------------------------------------------

Quote:<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>
<center><li><a href="{$mybb->settings['bburl']}/index.php"><img src="http://i1225.photobucket.com/albums/ee385/_FreedomFighter_/Forum%20things/Home.gif" alt=""
<a href="http://clcomputerrepairs.co.uk/test/page.html"><img src="http://i1225.photobucket.com/albums/ee385/_FreedomFighter_/Forum%20things/portal-1.gif" alt=""
<a href="{$mybb->settings['bburl']}/private.php"><img src="http://i1225.photobucket.com/albums/ee385/_FreedomFighter_/Forum%20things/messages.gif" alt=""
<a href="{$mybb->settings['bburl']}/usercp.php"><img src="http://i1225.photobucket.com/albums/ee385/_FreedomFighter_/Forum%20things/profile.gif" alt=""
<a href="{$mybb->settings['bburl']}/search.php"><img src="http://i1225.photobucket.com/albums/ee385/_FreedomFighter_/Forum%20things/search.gif" alt=""
<a href="{$mybb->settings['bburl']}/memberlist.php"><img src="http://i1225.photobucket.com/albums/ee385/_FreedomFighter_/Forum%20things/members.gif" alt=""
<a href="{$mybb->settings['bburl']}/misc.php?action=help"><img src="http://i1225.photobucket.com/albums/ee385/_FreedomFighter_/Forum%20things/faq.gif" alt=""
<a href="http://clcomputerrepairs.co.uk/member.php?action=login"><img src="http://i1225.photobucket.com/albums/ee385/_FreedomFighter_/loginbutton.png"></a>
<a href="{$mybb->settings['bburl']}/member.php?action=logout&amp;logoutkey={$mybb->user['logoutkey']}"><img src="http://i1225.photobucket.com/albums/ee385/_FreedomFighter_/Forum%20things/logout.gif">
</ul></center>
</div>
<hr class="hidden" />
<div id="panel">
{$welcomeblock}
</div>
</div>
<hr class="hidden" />
<br class="clear" />
<div id="content">
{$pm_notice}
{$bannedwarning}
{$bbclosedwarning}
{$unreadreports}
{$pending_joinrequests}
<navigation>
<br />

NavBar is still taking all links (bar logout) to Index.php

Even though the coding specifically states other .php links.
I've fixed this in your header template too Wink
+rep. Thanks.
Most welcome Smile I'm glad that its working for you now =)