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)

Derekclarke 01-27-2010 09:48 PM

I get the following at the top of my CMS & forum pages when i upgrade to the latest version.

PHP Code:

WarningInvalid argument supplied for foreach() in [path]/includes/class_bootstrap.php(399) : eval()'d code on line 41

Warning: Cannot modify header information - headers already sent by (output started at [path]/includes/class_core.php:4501) in [path]/includes/functions.php on line 4601 


oddmud 01-28-2010 10:16 PM

IN IE8, THIS PRODUCT CAUSES USER TO BE LOGGED OUT.

When using IE8, whenever I click on one of the added tabs, it will lose it's cookie, and log out the user.

It only happens when clicking on these additional tabs created by this mod.

Please look in to a fix, as this is a great product otherwise.

Elmer 02-02-2010 05:04 PM

Quote:

Originally Posted by Derekclarke (Post 1968394)
I get the following at the top of my CMS & forum pages when i upgrade to the latest version.

PHP Code:

WarningInvalid argument supplied for foreach() in [path]/includes/class_bootstrap.php(399) : eval()'d code on line 41

Warning: Cannot modify header information - headers already sent by (output started at [path]/includes/class_core.php:4501) in [path]/includes/functions.php on line 4601 


You need to empty your tabs configuration, I think.

Elmer 02-02-2010 05:33 PM

Quote:

Originally Posted by oddmud (Post 1969346)
IN IE8, THIS PRODUCT CAUSES USER TO BE LOGGED OUT.

When using IE8, whenever I click on one of the added tabs, it will lose it's cookie, and log out the user.

It only happens when clicking on these additional tabs created by this mod.

Please look in to a fix, as this is a great product otherwise.

Thank you for reporting that problem, I think it?s because all tabs doesn't pass the session into the url.. I'll make an update for this, but this mod won't have more features as I'm working In a more advanced product that will include queries.

Regards.

Kunai 02-02-2010 07:52 PM

This one needs an update for 4.0.1 ....

steve1966 02-02-2010 07:57 PM

uninstalling untill updated

Kunai 02-02-2010 09:03 PM

Quote:

Originally Posted by steve1966 (Post 1973351)
uninstalling untill updated

Na it works, you can use it, without any failure.

It was my bad because it thought it would not work. It works well thank your for this

x YNWA x 02-03-2010 07:56 PM

Hi

My site is www.247gamers.net and I have installed this addon as I wanted a home button. But when you click on the home tab it does not show its selected..

For example if you hover over the forum tab and select it, the tab is lighter with dark text to show its the one selected, this does not happen when clicking home. Maybe something to do with CSS? Is there a way around this? Thanks

Elmer 02-08-2010 10:35 PM

Just updated the mod to include tab highlighting and options to disable default tabs.

rinunez 02-08-2010 10:44 PM

Now Updated! Awesome Elmer, You are carrying vBulletin 4 to a new level with this hack.

Hurray, Thanks vBH!

jhabers 02-08-2010 10:58 PM

I am having trouble getting my tab to highlight. My one tab that I have is like follows

Donate|/forum/content.php/138-Become-a-Supporter-and-Donate=>self;1 2 3 4 5 6 7 8 9

what would i do to get this highlighted?

steven s 02-08-2010 11:15 PM

Quote:

Originally Posted by Elmer (Post 1977865)
Just updated the mod to include tab highlighting and options to disable default tabs.

I must be missing something.

When I click on a tab, should the tab remain highlighted when I am on that page?
Installed on http://www.nccbmwcca.org

Edit: I guess it's because my gallery and classifieds are an index file.

Elmer 02-08-2010 11:21 PM

Quote:

Originally Posted by jhabers (Post 1977885)
I am having trouble getting my tab to highlight. My one tab that I have is like follows

Donate|/forum/content.php/138-Become-a-Supporter-and-Donate=>self;1 2 3 4 5 6 7 8 9

what would i do to get this highlighted?

Yo can't. The problem is that that file has a value in THIS_SCRIPT different then the file name content.php. The value for that file is vbcms and that doesn't match the filename.

If you have information for donations in that article, I recommend you do a custom page so you cant define THIS_SCRIPT with your own value. There are a few guides in the vb4 forums here in vb.org to make custom pages.

Elmer 02-08-2010 11:25 PM

Quote:

Originally Posted by steven s (Post 1977896)
I must be missing something.

When I click on a tab, should the tab remain highlighted when I am on that page?
Installed on http://www.nccbmwcca.org

Edit: I guess it's because my gallery and classifieds are an index file.

That's the problem. The way I made this mod doesn't allow to select any tab if the value for THIS_SCRIPT isn't the same as the file name. I will try to do it differently in the next update so you can highlight the tab even if the THIS_SCRIPT value is different than the filename.

