Jump to content
Sign in to follow this  
Alan

Edit Your Menu In Ipb.

Recommended Posts

1) Log-in to your Admin CP.

2) Click on Skins & Templates to expand the selection.

3) Click on HTML Templates.

4) Click on Manage HTML next to skin template you want to modify.

5) Look for Global HTML Elements under Skin Category Title, then click it.

6) Look for Board header (logo,links,etc), then click Edit Single next to it.

7) Look for the following code in the text field:

 

The CODE

><!-- IE6/Win TABLE FIX -->
<table  width="100%" cellspacing="6" id="submenu">
<tr>
<td><a href='{ibf.vars.home_url}'>{ibf.vars.home_name}</a><!--IBF.RULES--></td>
<td align="right">
 <img src="{ibf.vars.img_url}/atb_help.gif" border="0" alt="" /> <a href='{ibf.script_url}act=Help'>{ibf.lang.tb_help}</a>
     <img src="{ibf.vars.img_url}/atb_search.gif" border="0" alt="" /> <a href='{ibf.script_url}act=Search&f={$ibforums->input['f']}'>{ibf.lang.tb_search}</a>
     <img src="{ibf.vars.img_url}/atb_members.gif" border="0" alt="" /> <a href='{ibf.script_url}act=Members'>{ibf.lang.tb_mlist}</a>
     <img src="{ibf.vars.img_url}/atb_calendar.gif" border="0" alt="" /> <a href='{ibf.script_url}act=calendar'>{ibf.lang.tb_calendar}</a>
 <!--IBF.CHATLINK-->
</td>
</tr>
</table>

 

 

First off, let's examine the first link in the IPB default HTML code:

 

><a href='{ibf.vars.home_url}'>{ibf.vars.home_name}</a>

ibf.vars.home_url is the website address you set in the General Configuration (System Settings). If no entry in the General Configuration, forum URL is the default home URL.

What is this thingy {ibf.vars.home_name}?

This is a textual link that appears on the header navigation. This is also a text you entered in the website name field of the General Configuration. If no entry, no link will appear.

 

To add a link, you just add the HTML code before or after the first link mentioned above (depends on your preferences). Let say you want to add a link to ibplanet.com after your home URL:

 

The CODE

><a href='{ibf.vars.home_url}'>{ibf.vars.home_name}</a>   &nbsp
<a href='http://www.ibplanet.com'>IBPLANET.COM</a> 


If you want to add a link next to Help|Search|Members|Calender links, add your image and link after a code for calender link:

The CODE  
<td align="right">
 <img src="{ibf.vars.img_url}/atb_help.gif" border="0" alt="" /> <a href='{ibf.script_url}act=Help'>{ibf.lang.tb_help}</a>
     <img src="{ibf.vars.img_url}/atb_search.gif" border="0" alt="" /> <a href='{ibf.script_url}act=Search&f={$ibforums->input['f']}'>{ibf.lang.tb_search}</a>
     <img src="{ibf.vars.img_url}/atb_members.gif" border="0" alt="" /> <a href='{ibf.script_url}act=Members'>{ibf.lang.tb_mlist}</a>
     <img src="{ibf.vars.img_url}/atb_calendar.gif" border="0" alt="" /> <a href='{ibf.script_url}act=calendar'>{ibf.lang.tb_calendar}</a>
    <img src="http://yoursite_url/your_image.gif" border="0" alt="" /> <a href='http://website_url'>website_name</a>
 <!--IBF.CHATLINK-->
</td>

 

yoursite_url/your_image.gif - replace this with your appropriate site address and image filename

website_url - replace this with appropriate website address

website_name - clickable text you want to appear on your header navigation.

 

Credit: IBPlanet.com :D

Share this post


Link to post
Share on other sites

Very nice Alan.

 

One word of caution. Please make a backup of any template files you are going to modify before making the modification. Then if something goes terribly wrong you can replace the file with the original and start all over.

Share this post


Link to post
Share on other sites

Yey lol, I learned that the hard way.

 

Ended up having to do the entire forum over. :D Tried to span the logo the first time, which made the menu come up to the logo spot, and forgot which part to take the span off lol.

 

Also did that when I was making the Board Admin's name glow, blue on the inside and lime on the out, ended up Admins did not show up on the list at all. :(

 

So anytime you edit your boards. be sure and backup first!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×