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)

fogjuice 02-21-2011 11:26 PM

Not working with vb4.1.2, anyone that says it is is lying.

Code:

Warning: Invalid argument supplied for foreach() in [path]/includes/class_bootstrap.php(414) : eval()'d code on line 6

fishinstud 02-21-2011 11:53 PM

Works on vb4.1.2 suite
thefafclan.com

It wasn't in English but it wasn't hard to translate
Thank you

iCheat24 02-22-2011 09:39 PM

it works fine on 4.1.2 :)

AshMagic 02-23-2011 11:50 AM

Confirmed working with 4.1.2. Great mod!

And no fogjuice, I'm not lying.

Baha2r 02-23-2011 03:15 PM

Tried to install this in 4.1.0 PL2 but came up with the error below.

Warning: Unexpected character in input: ''' (ASCII=39) state=1 in /home/asrebazi/public_html/forum/includes/class_bootstrap.php(412) : eval()'d code on line 29

Parse error: syntax error, unexpected '<' in /home/asrebazi/public_html/forum/includes/class_bootstrap.php(412) : eval()'d code on line 29

What can I do to resolve it?:erm:

vBHispano 02-24-2011 02:42 AM

Quote:

Originally Posted by Baha2r (Post 2165838)
Tried to install this in 4.1.0 PL2 but came up with the error below.

Warning: Unexpected character in input: ''' (ASCII=39) state=1 in /home/asrebazi/public_html/forum/includes/class_bootstrap.php(412) : eval()'d code on line 29

Parse error: syntax error, unexpected '<' in /home/asrebazi/public_html/forum/includes/class_bootstrap.php(412) : eval()'d code on line 29

What can I do to resolve it?:erm:

Make sure you are using the correct format for your links, there are some examples y the first post of this thread.

I just tested it on vb4.1.2 and it works well.

wheretobet 03-01-2011 08:37 AM

1st let me say I love the plugin.

However, I so I see your notes about limitations to the high-lighted tabs for pages included in the software.

What kind of work around can be done to re-assign values to the 'THIS_SCRIPT ' value?

I have a CMS page that I made a tab for and I would like it to be selected and the default home page tab not to be.

ANY help is greatly appreciated.


WORKS PERFECTLY ON 4.12
http://crunkpoker.com

AshMagic 03-02-2011 10:04 PM

Quote:

Originally Posted by Longjohn (Post 2011380)
Ok, heres how to remove the link at the bottom.

Go into Plugin Manager and look for Disable Tabs which is found under "Product: vBH - Add new tabs 1.2", select Edit, in the "Plugin PHP Code" box, scroll down and remove the following lines of code.

Code:

//copyright start here
if(!defined('VBH_CPR')) {
        $key = strpos($vbphrase['powered_by_vbulletin'], "vbhispano.com");
        if($key === false){
                $vbhcpr = '<br />Extra Tabs by <a href="http://www.vbhispano.com" title="Soporte vBulletin en Espa?ol">vBulletin Hispano</a>';
                define('VBH_CPR', $vbhcpr);
                $vbphrase['powered_by_vbulletin'] .= VBH_CPR;
        }
}


Nice one :)

littlenikos 03-05-2011 01:14 AM

Awesome mod! Thank you!!
Now to find one like this that has submenu's!

BoostedK20 03-07-2011 02:54 PM

I can't figure out how to make this work, I installed it and uploaded it via FTP but I can't find it in my admincp options -___-

RogerStout 03-07-2011 03:45 PM

Its says importing product... sets there forever with this message below

Please upload the file bitfield_vbhtabs.xml to /includes/xml/ before installing or upgrading!

never installs. file uploaded to /includes/xnml/ as it says..

BoostedK20 03-07-2011 04:25 PM

^ Roger, what did you do to get to that point? From downloading from this site to where you are now (each step)

RogerStout 03-07-2011 04:30 PM

downloaded the file, unzip, copy bitfield_vbhtabs.xml to /includes/xml/

go to Admincp - plugin and products - manage products - add/import product - import product-vbh_newtabs10.xml

thats as far as I get..

BoostedK20 03-07-2011 04:55 PM

I did the same, I used the xml file in the vbh add new tabs 1.1 folder, not the one inside the upload folder. Can't get it to work though

BoostedK20 03-07-2011 05:08 PM

I got it to work, you need to click Settings then Options in admincp, then scroll to the bottom and find it. Then follow the directions and it works.

BoostedK20 03-07-2011 05:23 PM

Now it doesn't change selected tab off of Forum when on Home. What do I do?

johnscanlan2 03-09-2011 08:36 PM

YES this is what I need...Thanks!

Old-Git 03-12-2011 12:11 AM

I've just installed this on 4.1.2, worked a treat and setting up a new tab was a breeze. However the tab I set up was as follows

Archives|forum.php?f=xx=>self

It works fine and takes me to exactly where I want to go. My only problem is that the highlight (showing which tab is active) stays on the forum tab and not on my new Archive tab. Is there a way around this?

Old-Git 03-12-2011 01:45 PM

OK, so I think I figured out how to deal with this highlighting issue, i.e. making a 2nd copy of forum.php and renaming it to archives.php and then edit THIS_SCRIPT entry at the top of archives.php and change 'index' to 'archives'. In AdminCP/SETTINGS/OPTIONS/vBH New Tabs Options I Configured my new tab with

Archives|archives.php?f=xx=>self

(I'm just trying to show some extra archive forums, which are not set as active, on a separate page)

I Then added 'archives' to the 'Tabs Selected' section (again in AdminCP/SETTINGS/OPTIONS/vBH New Tabs Options)

The only problem is I can't test this to make sure it works OK. I uninstalled the product so I could edit the XML to take out the copyright statement (as per the posts on pg 39). However, when I re-installed it it screws up the entire layout of my forums. In fact I think it promotes the new mobile style to be the default style on my site. Disbaling the product stops this from happening. So now I've got to figure out how to prevent this from happening. Alternatively, I think I saw a post a few pages back that recommended a new Tab inserter product that is actually still a supported product.

Old-Git 03-12-2011 03:07 PM

Well I added the copyright stuff back into the xml file and guess what it worked again. It would appear the either the chap who posted the snip for removing the copyright info was wrong or there's been an update since to prevent the copyright info from beign removed.

So I edited it instead...

Quote:

//copyright start here
if(!defined('VBH_CPR')) {
$key = strpos($vbphrase['powered_by_vbulletin'], "Elmer");
if($key === false){
$vbhcpr = '<br />Extra Tabs by Elmer';
define('VBH_CPR', $vbhcpr);
$vbphrase['powered_by_vbulletin'] .= VBH_CPR;
}
I took out the links to the Spanish site and just added Elmer's name in their place. It leaves the Copyright intact but it removes the troublesome links and allows the tabs to work and be highlighted! Happy at last!

PS The issue with the display may actually be related to this issue (which is also a footer issue)..

http://www.vbulletin.com/forum/showt...ghlight=mobile

markb5900 03-13-2011 04:28 PM

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.

alvarokid 03-13-2011 10:08 PM

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,

Old-Git 03-13-2011 10:48 PM

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!

markb5900 03-13-2011 11:47 PM

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

DannyITR 03-13-2011 11:55 PM

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.

six58 03-14-2011 12:56 AM

Quote:

Originally Posted by Old-Git (Post 2173041)
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

Qwest 03-15-2011 03:55 AM

works flawlessly in 4.1.2

six58 03-15-2011 04:51 AM

Quote:

Originally Posted by six58 (Post 2173083)
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.

Old-Git 03-15-2011 10:33 PM

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.

six58 03-17-2011 02:49 AM

Quote:

Originally Posted by Old-Git (Post 2173786)

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.

setishock 03-27-2011 11:06 AM

When I upgraded to 4.1.2 from 4.0.6 this mod was already installed. Works like it should after the upgrade.
Does any one know how to add an image to the tabs like I did with the VB default tabs?
http://www.animeappeal.com/?styleid=93

Update: I figured it out. Really it's quite simple.
Code:

<img src="Path/To/Your/image" border="0" align="top" alt="" />Albums|album.php=>self
I used images 24x24px in a png format and added the image call before the name of the tab. Works like a charm.
I got the idea from here which shows how to add images to the default VB tabs > https://vborg.vbsupport.ru/showthread.php?t=240138

Sworm 03-30-2011 05:31 PM

Is this work on 4.1.2?

Audrea 04-02-2011 04:11 AM

Just installed for 4.1.2 - works great!!!

leebo1010 04-02-2011 06:53 AM

I just installed on 4.1.2 as well and it works flawlessly.

HolyKiller 04-10-2011 09:56 PM

Does NOT working on 4.1.3

Quote:

Warning: Unexpected character in input: ''' (ASCII=39) state=1 in /var/www/forum.xxxxx.xx/includes/class_bootstrap.php(414) : eval()'d code on line 68

Parse error: syntax error, unexpected '<' in /var/www/forum.xxxxx.xx/includes/class_bootstrap.php(414) : eval()'d code on line 68
After plugin disable, everything works fine again.

Tardis 04-12-2011 08:54 AM

I get a problem too after upgrading to 4.1.3.

"Warning: Invalid argument supplied for foreach() in [path]/includes/class_bootstrap.php(414) : eval()'d code on line 1"

I've disabled the plugin for now. If anybody has a fix for this it would be appreciated.

CoronasRGood 04-12-2011 10:28 AM

You have to uninstall the product and then reinstall it.

Tardis 04-12-2011 12:35 PM

Quote:

Originally Posted by CoronasRGood (Post 2183755)
You have to uninstall the product and then reinstall it.

Thanks for the reply.

Confirmed working in 4.1.3

I uninstalled and installed it again fresh after forum upgrade.

Plugins and Products --> Manage Products --> Uninstall (drop down menu)

awibbs 04-12-2011 03:53 PM

Hi

do you still have an older version that works with 3.7.3 ?

thx

SRobbins1977 04-13-2011 04:28 AM

I'm not able to install this plugin on forum classic 4.1.3. I get "Invalid File Specified". Never installed it before.

Thoughts?


All times are GMT. The time now is 09:51 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.03708 seconds
  • Memory Usage 1,839KB
  • 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
  • (3)bbcode_code_printable
  • (10)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