DBStattoo 02-09-2010 01:35 AM

thanks for the update :up:

Neptun 02-09-2010 10:05 AM

can you add also the drop down function to this hack ?! this would be great - then this hack is the best ;) very very usefull ! i will update today to the new release

ps2wiz 02-09-2010 11:18 AM

Quote:

Originally Posted by Elmer (Post 1977904)
will try to do it differently in the next update so you can highlight the tab even if the THIS_SCRIPT value is different than the filename.

Highly anticipating this, thanks.

Bob_R 02-09-2010 12:44 PM

Thanks!

Neptun 02-09-2010 03:13 PM

"disable the default tabs " works great - perfect work ;)

?
but at the moment i don`t understand what i can do defnitily with the "Tabs Selected" option ?!

Elmer 02-10-2010 12:27 AM

Quote:

Originally Posted by Neptun (Post 1978360)
"disable the default tabs " works great - perfect work ;)

?
but at the moment i don`t understand what i can do defnitily with the "Tabs Selected" option ?!

Tab selected is to make your tab highlighted. You just need to add the file name you are linking to, this name also need to be in the THIS_SCRIPT constant value so your page get highlighted. Read the option description.

Bob_R 02-10-2010 01:27 AM

My mods can't see the tabs. The admins and registered users can.

If 6 is Admins and 2 is registered users
and
1 is unregistered users

What number is for mods?

Thanks!

Elmer 02-10-2010 01:38 AM

Quote:

Originally Posted by Bob_R (Post 1978785)
My mods can't see the tabs. The admins and registered users can.

If 6 is Admins and 2 is registered users
and
1 is unregistered users

What number is for mods?

Thanks!

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.

Bob_R 02-10-2010 01:40 AM

Quote:

Originally Posted by Elmer (Post 1978793)
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.

Thanks.

Slayerz 02-11-2010 05:41 AM

Any chance to get this for 3.8?

Kyoshokid 02-11-2010 06:18 PM

Thanks dude this helps alot.

rollerman 02-13-2010 02:44 PM

Very happily installed. This is terrific! :up:

Supramania 02-13-2010 04:51 PM

1 Attachment(s)
I think I found a bug, or perhaps just a limitation. Behavior is identical in both Firefox 3.5.7 and Internet Explorer 8.

When you narrow the window to the point where there's not enough rooms for the tabs (in my case under 1000 pixels, you get the following issues:

#1 - Any tab that hasn't reached the end of the screen goes "under" the search box.

#2 - Any tab that has reached the end of the screen wraps to the next line and is underneath the existing navigation text.

Examples:

https://vborg.vbsupport.ru/attachmen...1&d=1266086676

Fullscreen however it looks great. Not really a big deal as it is 2010 and most people have wider than 1024 pixel screens anyway, but some people don't' surf fullscreen.

Just wondering if there's a way to make this handle it more gracefully?

RedHacker 02-14-2010 09:53 AM

Can add tab before tab "Blog" or "What's New"....?

PI Guy 02-14-2010 11:04 AM

Hi

I'm sorry but I can't make this work. Are there a step by step instructions for someone that doesn't know much about forums?

Pro-eSports.com 02-14-2010 11:15 AM

It would be perfect if you try to implement sublinks for future updates.
I would also like to see some kind of permission thing. For example I want a register/log in tab to show up if you are not logged in. If you are logged in the tab doesn't show up for you anymore.

PS: What are groups and albums by the way? Can someone explain these 2 features? I'm new to vBulletin so I'm still trying to get a hang of all the things.

rollerman 02-14-2010 03:42 PM

Quote:

Originally Posted by RedHacker (Post 1981997)
Can add tab before tab "Blog" or "What's New"....?

Yes. Just select "left" under "tab position" in the options page. It will put all of your custom tabs to the right of the "home" tab but to the left of "blog" and "what's new."

Example:

https://vborg.vbsupport.ru/external/2010/02/49.jpg

rollerman 02-14-2010 03:57 PM

Quote:

Originally Posted by PI Guy (Post 1982027)
Hi

I'm sorry but I can't make this work. Are there a step by step instructions for someone that doesn't know much about forums?

