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)

StarShaper 07-07-2010 09:05 PM

This Plugin generates a warning with vB 4.0.4.

Quote:

Invalid argument supplied for foreach() in [path]/includes/class_bootstrap.php(394) : eval()'d code
The following code lines are responsible.

PHP Code:

foreach ($vbulletin->bf_misc_vbhdistabs AS $tabname => $valor)
{
    if (
$vbulletin->options['vbhdistabs'] & $valor){
switch(
$tabname){

            case 
'vbh_cms':
            
$vbulletin->templatecache['vbcms_navbar_link'] = str_replace('<li','<li style="display:none"',$vbulletin->templatecache['vbcms_navbar_link']);
break;
        break;

        case 
'vbh_blogs':
            
$vbulletin->templatecache['blog_navbar_link'] = str_replace('<li','<li style="display:none"',$vbulletin->templatecache['blog_navbar_link']);
        break;

        case 
'vbh_whats_new':
            
$vbulletin->templatecache['navbar'] = str_replace('><a class="navtab" href="search.php',' style="display:none"><a class="navtab" href="search.php',$vbulletin->templatecache['navbar']);
        break;

            }

    }
        
    



lulu22 07-08-2010 03:51 PM

Great mod. Makes adding tabs soooooooooo much simpler. THANK YOU Elmer!:D

Mumin 07-09-2010 05:05 AM

I downloaded this file. I am using 4.0.4.

How do I do this part? "Import the xml file from the product manager.."

Ririal 07-12-2010 08:51 AM

Amazing. Simple and easy to use, exactly what I was searching for.

Idiosyncrasy 07-14-2010 05:26 AM

Very nice mod. My members have been asking for this kind of thing for a while, and I'm impressed at how easy it was to use. Thanks!

Installed at http://www.totse2.com

Nikola Bosnjak 07-14-2010 05:43 PM

Quote:

Originally Posted by salvador21 (Post 2058234)
Sorry to appear thick, but can someone explain in simple language how to get a tab selected.

The tab is working nicely but I can't figure out the THIS_SCRIPT business.

e.g. if I am linking to a CMS article, e.g.

http://cafesaxophone.com/content.php?198-Music-Store

what do I put in the VBH tab control panel, and do I edit any files?

I'm repeating this becouse I can't find the answer, and I'm also stuck here. I linked new tab to an article, but I have no clue what to do with THIS_SCRIPT. Any example, please? Do I need to insert some code to an article that would make tab selected?:confused:

EDIT: I did it like it was described here. Works fine for me.

I wanted a tab that would display my section 21, and also to be active when I click it. The link to this section is .../content.php?21.
So, I made a copy of content.php and named it novosti.php. I opened it and modify line with THIS_SCRIPT, replaced "vbcms" with "novosti". I made new tab with this tool and point it to novosti.php?21, and set the THIS_SCRIPT value to "novosti". Everithing is great, only I don't have sublinks, like I have them when I go to article 21 on regular way, but that is a minor issue.

PreciseDemise 07-17-2010 10:01 PM

Great Mod, works perfects Thanks =)

joeman 07-28-2010 06:34 PM

Quote:

Originally Posted by Mumin (Post 2066678)
I downloaded this file. I am using 4.0.4.

How do I do this part? "Import the xml file from the product manager.."

Did you get this to work with your version 4.0.4?

Just wondering if this tabs mod will work with 4.0.4 yet or if there is a tab plugin on vBulletin.org that anyone knows about. Thanks

Mosh 07-28-2010 08:53 PM

Quote:

Originally Posted by joeman (Post 2075894)
Did you get this to work with your version 4.0.4?

Just wondering if this tabs mod will work with 4.0.4 yet or if there is a tab plugin on vBulletin.org that anyone knows about. Thanks

You could try my one - Tab and Link Manager Lite.

Boofo 07-28-2010 09:12 PM

Quote:

Originally Posted by joeman (Post 2075894)
Did you get this to work with your version 4.0.4?

Just wondering if this tabs mod will work with 4.0.4 yet or if there is a tab plugin on vBulletin.org that anyone knows about. Thanks

I'm using this on vb 4.0.5 and it works fine.


All times are GMT. The time now is 11:51 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.01842 seconds
  • Memory Usage 1,754KB
  • 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
  • (1)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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