Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vBH-Add new tabs Details »»
vBH-Add new tabs
Version: 1.2, by Elmer Elmer is offline
Developer Last Online: Feb 2019 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.0.0 Rating:
Released: 11-20-2009 Last Update: 02-08-2010 Installs: 2172
Uses Plugins Auto-Templates
Additional Files Translations Is in Beta Stage  
No support by the author.

vBH-Add new tabs 1.2 with no querys
Mark as installed, if you use it


If you like this modification please suport it in the mod of the moth poll


What does this plugin?
This plugin allows you to add new tabs in the navigation bar to link to any site you want.

Installation:
Import the xml file from the product manager..
Upload the files in the upload folder to your forums via ftp.

To add new tabs, go to:
vBulletin Options> VBH New Tabs Option


Configuration example:
Code:
AdminCP|/admincp/=>self;6
google|http://www.google.com=>self;1 2
vbulletin|http://www.vbulletin.com=>self;1 2
yahoo|http://www.yahoo.com=>self;1 2
vbulletin.org|http://www.vbulletin.org=>self;1 2
See screenshots.

To make tab selected:
This option only works if your tab links to internal files. You need to enter the THIS_SCRIPT value under the option Tabs Selected.

Also note that some areas of vBulletin already use the THIS_SCRIPT value in their code and because of this some tabs may not work correctly. A example of this would be the usercp.php file. If you make a tab linking to this file and then you enter the value 'usercp' to make it selected, the tab will be selected but also will be the forum tab. This is because vBulletin used this value in the navbar template.

You won't have problems when linking to custome pages.

en espa?ol
vBHispano - Agregar Pesta?as en Espa?ol


History:
11-23-09: First release 1.0
  • Ability to add tabs with option to disable the modification.
11-23-09: Update 1.1
  • Some bug fixes
  • New option to align the tabs on the left, right or center.
  • Now you can choose which usergroup can view each tab.
  • Links can now be set to open in a new window or the same window.
12-24-09
  • Updated to work on vB4 Gold
02-08-10: Update 1.2
  • Added option to make the tab selected, please read the product options.
  • Added option to disable the default tabs Home, Blogs and What's New. At this time tab forum can't be removed.
This product does not add sublinks even if tabs are selected.

Download Now

File Type: zip vbh add new tabs 1.2.zip (4.1 KB, 10611 views)

Screenshots

