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
  #462  
Old 06-03-2010, 07:56 PM
Hippy's Avatar
Hippy Hippy is offline
 
Join Date: Dec 2001
Location: USA, New Jersey
Posts: 2,392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I also did a fresh install On my test board same issue

not 1 single mod done to it ..

Just a clean install of vb and this hack only..

your right infopro the coding is no correct ..
all tho the mod works perfectly

thanks boofo for your information,
lets see if any one has any other ideas

thanks infopro for confirming this issue
Reply With Quote
  #463  
Old 06-03-2010, 08:06 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The coding is correct if I was able to save the template fine. You must be having some other issues going on as you guys are the only ones who have reported this. Maybe you guys are trying in on a version less than 4.0.3? IIRC, there were issues with the way templates were being parsed that was supposedly fixed in 4.0.3.
Reply With Quote
  #464  
Old 06-03-2010, 11:18 PM
Infopro Infopro is offline
 
Join Date: May 2003
Location: Pennsylvania
Posts: 267
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's great to see you back around Boofo, I mean that. I stil have a few of your hacks on my 3.8 forum and I've agreed with you many times over the years on different topics, but this one? I'm sorry I just can't.

I have no clue what you're talking about with less than 4.0.3, this hack has not been updated since:

Last Update: 08 Feb 2010

This thread is 16 pages long. (for me) so, the hack itself has been around far longer than 4.0.3


As I mentioned previously, I'm not sure why another user would have edited this template and came across it, so to say no one else has had this problem is pure guess work on your part.

Maybe Elmer can help explain our problem. Or are you Elmer? You seem to be assisting here a bit more than just another coder might in this thread. You're in the top 3 posters of a 16 page thread.

No biggy, as that guy above Hippy mentioned, the hack works. It's opening an saving the template that does not. IMHO< it's not standards compliant somehow.

But hey what do I know, you're the coder, I'm just lowly end user with issues.

All the best.
Reply With Quote
  #465  
Old 06-03-2010, 11:23 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

All I'm saying is if you are trying to save the template on a version less than 4.0.3, then that might be the problem, no matter how long this hack has been around. On my 4.0.3, with numerous products installed, saving the template gave me no errors whatsoever. Funny why this would work fine for most others but mess up for just a very few, unless there were some other issues involved somehow.

No, I am not Elmer. And sorry if my assisting bothers anyone. I will back out of the thread and let you all handle things then.
Reply With Quote
  #466  
Old 06-04-2010, 01:28 AM
Infopro Infopro is offline
 
Join Date: May 2003
Location: Pennsylvania
Posts: 267
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo View Post
All I'm saying is if you are trying to save the template on a version less than 4.0.3, then that might be the problem, no matter how long this hack has been around.
That's not what you said at all.

Quote:
Originally Posted by Boofo View Post
On my 4.0.3, with numerous products installed, saving the template gave me no errors whatsoever.
That's great!
Quote:
Originally Posted by Boofo View Post
Funny why this would work fine for most others but mess up for just a very few, unless there were some other issues involved somehow.
Clearly you're not reading what I'm posting here. I've mentioned that the hack DOES work. Your answers lead me to believe I'm talking to the wrong person.

Quote:
Originally Posted by Boofo View Post
No, I am not Elmer. And sorry if my assisting bothers anyone. I will back out of the thread and let you all handle things then.
Again, you're not reading what your replying to it seems. I never once said you were a bother, I even welcomed you back, twice.

There is no problem that I can see, other than opening then saving the template. As you well know, this message means something is not correct in the template.

Code:
The following error occurred when attempting to evaluate this template:

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/adminfunctions_template.php(4781) : eval()'d code on line 1

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
Saving that template, untouched has nothing to do with something else as you've suggested, multiple times now, it has to do with the template itself, and what vbulletin requires to be correct to save it normally.

I do not believe the template is entirely vb4 compatible.

Now, all that said and your comment about backing out of this thread? That's fine, me too.

I don't even use the hack. I came across this thread and in an effort to help, and because I was nosy about possibly using it myself, I installed it today for the first time, to take a peek.

That's all. So, if it works for you great. You and I have no clue how many others it would save for, and how many it will error out for, no ones commenting in that regards other than Hippy and the noisy guy, Infopro.

So for you to say:

Quote:
Funny why this would work fine for most others but mess up for just a very few, unless there were some other issues involved somehow.
And several of your other comments in this regard, just don't make any sense to me. If it saves for you normally, great say so and move on. If you've got an educated guess as to the problem or a fix, say so or move on.

But please don't say its not an issue and write it off. And then go on to repeat things without actually reading the posts you're commenting to, you help no one and only promote responses like this one.

I hope this post doesn't sound like I'm being rude or offensive, that is surely not my intentions here. I don't use the hack myself. I tried to help I verified the problem here on my end and was hoping to help somehow. That's it.


BTW, if that's an actual picture of you, your av? You and I could be long lost brothers.

Peace.
Reply With Quote
  #467  
Old 06-09-2010, 09:17 PM
krustyx krustyx is offline
 
Join Date: Jul 2007
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can't get the "tab selected" to work.

I use photopost classified. THIS_SCRIPT is defined as cpindex in the index.php of the folder classified (wich is not in the forum directory).

i specify cpindex in the "tab selected" area of the script and it doesnt work... any ideas?
Reply With Quote
  #468  
Old 06-17-2010, 06:45 PM
Cort Cort is offline
 
Join Date: Aug 2009
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi - nice app! Everything works fine except I've been unable to link to a https page (for a paypal donate button). I use the same URL elsewhere and it works just fine. The page says "some information is missing'...it appears to leave off the ID number on the end. ??
Reply With Quote
  #469  
Old 06-18-2010, 06:35 PM
Cort Cort is offline
 
Join Date: Aug 2009
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I sent it to a page where the donate URL does work; its a little more trouble on the users end but it does work.

Oddly enough, until I eliminated the " ,'s" on the end of the lines the external links would not work. Now they are.
Reply With Quote
  #470  
Old 06-20-2010, 02:53 PM
Alphaforums.com Alphaforums.com is offline
 
Join Date: May 2010
Location: Montreal, Canada
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Don't use this, once you create a tab, it can't be deleted, it just stays there forever. I deleted it in the settings, I disabled the addon, I even uninstalled it, it's still there...Avoid at all costs
Reply With Quote
  #471  
Old 06-20-2010, 04:58 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 Alphaforums.com View Post
Don't use this, once you create a tab, it can't be deleted, it just stays there forever. I deleted it in the settings, I disabled the addon, I even uninstalled it, it's still there...Avoid at all costs
Then you are doing something wrong somewhere.
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 11:10 AM.


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.05715 seconds
  • Memory Usage 2,369KB
  • 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
  • (2)bbcode_code
  • (6)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