vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - vBH-Add new tabs (https://vborg.vbsupport.ru/showthread.php?t=228507)

Elmer 11-20-2009 10:00 PM

vBH-Add new tabs
 
1 Attachment(s)
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.

Defkalion 11-21-2009 09:14 AM

Simple and to the point. Thanks. This should be a default option in vb.

Billspaintball 11-21-2009 09:16 AM

Ohhh.....
This has potential.
Tagging for future reference

nureeves 11-21-2009 09:28 AM

Wow, I'm gonna love this :)
Thanks

mokujin 11-21-2009 09:33 AM

good idea. thanks

Elmer 11-21-2009 09:39 AM

I have updated the file, please download it again. I was cahing the wrong template so if you installed it before this post you may be getting a new query in your forums :(

JVCode 11-21-2009 10:01 AM

Tagged, nice mod!

SİMAR 11-21-2009 10:05 AM

Thanks

maximutt 11-21-2009 10:26 AM

Love it! Great job!

syrus.xl 11-21-2009 10:31 AM

Good idea... easier than editing the darn templates! lol

yilmaz 11-21-2009 10:42 AM

thanks
installed

Veer 11-21-2009 10:48 AM

Is it possible to have Tabs with Navbar links and dropdown menu as well?

mitch84 11-21-2009 10:51 AM

good job, thx!

messengermatt 11-21-2009 11:12 AM

Great mod but i am wanting to make the tabs so they open in a new window, is this possible at all?

Elmer 11-21-2009 11:29 AM

Quote:

Originally Posted by messengermatt (Post 1918253)
Great mod but i am wanting to make the tabs so they open in a new window, is this possible at all?

You can do that by editing the template "vbh_newtabs" and add the url target. I can add a new option to choose whether the link opens in a new window or current, but that would make all links open in a new window if selected.

messengermatt 11-21-2009 11:37 AM

Can you PM me how to do that and where please? as im a bit stuck

Elmer 11-21-2009 12:22 PM

Edit template vbh_newtabs and replace all the code inside with this:

Code:

<li><a class="navtab" href="{vb:raw url}" target="_blank">{vb:raw titulo}</a>
I will update the plugin soon to add that option anyway.

halkum 11-21-2009 12:23 PM

Marked as installed and vote for motm

elwachiman 11-21-2009 01:24 PM

very good thanks elmer this option and the excellent facilities

wtsnake 11-21-2009 01:28 PM

I'm very new to vB and I cant find where to add the option. I dont have a tabs option.

edit* nevermind I got it. Thanks!

Itworx4me 11-21-2009 02:06 PM

This would be the perfect mod if you could add the dropdown list. Make it seperate from each tab.

Thanks,
Itworx4me

rinunez 11-21-2009 02:46 PM

Excelent Elmer, Excelent!

nomoreturn 11-21-2009 04:42 PM

Very easy To make new tab Installed Thanks

crazyace 11-21-2009 04:54 PM

This mod is really great but how ever, with my tabs I control which ones show up depending on what user group the user has. Can this mod do that as well? At the moment I'm adding them by hand which isn't really hard.

mondiuk 11-21-2009 04:58 PM

best and easy mode for vb4.

thank's

abdobasha2004 11-21-2009 06:56 PM

thanks
reserved

wtsnake 11-21-2009 07:19 PM

Is there a way to move them in front of the "forums" tab?

also, if its possible to have sub-tabs under them, please let me know. that would be very helpful

Elmer 11-21-2009 08:21 PM

Quote:

Originally Posted by Itworx4me (Post 1918330)
This would be the perfect mod if you could add the dropdown list. Make it seperate from each tab.

Thanks,
Itworx4me

That's a very good idea, noting for future updates.

Quote:

Originally Posted by crazyace
This mod is really great but how ever, with my tabs I control which ones show up depending on what user group the user has. Can this mod do that as well? At the moment I'm adding them by hand which isn't really hard.

You can not, but I think it's a good idea and I will be working on it for next update.

Quote:

Originally Posted by wtsnake
Is there a way to move them in front of the "forums" tab?

also, if its possible to have sub-tabs under them, please let me know. that would be very helpful

That's not possible, just by editing the plugin and changing the hook for the center or left. I will add an option in the next update, so it can be activated from the options.
For now, submenus can't not be added, I don't know how they work so far but I will give a try and we'll see.

rinunez 11-21-2009 10:27 PM

I support the dropdown menu tabs, It will be great for my downloads.
The source code Its very interesting.

cjwzx2 11-22-2009 03:23 AM

Nice addition!

Dr.osamA 11-22-2009 04:17 AM

god mod man

thxxxxx
________
VAPORIZER SHOP

FlameGun 11-22-2009 04:54 AM

Suggestion, It is amazing already but I would love if you could:

Edit Titles of Already Placed Tabs
Edit Sub-Links of Tabs
Edit Display Order

TandyServices 11-22-2009 10:23 AM

Great this will help alot.. Thanks

VonDoom 11-22-2009 10:56 AM

This would be perfect if it would allow us to arrange the tabs before or after the default tabs. Installed, Nominated

iamspookysdaddy 11-22-2009 12:25 PM

Excellent Mod....Thanks for the great work!

Any way to make it so that a tab is only visible to non-logged in users? I am going to be using my forum integrated with another program where the login takes place. I am going to turn off registrations and remove the code for the login from vbulletin. I would like to have two tabs for login and register which will be used to direct to the other programs register and login pages. Once a user is logged in I would not want them to see the tabs:erm:

Thanks

crazyace 11-22-2009 02:55 PM

Quote:

Originally Posted by iamspookysdaddy (Post 1918852)
Excellent Mod....Thanks for the great work!

Any way to make it so that a tab is only visible to non-logged in users? I am going to be using my forum integrated with another program where the login takes place. I am going to turn off registrations and remove the code for the login from vbulletin. I would like to have two tabs for login and register which will be used to direct to the other programs register and login pages. Once a user is logged in I would not want them to see the tabs:erm:

Thanks

You would need to add in an if statment. Something like this

PHP Code:

if (is_member_of($vbulletin->userinfo567))
some code in here



LoveStream 11-22-2009 03:09 PM

Very simple and strong.

marianoblesa 11-22-2009 03:43 PM

please, target_blank

iamspookysdaddy 11-22-2009 05:46 PM

Quote:

Originally Posted by crazyace (Post 1918919)
You would need to add in an if statment. Something like this

PHP Code:

if (is_member_of($vbulletin->userinfo567))
some code in here




What code needs to be added? I am not a programmer :erm:

Thanks

Cajunle 11-23-2009 12:52 AM

Excellent and easy to setup.

Thanks


All times are GMT. The time now is 05:23 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01738 seconds
  • Memory Usage 1,820KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete