MyBB Community Forums

Full Version: How to add the home icon to the forum
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I want to know how to added the Home icon to the forum like the search icon and stuff like that can someone help?
You can add those in the header template.
how? can u tell me the code?
You can copy one of the current toplinks that are already there, change the URL it will go to, change the URL to the image you want to show, and change the language variable to the text you want to show.
could u explain it more clearly I am confuse

- sorry I am a bit slow on this
In the header template there's the code for the 4 current toplinks that are already there, you should be able to see the line for each one. You need to copy one of those lines, change the URL that the link will go to in the <a> tag, the URL of the image in the <img> tag, and then find where it says {$lang->something} and change that to what you want it to say. If that isn't clear enough, post your header template here...
my header temeplate - what should I do with it?

<div class="upper_panel">
<span class="float_right"><a href="{$mybb->settings['bburl']}/search.php" class="search">{$lang->toplinks_search}</a><a href="{$mybb->settings['bburl']}/memberlist.php" class="memberlist">{$lang->toplinks_memberlist}</a><a href="{$mybb->settings['bburl']}/calendar.php" class="calendar">{$lang->toplinks_calendar}</a><a href="{$mybb->settings['bburl']}/misc.php?action=help" class="help">{$lang->toplinks_help}</a></span>
<span>{$lang->welcome_back} <a href="{$mybb->settings['bburl']}/member.php?action=logout&amp;logoutkey={$mybb->user['logoutkey']}" class="logout">{$lang->welcome_logout}</a></span>
</div>
<div class="lower_panel">
<span class="float_right"><a href="#" onclick="MyBB.popupWindow('{$mybb->settings['bburl']}/misc.php?action=buddypopup', 'buddyList', 350, 350);">{$lang->welcome_open_buddy_list}</a><a href="{$mybb->settings['bburl']}/search.php?action=getnew">{$lang->welcome_newposts}</a><a href="{$mybb->settings['bburl']}/search.php?action=getdaily">{$lang->welcome_todaysposts}</a><a href="{$mybb->settings['bburl']}/private.php" style="margin-right: 0;">{$lang->welcome_pms}</a> {$lang->welcome_pms_usage}</span>
<span><a href="{$mybb->settings['bburl']}/usercp.php" class="usercp">{$lang->welcome_usercp}</a>{$modcplink}{$admincplink}</span>
</div>
This is the code you should use - then just add the image tags as Matt mentioned, and you're set.

<li><a href="LINK">TEXT</a></li>
Actually, as it isn't the default theme, isn't quite as easy as I'd hoped. This is the line you need:

<a href="{$mybb->settings['bburl']}/search.php" class="search">{$lang->toplinks_search}</a>

Change:

1. search.php > whatever you want it to go to.
2. class="search" > change search to something related to the link, like home, for example.
3. {$lang->toplinks_search} > Change this to the text you want to show, for example, just Home.

Then, in the global.css stylesheet for your theme, do a search for a search called 'search', copy that block of code, change the name of it to the name you used in step 2 above, and chnage the URL of the image there.
1.goto YOUR-mybb.com/admin/index.php?module=style/templates
2. then select the correct one for your default theme
3. then look for and open header
4. then goto about line 7 and add this
					<li><a href="http://YourForum.com/index.php"><img src="http://img121.imageshack.us/img121/6915/1254463861home.png" alt="" title="" />Home</a></li>
Editing Needed
[*] YourForum.com needs to be changed to your forum address
[*]http://img121.imageshack.us/img121/6915/...61home.png needs to be changed to the image you want to display