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
  #412  
Old 04-17-2010, 02:24 AM
Mukashi's Avatar
Mukashi Mukashi is offline
 
Join Date: Jan 2004
Location: Brisbane, Australia
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed it fresh on our vB4.0.3 test forum and got the following error.

Quote:
Warning: Unexpected character in input: ''' (ASCII=39) state=1 in /home/REDACTED/public_html/vb403test/includes/class_bootstrap.php(384) : eval()'d code on line 29

Parse error: syntax error, unexpected '<' in /home/REDACTED/public_html/vb403test/includes/class_bootstrap.php(384) : eval()'d code on line 29
Reply With Quote
  #413  
Old 04-18-2010, 07:25 AM
mitch247 mitch247 is offline
 
Join Date: Apr 2010
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Elmer View Post
Hi Bob,

Mods are 7 and super mods are 5. Leaving that part without numbers for usergroups will make the tab visible to all users, so instead of adding each usergroup ID, just don't add them. Read the option description for a example.


Hello Elmer!
Thanks for this great mod... I did run into one issue.

Unlike any of the other vBulletin forums I have seen, I have added links to forums in the main navbar.

I figured I could just copy the forumdisplay.php file over and over again (1-forumdisplay.php, 2-forumdisplay.php etc...) and change the THIS_SCRIPT assignment inside each page to match your "Tabs Selected" requirements in your mod. So I have several pages set up like this:
File name: 1-forumdisplay.php THIS_SCRIPT = 1-forumdisplay
File name: 2-forumdisplay.php THIS_SCRIPT = 2-forumdisplay
File name: 3-forumdisplay.php THIS_SCRIPT = 3-forumdisplay
etc...

and then in your mod settings:

Link Name|1-forumdisplay.php?1-forumdisplay=>self
Link Name|2-forumdisplay.php?2-forumdisplay=>self
Link Name|3-forumdisplay.php?3-forumdisplay=>self


The highlighting works great, however, the only problem now is that I get duplicate "Posting Permissions" blocks at the bottom. Have you ever seen this and do you possibly know of a quick fix?

Many thanks for any help or advice you could offer.
Mitch
Reply With Quote
  #414  
Old 04-18-2010, 10:31 AM
trilogy33 trilogy33 is offline
 
Join Date: Jan 2008
Location: UK
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CoronasRGood View Post
I uninstalled, then reinstalled and it is working fine on 4.0.3. Make sure you uninstall before the upgrade in both the products and plug-ins sections.
Confirmed here too, works fine under 4.0.3 (test board).
As quoted, make sure the product is installed AFTER the 4.0.3 upgrade.
Reply With Quote
  #415  
Old 04-18-2010, 04:43 PM
mitch247 mitch247 is offline
 
Join Date: Apr 2010
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by trilogy33 View Post
Confirmed here too, works fine under 4.0.3 (test board).
As quoted, make sure the product is installed AFTER the 4.0.3 upgrade.

Hey Trilogy... Do you have any idea how to link directly to forums from the navbar while using different "THIS_SCRIPT" assignments?

I have duplicated multiple forumdisplay.php files and hardcoded different values in to get the nav highlighting to work; however, it creates a duplicate "Posting Permissions" block at the bottom of these pages.

Thanks for any help you could offer.
Mitch
Reply With Quote
  #416  
Old 04-18-2010, 07:36 PM
trilogy33 trilogy33 is offline
 
Join Date: Jan 2008
Location: UK
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mitch247 View Post
Hey Trilogy... Do you have any idea how to link directly to forums from the navbar while using different "THIS_SCRIPT" assignments?

I have duplicated multiple forumdisplay.php files and hardcoded different values in to get the nav highlighting to work; however, it creates a duplicate "Posting Permissions" block at the bottom of these pages.

Thanks for any help you could offer.
Mitch
No idea, sorry.
I just use the default set up with only one extra tab in use. Someone else may have some ideas.
Reply With Quote
  #417  
Old 04-19-2010, 07:19 PM
Paul. Paul. is offline
 
Join Date: Mar 2007
Location: ?ire
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Working perfectly for us with 4.0.3

Marked installed. Thanks Elmer!
Reply With Quote
  #418  
Old 04-21-2010, 10:43 PM
Xeon3D Xeon3D is offline
 
Join Date: Dec 2004
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm having troubles with linking to VBA CMPS Homepage...

My code is:
PHP Code:
Portal|http://www.emupt.com/index.php=>self 
Also, I've tried adding "adv_index" (as it is whats written on the index.php file) to the Tabs Selected box, but the tab still doesn't get selected.

I'm going nuts. Please help.

EDIT: no need. Used SSTAB, way easier and better.
Reply With Quote
  #419  
Old 04-22-2010, 04:06 AM
TeknoSounds TeknoSounds is offline
 
Join Date: Nov 2006
Location: TX
Posts: 435
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Theres no need to use any tab modification for VBA CMPS, there is a builtin navbar tab in its options. See vbadvanced.com
Reply With Quote
  #420  
Old 04-26-2010, 12:40 PM
Dark_Wizard Dark_Wizard is offline
 
Join Date: Nov 2001
Location: North Carolina
Posts: 1,251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any chance this mod can be made so that we get this?

Reply With Quote
  #421  
Old 04-28-2010, 02:11 AM
warc1 warc1 is offline
 
Join Date: May 2007
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am trying to add a "Donate" tab to link to the mod "VSa - PayPal Donate". I added the following in the "add new tabs" box:

Donate|http://www.mysite.com/vbulletin/misc.php?do=donate

However, when clicking on the new tab, I get this link:

http://www.mysite.com/vbulletin/misc.php?do

The "=donate" phrase is truncated which causes the wrong script to run. Since others have reported successfully integrating both of these mods, I would appreciate if someone could point out what I am doing wrong.
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 03:14 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.08961 seconds
  • Memory Usage 2,362KB
  • 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
  • (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