Learn how to add a new tab in the Navbar at the top of your Forums Page

Discussion in 'vBulletin Discussions' started by Madi, Apr 8, 2010.

  1. Madi

    Madi Regular Member

    Joined:
    Apr 6, 2010
    Messages:
    76
    Likes Received:
    1
    Hello AdminAddict Members,

    if you want to add a tab in the navbar link, First to do, Go to...
    Admin CP -> Styles & Templates -> Style Manager -> Edit Templates -> Navigation/Breadcrumb Templates -> navbar

    Find this code, then add the red code

    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">
    
    [COLOR="Red"]<td class="vbmenu_control"><a href="URL">TEXT</a></td>[/COLOR]
    <if condition="$show['member']">
    <td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
    </if>
    <if condition="$show['registerbutton']">
    <td class="vbmenu_control"><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></td>
    </if>
    <td class="vbmenu_control"><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
    <td class="vbmenu_control"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td>
    <td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$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" accesskey="2">$vbphrase[new_posts_nav]</a></td>
    <else />
    <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
    </if>
    <td id="navbar_search" class="vbmenu_control"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a> <script type="text/javascript"> vbmenu_register("navbar_search"); </script></td>
    </if>
    <if condition="$show['member']">
    <td id="usercptools" class="vbmenu_control"><a href="$show[nojs_link]#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_q]" accesskey="4">$vbphrase[search]</a></td>
    <if condition="$show['member']">
    <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
    <else />
    <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
    </if>
    </if>
    <td class="vbmenu_control"><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a></td>
    <if condition="$show['member']">            
    <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="$show['member']">
    <td class="vbmenu_control"><a href="login.php?$session[sessionurl]do=logout&logouthash=$bbuserinfo[logouthash]" onclick="return log_out()">$vbphrase[log_out]</a></td>
    </if>
    </tr>
    </table>
    </div>
    <!-- / nav buttons bar -->
    Then change the URL With the link you want and change TEXT with the name of the button you want to add,
    then click save and go to the main forum page, you will find the new button

    Cheers !
     
  2. Nick

    Nick Regular Member

    Joined:
    Jul 27, 2008
    Messages:
    7,441
    Likes Received:
    218
    I assume this is for vB4, correct?

    Thread moved to the vBulletin Forum.
     
  3. Madi

    Madi Regular Member

    Joined:
    Apr 6, 2010
    Messages:
    76
    Likes Received:
    1
    No, it is for vbulletin 3.x.x stuff

    I didn't check out if it was a vb4 related or not.
     
  4. Mopar1973Man

    Mopar1973Man Novice

    Joined:
    Apr 5, 2010
    Messages:
    45
    Likes Received:
    4
    First Name:
    Michael
    I need to find the article for VB4 and the tab setup... I need to be able to navigate to my static pages...:rolleyes:
     
  5. Madi

    Madi Regular Member

    Joined:
    Apr 6, 2010
    Messages:
    76
    Likes Received:
    1
    Code:
    http://www.vbteam.info/175301-post2.html
    Follow that link Moper1973man and you will find how to add a tab in your vb4 stuff

    Cheers
     
  6. ragtek

    ragtek Regular Member

    Joined:
    Dec 25, 2009
    Messages:
    238
    Likes Received:
    134
    and why not share a legal link, instead of linking on a illegal page where everything is shared?

    vBulletin 4 Articles - vBulletin.org Forum

    [HOW TO - vB4] Create a New Tab in the navbar - vBulletin.org Forum
    [HOW TO - vB4] Create a New Tab in the navbar (with template) - vBulletin.org Forum
    [HOW TO - vB4] How add sub-menu drop down to the navbar (tab Forum) - vBulletin.org Forum
    [HOW TO - vB4] How to Add Drop Down Navigation Items to the Navbar - vBulletin.org Forum
     
  7. systemnstuff

    systemnstuff Newcomer

    Joined:
    May 14, 2011
    Messages:
    1
    Likes Received:
    2
    i used this code in vb 4.1.3 to add tabs


    <li class="selected"><a class="navtab" href="URL">TEXT</a></td>
     
    2 people like this.
  8. Keylogged

    Keylogged Addict

    Joined:
    May 18, 2011
    Messages:
    51
    Likes Received:
    0
    Thank you! I was looking for this!
     
  9. salim594

    salim594 Newcomer

    Joined:
    Jul 14, 2011
    Messages:
    4
    Likes Received:
    0
    First Name:
    salim
    thank you commander madi you are the best
     

Share This Page