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
  #492  
Old 07-07-2010, 09:05 PM
StarShaper StarShaper is offline
 
Join Date: Sep 2005
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This Plugin generates a warning with vB 4.0.4.

Quote:
Invalid argument supplied for foreach() in [path]/includes/class_bootstrap.php(394) : eval()'d code
The following code lines are responsible.

PHP Code:
foreach ($vbulletin->bf_misc_vbhdistabs AS $tabname => $valor)
{
    if (
$vbulletin->options['vbhdistabs'] & $valor){
switch(
$tabname){

            case 
'vbh_cms':
            
$vbulletin->templatecache['vbcms_navbar_link'] = str_replace('<li','<li style="display:none"',$vbulletin->templatecache['vbcms_navbar_link']);
break;
        break;

        case 
'vbh_blogs':
            
$vbulletin->templatecache['blog_navbar_link'] = str_replace('<li','<li style="display:none"',$vbulletin->templatecache['blog_navbar_link']);
        break;

        case 
'vbh_whats_new':
            
$vbulletin->templatecache['navbar'] = str_replace('><a class="navtab" href="search.php',' style="display:none"><a class="navtab" href="search.php',$vbulletin->templatecache['navbar']);
        break;

            }

    }
        
    

Reply With Quote
  #493  
Old 07-08-2010, 03:51 PM
lulu22 lulu22 is offline
 
Join Date: Jul 2010
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great mod. Makes adding tabs soooooooooo much simpler. THANK YOU Elmer!
Reply With Quote
  #494  
Old 07-09-2010, 05:05 AM
Mumin Mumin is offline
 
Join Date: Feb 2006
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I downloaded this file. I am using 4.0.4.

How do I do this part? "Import the xml file from the product manager.."
Reply With Quote
  #495  
Old 07-12-2010, 08:51 AM
Ririal Ririal is offline
 
Join Date: Apr 2010
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Amazing. Simple and easy to use, exactly what I was searching for.
Reply With Quote
  #496  
Old 07-14-2010, 05:26 AM
Idiosyncrasy Idiosyncrasy is offline
 
Join Date: Jun 2010
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice mod. My members have been asking for this kind of thing for a while, and I'm impressed at how easy it was to use. Thanks!

Installed at http://www.totse2.com
Reply With Quote
  #497  
Old 07-14-2010, 05:43 PM
Nikola Bosnjak Nikola Bosnjak is offline
 
Join Date: Jul 2010
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by salvador21 View Post
Sorry to appear thick, but can someone explain in simple language how to get a tab selected.

The tab is working nicely but I can't figure out the THIS_SCRIPT business.

e.g. if I am linking to a CMS article, e.g.

http://cafesaxophone.com/content.php?198-Music-Store

what do I put in the VBH tab control panel, and do I edit any files?
I'm repeating this becouse I can't find the answer, and I'm also stuck here. I linked new tab to an article, but I have no clue what to do with THIS_SCRIPT. Any example, please? Do I need to insert some code to an article that would make tab selected?

EDIT: I did it like it was described here. Works fine for me.

I wanted a tab that would display my section 21, and also to be active when I click it. The link to this section is .../content.php?21.
So, I made a copy of content.php and named it novosti.php. I opened it and modify line with THIS_SCRIPT, replaced "vbcms" with "novosti". I made new tab with this tool and point it to novosti.php?21, and set the THIS_SCRIPT value to "novosti". Everithing is great, only I don't have sublinks, like I have them when I go to article 21 on regular way, but that is a minor issue.
Reply With Quote
  #498  
Old 07-17-2010, 10:01 PM
PreciseDemise PreciseDemise is offline
 
Join Date: Jun 2010
Location: England
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great Mod, works perfects Thanks =)
Reply With Quote
  #499  
Old 07-28-2010, 06:34 PM
joeman joeman is offline
 
Join Date: May 2010
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mumin View Post
I downloaded this file. I am using 4.0.4.

How do I do this part? "Import the xml file from the product manager.."
Did you get this to work with your version 4.0.4?

Just wondering if this tabs mod will work with 4.0.4 yet or if there is a tab plugin on vBulletin.org that anyone knows about. Thanks
Reply With Quote
  #500  
Old 07-28-2010, 08:53 PM
Mosh's Avatar
Mosh Mosh is offline
 
Join Date: Aug 2004
Location: Melbourne, Australia
Posts: 1,968
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by joeman View Post
Did you get this to work with your version 4.0.4?

Just wondering if this tabs mod will work with 4.0.4 yet or if there is a tab plugin on vBulletin.org that anyone knows about. Thanks
You could try my one - Tab and Link Manager Lite.
Reply With Quote
  #501  
Old 07-28-2010, 09:12 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by joeman View Post
Did you get this to work with your version 4.0.4?

Just wondering if this tabs mod will work with 4.0.4 yet or if there is a tab plugin on vBulletin.org that anyone knows about. Thanks
I'm using this on vb 4.0.5 and it works fine.
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 12:45 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.07369 seconds
  • Memory Usage 2,370KB
  • 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
  • (1)bbcode_code
  • (1)bbcode_php
  • (5)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
  • (2)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