Noob here, but learning. I can walk you through it.
  • After downloading the .zip file, extract all of the files in the folder "vbh add new tabs 1.2."
  • Then you need to put the files in their particular folders on your server. In the case of this particular hack, it's super-easy, because there's just one file.
  • So, you get the file "bitfield_vbhtabs" where it belongs on your server. It needs to go into the [your site's root]/includes/xml folder on your server. You can do this with an FTP, but if your site has a plesk, you can just import it that way, probably more quickly.
  • After getting the file into your server in the right place, go to the Admin CP and go to down to the bottom of the left-hand menu. Select "Plugins & Products," then "product manager" from that drop-down menu.
  • Once the product manager opens, click on "add/import product." then you'll be taken to a screen where you choose whether to import from your computer or from your server. In this case, you're importing from your computer.
  • Click on "browse" in the first option and locate the un-zipped file for "vbh add new tabs 1.2." at the root menu of this file is the XML file "product-vbh_newtabs10." Double-click this to select the file. Then click "yes" to "allow overwrite," then click "import."
  • You'll get a screen confirming the upload, but the file is so small that it may be a mere flash.
  • You're done! Just double-check this in the ACP fo your permissions, etc.

RedHacker 02-14-2010 04:40 PM

Quote:

Originally Posted by rollerman (Post 1982216)
Yes. Just select "left" under "tab position" in the options page. It will put all of your custom tabs to the right of the "home" tab but to the left of "blog" and "what's new."

Example:

https://vborg.vbsupport.ru/external/2010/02/49.jpg

I find only one tab show before this tabs....

Jabong82 02-14-2010 05:47 PM

Hi there I am having some trouble (maybe basic) installing this Mod.

Basically I upload the files to my webserver, but when I go to import the XML File (products-VBH_Newtabs-10 or whatever) I get this error message:

"Please upload the file bitfield_vbhtabs.xml to /includes/xml/ before installing or upgrading!
Por favor subre el archivo bitfield_vbhtabs.xml a /includes/xml/ y luego instalar o actualizar este addon"

So then I go back and I find the bitfield_vbhtabs to upload in the product manager and then I get this error:

"Invalid File Specified"

Anybody know why this is happening? Any help would be appreciated.

NashChristian 02-14-2010 05:59 PM

Quote:

Originally Posted by Jabong82 (Post 1982306)
So then I go back and I find the bitfield_vbhtabs to upload in the product manager and then I get this error:

"Invalid File Specified"

You need to FIRST upload the bitfield_vbhtabs.xml via FTP (into the appropriate directory = forum root > includes > xml). THEN you need to upload the product-vbh_newtabs10.xml via the Product Manager.

That should fix your problems.

Best of luck!
:D

Jabong82 02-14-2010 08:32 PM

Quote:

Originally Posted by NashChristian (Post 1982316)
You need to FIRST upload the bitfield_vbhtabs.xml via FTP (into the appropriate directory = forum root > includes > xml). THEN you need to upload the product-vbh_newtabs10.xml via the Product Manager.

That should fix your problems.

Best of luck!
:D

Ok got it! Thank you for your help.

Jabong82 02-14-2010 08:58 PM

Ok got it set-up. Some quick questions though. Bear with me I'm a newb!

1.) Are we only allowed to move our Newly Created Tabs either to the left or right of the "Forum, Whats New, Blog" tabs? Say I wanted to add a Profile and Calendar tab. Are my only options pretty much:

A. Profile/Calendar/Forum/Whats New/Blog
B. Forum/Whats New/Blog/ Profile/Calendar

or is there anyway to "mix" the tabs up in the Nav Bar such as

C. Profile/Forum/Calendar/Blog/Whats New

Or are we stuck with either left or right of the default tabs?

2.) I wanted to add a "My Profile" tab to the Navbar. So I used the config: "My Profile|member.php=>self" in the Options panel.

I am able to create the Tab perfectly, however when I click on it I get this message:

"This user has not registered and therefore does not have a profile to view"

I don't get how the user (me or any other) could not be registered as I am logged in to my account. Any ideas why this might be? Did I do something wrong?

Basically I want it so that when users click "My Profile" in the new tab its just like clicking "My Profile" in the default upper right corner of the Vbulletin Page.

Any help would be appreciated. Thanks in advance!

Videx 02-14-2010 09:40 PM

Quote:

Originally Posted by Jabong82 (Post 1982438)
2.) I wanted to add a "My Profile" tab to the Navbar. So I used the config: "My Profile|member.php=>self" in the Options panel.

I don't know, but in another thread you said you wanted subscriptions? A link to the member's subscription page would be easier since it doesn't use a custom url like My Profile does.
http://www.myforum.com/forum/subscription.php?do=viewsubscription

Jabong82 02-14-2010 10:04 PM

Quote:

Originally Posted by Videx (Post 1982468)
I don't know, but in another thread you said you wanted subscriptions? A link to the member's subscription page would be easier since it doesn't use a custom url like My Profile does.
http://www.myforum.com/forum/subscription.php?do=viewsubscription

Hi yes Videx I was able to create a Tab for the subscriptions page which works great. I was wondering if there was a way to do one for the "My Profile" feature as well.

Medtech 02-15-2010 03:05 AM

Works great!! Thanks!:up:


All times are GMT. The time now is 04:07 AM.

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.01776 seconds
  • Memory Usage 1,846KB
  • 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_php_printable
  • (17)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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