MyBB Community Forums

Full Version: Menu items
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hiya so just a quick question i'm in admincp => templates and style => My template set => header and was wondering how do i add more links to the menu bar with a little image by it just like the other ones? Cheers

~ David
in general, we use below type of code in header template for adding a new link on the menu
<li><a href="your new link"><img src="image source" alt="" title="" />link title</a></li>
will that be like the mybb menu bar like with the image to the left?

~ David
^ yes, if you use it along with other menu items in the header template .. see below example

<div class="menu">
				<ul> 
                     <li><a href="your new link"><img src="image source" alt="" title="" />link title</a></li>
					<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>
yes Wink
Perfect thanks! +rep Smile

~ David