File Type: png newtaboptions.png (28.1 KB, 0 views)
File Type: png tabspreview.png (11.7 KB, 0 views)
File Type: png vba_tabsoptions.png (48.0 KB, 0 views)
File Type: png upgradevB-0000.png (8.2 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
6 благодарности(ей) от:
alhidaya, Guthatron, misericorde, mohammadxxx, ViViD, www.1n1n.com

Comments
  #592  
Old 02-13-2011, 12:50 PM
floydian1 floydian1 is offline
 
Join Date: May 2006
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Absolutely AWESOME!!!!

Why this was this not included in vbulletin as a standard feature I WILL NEVER KNOW!
Reply With Quote
  #593  
Old 02-14-2011, 10:48 AM
floydian1 floydian1 is offline
 
Join Date: May 2006
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When I click on one of my tabs, the forum tab stays highlighted.
Did I do something wrong?
Reply With Quote
  #594  
Old 02-14-2011, 10:52 AM
BlueCheri's Avatar
BlueCheri BlueCheri is offline
 
Join Date: Jul 2009
Posts: 339
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That would be a great idea

Quote:
Originally Posted by floydian1 View Post
Absolutely AWESOME!!!!

Why this was this not included in vbulletin as a standard feature I WILL NEVER KNOW!
Reply With Quote
  #595  
Old 02-16-2011, 07:52 PM
albanah albanah is offline
 
Join Date: Jan 2010
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mark4865 View Post
Tried to install this in 4.1.1 but came up with the error below.

Parse error: syntax error, unexpected '}' in /var/www/clients/client11/web26/web/includes/class_bootstrap.php(412) : eval()'d code on line 113

I edited xml file as discussed in previous post but may have done something wrong there can anyone help by maybe posting an edited copy of xml file so I can try again, really need additional tabs

regards and thanks
It works well with vb 4.1.1
Unfortunately, it does NOT work on vb 4.1.2

Any update ?
Reply With Quote
  #596  
Old 02-16-2011, 10:17 PM
Hippy's Avatar
Hippy Hippy is offline
 
Join Date: Dec 2001
Location: USA, New Jersey
Posts: 2,392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works with vb4.1.2 for me
Reply With Quote
  #597  
Old 02-17-2011, 09:37 AM
Mark4865's Avatar
Mark4865 Mark4865 is offline
 
Join Date: Sep 2010
Location: South-Africa
Posts: 289
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,

Can somepne please give me the exact code I need to install this (once the code that needs removing has been removed please) as I think I am removing the wrong bits and thats why I can get it to work.

Also does this mod have the same highlighting issues all the others seem to have and if so has that not been sorted in 4.1.2
Reply With Quote
  #598  
Old 02-17-2011, 10:54 AM
TeknoSounds TeknoSounds is offline
 
Join Date: Nov 2006
Location: TX
Posts: 435
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no issues as far as I'm aware. Most of the highlighting issues come from not properly setting THIS_SCRIPT.
Reply With Quote
  #599  
Old 02-19-2011, 04:34 AM
Mark4865's Avatar
Mark4865 Mark4865 is offline
 
Join Date: Sep 2010
Location: South-Africa
Posts: 289
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hello,

Can somepne please give me the exact code I need to install this (once the code that needs removing has been removed please) as I think I am removing the wrong bits and thats why I can get it to work.

thanks in advance
Reply With Quote
  #600  
Old 02-19-2011, 02:57 PM
Replicators's Avatar
Replicators Replicators is offline
 
Join Date: Jul 2005
Location: Jamestown, NY
Posts: 344
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

As for 4.1.2, if you do not want any other links besides the ones you put in, and also this removes the small menu underneath aswell.

Go into navbar, and replace everything with...

Code:
<div class="navwrap">
    <div class="navL"></div>
    <div class="navR"></div>
    <div class="navC">
<!-- nav buttons bar -->

<div id="navbar" class="navbar">

    <ul id="navtabs" class="navtabs floatcontainer<vb:if condition="$show['member'] AND $notifications_total"> notify</vb:if>">
        {vb:raw template_hook.navtab_start}
        <vb:if condition="!$vboptions['selectednavtab'] AND THIS_SCRIPT != 'search'">
            <li class="selected">
                <ul class="floatcontainer">
                    {vb:raw template_hook.navbar_start}
                    {vb:raw template_hook.navbar_after_getnew}
                    {vb:raw template_hook.navbar_after_pm}
                    {vb:raw template_hook.navbar_after_calendar}
                    {vb:raw template_hook.navbar_after_community}
                    {vb:raw template_hook.navbar_quick_links_menu_pos1}
                    {vb:raw template_hook.navbar_quick_links_menu_pos2}
                    {vb:raw template_hook.navbar_quick_links_menu_pos3}
                    {vb:raw template_hook.navbar_quick_links_menu_pos4}
                    {vb:raw template_hook.navbar_end}
                </ul>

            </li>
        </vb:if>
        {vb:raw template_hook.navtab_middle}
        <vb:if condition="!$vboptions['selectednavtab'] AND THIS_SCRIPT == 'search'">
                    {vb:raw template_hook.navbar_getnew_menu}
                    {vb:raw template_hook.navbar_getdaily_menu}
        </vb:if>
        {vb:raw template_hook.navtab_end}
    </ul>

    <vb:if condition="$vboptions['enablesearches']">
    <div id="globalsearch" class="globalsearch">
        <form action="search.php?{vb:raw session.sessionurl}do=process" method="post" id="navbar_search" class="navbar_search">
            <vb:comment><input type="hidden" name="s" value="{vb:raw session.sessionurl}" /></vb:comment>
            <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
            <input type="hidden" name="do" value="process" />
            <span class="textboxcontainer"><span><input type="text" value="" name="query" class="textbox" tabindex="99"/></span></span>
            <span class="buttoncontainer"><span><input type="image" class="searchbutton" src="{vb:stylevar imgdir_button}/search.<vb:if condition="(is_browser('ie') AND !is_browser('ie', 7) AND !is_browser('ie', 8))">gif<vb:else />png</vb:if>" name="submit" onclick="document.getElementById('navbar_search').submit;" tabindex="100"/></span></span>
        </form>
        <ul class="navbar_advanced_search">
            <li><a href="search.php{vb:raw session.sessionurl_q}" accesskey="4">{vb:rawphrase advanced_search}</a></li>
        </ul>
    </div>
    </vb:if>
</div>


<!-- / nav buttons bar -->
</div>
</div>

<!-- CONTENT -->
<div id="contentL">
<div id="contentR">
<div id="contentC">
<!-- /logo -->
<div style="padding-left:15px;padding-right:15px;">


<div id="breadcrumb" class="breadcrumb">
    <ul class="floatcontainer">
        <li class="navbithome"><a href="index.php{vb:raw session.sessionurl_q}" accesskey="1"><img src="{vb:stylevar imgdir_misc}/navbit-home.png" alt="{vb:rawphrase home}" /></a></li>

        {vb:raw navbits.breadcrumb}
        {vb:raw navbits.lastelement}
    </ul>
    <hr />
</div>

{vb:raw ad_location.ad_navbar_below}
{vb:raw ad_location.global_below_navbar}

<vb:if condition="$show['notices'] AND THIS_SCRIPT != 'register'">
    <form action="profile.php?do=dismissnotice" method="post" id="notices" class="notices">
        <input type="hidden" name="do" value="dismissnotice" />
        <input type="hidden" name="s" value="{vb:raw session.sessionurl}" />
        <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
        <input type="hidden" id="dismiss_notice_hidden" name="dismiss_noticeid" value="" />
        <input type="hidden" name="url" value="{vb:raw return_link}" />
        <ol>
            {vb:raw notices}
        </ol>
    </form>
</vb:if>
Reply With Quote
  #601  
Old 02-20-2011, 04:21 AM
Mark4865's Avatar
Mark4865 Mark4865 is offline
 
Join Date: Sep 2010
Location: South-Africa
Posts: 289
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,

I am not looking to change the main Navbar stuff I just want to add this mod but without the copyright link at the bottom that people have complained about in previous posts. I tried to remove it as instructed but messed something up. Can someone who has this working in 4.1.1 please post the xml file with the code removed.

thanks
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:16 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.11656 seconds
  • Memory Usage 2,377KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (6)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (5)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete