MyBB Community Forums

Full Version: How do i change the layout of the navbar please help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi

Hope you guys can help im new to mybb and really want to know how to do this

First question how can i change the layout of the top navigation bar as in i want the search button to be first rather then the last

2nd question how do i add some custom text to the top of the screen just under the navigation bar as in what they have done here http://forums.digitalpoint.com/ where i can welcome members with a short message

Thanks for your help and time
Log into your admin CP, go to Templates & Styles > Templates > Click your theme > Header templates > Click Header

Then to make the link order and to add thinks change this as you would ordinary HTML:
			<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']}/calendar.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/calendar.gif" alt="" title="" />{$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="" title="" />{$lang->toplinks_help}</a></li>
				</ul>
			</div>

Then to add text under the nav bar in that same file put your code for your text under:
<hr class="hidden" />

Also, these two threads may interest you;
http://community.mybboard.net/thread-42635.html
http://community.mybboard.net/thread-40446.html
Thanks a lot for the help

I did what you said and the text appeard just below the navbar so no problem there. the only problem i do have is now that i have added the text to the main forum page it appears on every single page how can i do it so it only appears on the main forum page and not the others

Also any idea how i would go about adding a registration link to the navbar?

Thanks again
Just add
<li><a href="{$mybb->settings['bburl']}/member.php?action=register">Register</a></li>
Thanks just need help with this bit now

the text appearers just below the navbar so no problem there. the only problem i do have is now that i have added the text to the main forum page it appears on every single page how can fix this so it only appears on the main forum page and not the others

Thanks
Well, if you added the links/text to the header template, it is going to show up on every page... Undecided
There must be a way when you can add text to just one of the pages without affecting the rest of them?
I still need help with this so if anyone knows a way please let me know

I just need the text on the main page and none of the others

Thanks
(2009-08-25, 05:25 PM)jonn01 Wrote: [ -> ]I still need help with this so if anyone knows a way please let me know

I just need the text on the main page and none of the others

Thanks

You'd probably want to add it to the index page then.