How to add more links.

xCensored

New Member
How do I add more links to the navbar? There was this one thread that said to go to navigation/breadcrumb template and add in this code. I did but it didn't show up on the navbar when I refreshed it. Thanks!
 
Go to your:

Admin CP -> Styles & Templates -> Style Manager -> « » -> Navigation / Breadcrumb Templates -> navbar

Find this code. Add the code in red:


Code:
<!-- nav buttons bar -->
<div align="center">
    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
    <tr align="center">    
        <!--<td class="vbmenu_control"><a href="$vboptions[forumhome].php?$session[sessionurl]">Home</a></td>-->

        [color=Red]<td class="vbmenu_control"><a href="URL">LINKED TEXT</a></td>[/color]

        <if condition="$show['member']">
            <td class="vbmenu_control"><a href="usercp.php?$session[sessionurl]">$vbphrase[user_cp]</a></td>
        </if>
        <if condition="$show['registerbutton']">
            <td class="vbmenu_control"><a href="register.php?$session[sessionurl]">$vbphrase[register]</a></td>
        </if>
        <td class="vbmenu_control"><a href="faq.php?$session[sessionurl]">$vbphrase[faq]</a></td>
        <td class="vbmenu_control"><a href="memberlist.php?$session[sessionurl]">$vbphrase[members_list]</a></td>
        <td class="vbmenu_control"><a href="calendar.php?$session[sessionurl]">$vbphrase[calendar]</a></td>
        <if condition="$show['popups']">        
            <if condition="$show['searchbuttons']">
                <if condition="$show['member']">
                <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew">$vbphrase[new_posts_nav]</a></td>
                <else />
                <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily">$vbphrase[todays_posts]</a></td>
                </if>
                <td id="navbar_search" class="vbmenu_control"><a href="search.php?$session[sessionurl]">$vbphrase[search]</a> <script type="text/javascript"> vbmenu_register("navbar_search"); </script></td>
            </if>
            <if condition="$bbuserinfo['userid']">
                <td id="usercptools" class="vbmenu_control"><a href="#usercptools">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td>        
            </if>
        <else />        
            <if condition="$show['searchbuttons']">
                <td class="vbmenu_control"><a href="search.php?$session[sessionurl]">$vbphrase[search]</a></td>
                <if condition="$show['member']">
                <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew">$vbphrase[new_posts_nav]</a></td>
                <else />
                <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily">$vbphrase[todays_posts]</a></td>
                </if>
            </if>
            <td class="vbmenu_control"><a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a></td>
            <if condition="$bbuserinfo['userid']">            
                <td class="vbmenu_control"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td>            
            </if>            
        </if>
        <if condition="$bbuserinfo['userid']">
            <td class="vbmenu_control"><a href="login.php?$session[sessionurl]do=logout" onclick="return log_out()">$vbphrase[log_out]</a></td>
        </if>
    </tr>
    </table>
</div>
<!-- / nav buttons bar -->

Change URL and LINKED TEXT appropriately.

~Taken from vBulletin.com

Google solves everything. ^^
 
That's the same thing I did. I just couldn't find
<!--<td class="vbmenu_control"><a href="$vboptions[forumhome].php?$session[sessionurl]">Home</a></td>-->
After that is where I enter in the part in red.
 
You will not find:
HTML:
<!--<td class="vbmenu_control"><a href="$vboptions[forumhome].php?$session[sessionurl]">Home</a></td>-->
In the navbar template its not a default link.

What I always tell members to do is find:
HTML:
<if condition="$show['member']">
			<td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
		</if>
and add your link

HTML:
<td class="vbmenu_control"><a href="URL">LINKED TEXT</a></td>
above or below it

Also if you are using a custom style then
HTML:
class="vbmenu_control"
may be different or the links could even be in the header template.
 
Back
Top