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
  #622  
Old 03-13-2011, 04:28 PM
markb5900 markb5900 is offline
 
Join Date: Feb 2011
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I spent about an hour messing with the "tabs selected" to make the highlight work properly, finally figured out you can't have any spaces between them in the list to make it work.
I had misc, faq, memberlist and the highlight wouldn't work properly.
Changed it to misc,faq,memberlist note no space after the comma's and now all works well.
Hopefully that can help someone.
Reply With Quote
  #623  
Old 03-13-2011, 10:08 PM
alvarokid alvarokid is offline
 
Join Date: May 2007
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works great!

Btw, anyone knows how can i remove any of the existing tabs ?

I have added three new tabs with this powerfull tool, but need to remove the "What's new" tab, also need to edit the "Forum", the title and the link where its points to.

Thanks in advance,
Reply With Quote
  #624  
Old 03-13-2011, 10:48 PM
Old-Git Old-Git is offline
 
Join Date: Dec 2009
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This has been an interesting exercise. Apart from the other issues I find that the submenu containing New Posts, Private Messages, FAQ, Calendar, Community, Forum Actions and Quick Links no longer actually contains those links. So I ripped this thing out and using the Plugin/Product manager in the AdminCP I created my own Tab using this code snippet (see below)and 'Process_Templates_Complete' hook location.
Quote:
$tabselected = '';
$tablinks = '';
if (THIS_SCRIPT == 'archives')
{
$vbulletin->options['selectednavtab']='archives';
$tabselected = ' class="selected"';

}
$template_hook['navtab_middle'] .= '<li'.$tabselected.'><a class="navtab" href="archives.php?f=14">Archives</a>'.$tablinks.'</li>' ;
It was pretty easy actually and now I've created my first plugin. I'm quite pleased with myself for figuring it out. Now I'll figure out how to solve the issue of the missing sub menu also.

I used Lynnes article on creating the Navbar Tab with submenus (dropping the submenu stuff) and the Vbulletin documentation on creating plugins. Try it, it's really very easy to do your own!
Reply With Quote
  #625  
Old 03-13-2011, 11:47 PM
markb5900 markb5900 is offline
 
Join Date: Feb 2011
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can checkmark not to show the "what new" tab in the same screen you created your buttons in, it is at the bottom.

Here is a tutorial on how to change the button names etc..,

http://www.vbulletin.com/forum/conte...me-of-Home-Tab
Reply With Quote
  #626  
Old 03-13-2011, 11:55 PM
DannyITR DannyITR is offline
 
Join Date: Jan 2002
Posts: 325
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there any way to make it so the program can parse a vb phrase for the tab name? For bilingual forums this would be very handy.
Reply With Quote
  #627  
Old 03-14-2011, 12:56 AM
six58 six58 is offline
 
Join Date: May 2005
Location: Australia
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Old-Git View Post
This has been an interesting exercise. Apart from the other issues I find that the submenu containing New Posts, Private Messages, FAQ, Calendar, Community, Forum Actions and Quick Links no longer actually contains those links. So I ripped this thing out and using the Plugin/Product manager in the AdminCP I created my own Tab using this code snippet (see below)and 'Process_Templates_Complete' hook location.


It was pretty easy actually and now I've created my first plugin. I'm quite pleased with myself for figuring it out. Now I'll figure out how to solve the issue of the missing sub menu also.

I used Lynnes article on creating the Navbar Tab with submenus (dropping the submenu stuff) and the Vbulletin documentation on creating plugins. Try it, it's really very easy to do your own!
when you say you created your own i presume you mean as something separate to this Mod?

i tried creating one of my own yesterday and ironically had the issue you mention here about the missing submenus, but don't have that issue with this Mod 'mostly'.
i do need to create a second CMS tab though and having issues with that, as the submenu won't show on it unless the original one is highlighted - i'm not sure yet how to separate them.

i guess its to do with defining a new THIS_SCRIPT value but i'm new to this

using 4.1.2
Reply With Quote
  #628  
Old 03-15-2011, 03:55 AM
Qwest Qwest is offline
 
Join Date: Jun 2004
Location: United States
Posts: 223
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works flawlessly in 4.1.2
Reply With Quote
  #629  
Old 03-15-2011, 04:51 AM
six58 six58 is offline
 
Join Date: May 2005
Location: Australia
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by six58 View Post
i do need to create a second CMS tab though and having issues with that, as the submenu won't show on it unless the original one is highlighted - i'm not sure yet how to separate them.

using 4.1.2
tried the other mod that does the add tabs and it doesn't cause this issue, so will try using that one.
Reply With Quote
  #630  
Old 03-15-2011, 10:33 PM
Old-Git Old-Git is offline
 
Join Date: Dec 2009
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
when you say you created your own i presume you mean as something separate to this Mod?
Yes! I uninstalled the this mod and then went to Products and made a product called 'My New Tab'

The I went to plugins and created a plugin that referenenced that product and set the hook location to 'Process_Templates_Complete' . I then just used that small snippet of code to create my Tab and tp call the PHP page I wanted to call.

As you can see from the code snippet above I am calling a php page called archives.php and telling it to show a particular Forum/category and all the subf-forums below that (these forums are all set as non-active so they don't show on the main forum page).

My archives.php is simply a copy of forum.php renamed as archives.php. I found that when I called forum.php?f=14 it did show the forums and sub-forums that I wanted to see. However, the new Archives tab would not highlight and the highlight stayed on the Forum tab. I figured that this was becasue inside the forum.php file (very close to the top) the THIS_SCRIPT setting was = 'index'. As you can see from the code above the IF statement on the third line defines it as 'archives'. If I changed this in forum.php I would break the standard VB forum page. However, by making a copy of forum.php and renaming the copy to archives.php I was able to edit archives.php and make THIS_SCRIPT=archives. Now, essentially I have two forum.php files (one of which is called archives.php and cotains a minor edit). They both do the same job but forum.php calls the main forum page and archives.php?f=xx calls my hidden/non-active forums and shows them on their own page. It keeps things neat and tidy, and it all came about because the forum/category I created to contain my list of archive forums couldn't be made to appear, by default, in a collapsed configuration on the main forum page!

PS The only problem I have with this way of doing it is that the sub-menu FAQ, etc is missing when I clcik on my 'Archives' tab. However, I'm working on that right now and I think I may have it working in tonight. I've just got to go and try it.
Reply With Quote
  #631  
Old 03-17-2011, 02:49 AM
six58 six58 is offline
 
Join Date: May 2005
Location: Australia
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Old-Git View Post

My archives.php is simply a copy of forum.php renamed as archives.php.

PS The only problem I have with this way of doing it is that the sub-menu FAQ, etc is missing when I clcik on my 'Archives' tab. However, I'm working on that right now and I think I may have it working in tonight. I've just got to go and try it.
thanks for the reply.
i am currently trying the other tab version, but i find this info very helpful and will probably look into a bit further. as i think i mentioned i had tried making my own tab but had the issue of no working sub tabs, and also had an issue with this one, which is why i abandoned it.

the other one (the sstab advanced) is working better overall but am still getting a glitch with the sub tabs (made a post about it in that thread), so may have to go back to creating my own tabs anyway.
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 06:31 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.08255 seconds
  • Memory Usage 2,361KB
  • 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
  • (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