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
  #852  
Old 03-10-2012, 10:13 PM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

just copy the link to the box its easy if you still have a problem pm me will do it for you
Reply With Quote
  #853  
Old 03-11-2012, 08:14 AM
raymondblog raymondblog is offline
 
Join Date: Aug 2008
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ForceHSS View Post
show link you want to use not sure what you are talking about
For example, if I want the Contact tab to be selected,

Contact|http://www.website.com/forum/sendmessage.php=>self

I would put sendmessage at the Tabs Selected.

What if I want tab selected for the URL below which is a folder and not a file?

Subscribe|http://www.website.com/forum/subscribe/ ?
Reply With Quote
  #854  
Old 03-11-2012, 02:01 PM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

pm me a link to your forums and the link in question you want to use
Reply With Quote
  #855  
Old 03-11-2012, 02:13 PM
Hippy's Avatar
Hippy Hippy is offline
 
Join Date: Dec 2001
Location: USA, New Jersey
Posts: 2,392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Hippy View Post
will peek at it before the weekend it up..
been busy .. I might not get to it .. sorry
I will not foget thos will do it as soon as I can..
Reply With Quote
  #856  
Old 03-15-2012, 03:06 AM
Hippy's Avatar
Hippy Hippy is offline
 
Join Date: Dec 2001
Location: USA, New Jersey
Posts: 2,392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by gpinjason View Post
Thanks for the updates ForceHSS!

One issue I've found though, not sure if it's my system or not. I'm running 4.1.10, when I disable the "What's New?" Tab, and I click on the "New Posts" subnav link, the page comes up with the subnav links missing, and the borders missing on the bottom of the tabs.

This is what it looks like with the tab disabled:



And this is what it should look like:

Quote:
Originally Posted by gpinjason View Post
Same thing on default style...

admincp> Plugins & Products >plugin manager > Product : vBH - Add new tabs 1.2 or what ever version your using .. they are all the same but the "vbulletin" minversion= maxversion=

anyway

under Disable Tabs
replace the code with this

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']= preg_replace(
		'#(<li>|<li\s*class="selected">)*<a\s*class="navtab"\s*href="search\.php\?\'\s*\.\s*\$session\[\'sessionurl\'\]\s*\.\s*\'do=\w+&amp;contenttype=\w+"\s*accesskey="\d">\'\s*\.\s*vB_Template_Runtime::parsePhrase\("\w*"\)\s*\.\s*\'</a>(</li>)*#i',
		'',$vbulletin->templatecache['navbar']);
		break;

			}

	}
		
	
}
this mod is in good need of a update..

this will get you by with disabling the what's new and lossing the subnav







Quote:
Originally Posted by gpinjason View Post
I have tab links to a few cms article pages on my forum, and cannot figure out how to get the tab to show selected.. I know there has to be something I can do to make this happen, but I'm not too code savvy...
example

your adding content.php for your tab / button .. in the options on this mod under Tabs Selected
add vbcms
example
in Add new tabs URL and Text it would look like this
Calendar|calendar.php=>self
FAQ|faq.php=>self
Albums|album.php=>self
Groups|group.php=>self
Home|content.php=>self here add content.php and the rest that follows home can be what ever you like as long as the articles are using the content.php and you add the vbcms to tabs selected you golden

under Tabs Selected
it will look like this
Code:
calendar,faq,album,group,vbcms
Reply With Quote
  #857  
Old 03-15-2012, 04:36 AM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="https://vborg.vbsupport.ru/showpost.php?p=2236968&postcount=698" target="_blank">https://vborg.vbsupport.ru/showp...&postcount=698</a>
thanks, hippy's fix added also added some of my own fixes
Reply With Quote
Благодарность от:
gpinjason
  #858  
Old 03-16-2012, 12:40 AM
gpinjason gpinjason is offline
 
Join Date: Feb 2012
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:

example

your adding content.php for your tab / button .. in the options on this mod under Tabs Selected
add vbcms
example
in Add new tabs URL and Text it would look like this
Calendar|calendar.php=>self
FAQ|faq.php=>self
Albums|album.php=>self
Groups|group.php=>self
Home|content.php=>self here add content.php and the rest that follows home can be what ever you like as long as the articles are using the content.php and you add the vbcms to tabs selected you golden

under Tabs Selected
it will look like this
Code:
calendar,faq,album,group,vbcms


I tried adding the vbcms to the selected list and it didn't work.. I think it's because I'm linking to 3 different content pages + the "Home" Tab links to the main CMS page. Each time I click the content page link, it just shows the "Home" tab selected.

I will try it again. Thanks for the help!!!
Reply With Quote
  #859  
Old 03-16-2012, 01:13 AM
Hippy's Avatar
Hippy Hippy is offline
 
Join Date: Dec 2001
Location: USA, New Jersey
Posts: 2,392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by gpinjason View Post
I tried adding the vbcms to the selected list and it didn't work.. I think it's because I'm linking to 3 different content pages + the "Home" Tab links to the main CMS page. Each time I click the content page link, it just shows the "Home" tab selected.

I will try it again. Thanks for the help!!!
will peek into it and report back.. how did the whats new tab work out for you
Reply With Quote
  #860  
Old 03-16-2012, 01:27 AM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by gpinjason View Post
I tried adding the vbcms to the selected list and it didn't work.. I think it's because I'm linking to 3 different content pages + the "Home" Tab links to the main CMS page. Each time I click the content page link, it just shows the "Home" tab selected.

I will try it again. Thanks for the help!!!
If you want to link your home tab copy the full url and in the Tabs Selected box put home not vbcms. What you see in Add new tabs URL and Text box is only a guide read what it says to the left of that box. You can delete all default text in both boxes and add your own things
Reply With Quote
  #861  
Old 03-21-2012, 10:35 AM
Dygear's Avatar
Dygear Dygear is offline
 
Join Date: Apr 2008
Location: Levittown, NY
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great job, very easy to use!
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 08:39 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.06528 seconds
  • Memory Usage 2,370KB
  • Queries Executed 28 (?)
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
  • (4)bbcode_code
  • (8)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
  • (7)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)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_postinfo_query
  • fetch_postinfo
  • 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