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)

ForceHSS 03-10-2012 10:13 PM

just copy the link to the box its easy if you still have a problem pm me will do it for you

raymondblog 03-11-2012 08:14 AM

Quote:

Originally Posted by ForceHSS (Post 2308249)
show link you want to use not sure what you are talking about

For example, if I want the Contact tab to be selected,

Contact|http://www.website.com/forum/sendmessage.php=>self

I would put sendmessage at the Tabs Selected.

What if I want tab selected for the URL below which is a folder and not a file?

Subscribe|http://www.website.com/forum/subscribe/ ?

ForceHSS 03-11-2012 02:01 PM

pm me a link to your forums and the link in question you want to use

Hippy 03-11-2012 02:13 PM

Quote:

Originally Posted by Hippy (Post 2307715)
will peek at it before the weekend it up..

been busy .. I might not get to it .. sorry
I will not foget thos will do it as soon as I can..

Hippy 03-15-2012 03:06 AM

Quote:

Originally Posted by gpinjason (Post 2307352)
Thanks for the updates ForceHSS!

One issue I've found though, not sure if it's my system or not. I'm running 4.1.10, when I disable the "What's New?" Tab, and I click on the "New Posts" subnav link, the page comes up with the subnav links missing, and the borders missing on the bottom of the tabs.

This is what it looks like with the tab disabled:

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

And this is what it should look like:

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

Quote:

Originally Posted by gpinjason (Post 2307666)

admincp> Plugins & Products >plugin manager > Product : vBH - Add new tabs 1.2 or what ever version your using .. they are all the same but the "vbulletin" minversion= maxversion=

anyway

under Disable Tabs
replace the code with this

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']= preg_replace(
                '#(<li>|<li\s*class="selected">)*<a\s*class="navtab"\s*href="search\.php\?\'\s*\.\s*\$session\[\'sessionurl\'\]\s*\.\s*\'do=\w+&amp;contenttype=\w+"\s*accesskey="\d">\'\s*\.\s*vB_Template_Runtime::parsePhrase\("\w*"\)\s*\.\s*\'</a>(</li>)*#i',
                '',$vbulletin->templatecache['navbar']);
                break;

                        }

        }
               
       
}

this mod is in good need of a update..

this will get you by with disabling the what's new and lossing the subnav







Quote:

Originally Posted by gpinjason (Post 2308289)
I have tab links to a few cms article pages on my forum, and cannot figure out how to get the tab to show selected.. I know there has to be something I can do to make this happen, but I'm not too code savvy...

example

your adding content.php for your tab / button .. in the options on this mod under Tabs Selected
add vbcms
example
in Add new tabs URL and Text it would look like this
Calendar|calendar.php=>self
FAQ|faq.php=>self
Albums|album.php=>self
Groups|group.php=>self
Home|content.php=>self here add content.php and the rest that follows home can be what ever you like as long as the articles are using the content.php and you add the vbcms to tabs selected you golden

under Tabs Selected
it will look like this
Code:

calendar,faq,album,group,vbcms

ForceHSS 03-15-2012 04:36 AM

<a href="https://vborg.vbsupport.ru/showpost.php?p=2236968&postcount=698" target="_blank">https://vborg.vbsupport.ru/showp...&postcount=698</a>
thanks, hippy's fix added also added some of my own fixes

gpinjason 03-16-2012 12:40 AM

Quote:


example

your adding content.php for your tab / button .. in the options on this mod under Tabs Selected
add vbcms
example
in Add new tabs URL and Text it would look like this
Calendar|calendar.php=>self
FAQ|faq.php=>self
Albums|album.php=>self
Groups|group.php=>self
Home|content.php=>self here add content.php and the rest that follows home can be what ever you like as long as the articles are using the content.php and you add the vbcms to tabs selected you golden

under Tabs Selected
it will look like this
Code:

calendar,faq,album,group,vbcms



I tried adding the vbcms to the selected list and it didn't work.. I think it's because I'm linking to 3 different content pages + the "Home" Tab links to the main CMS page. Each time I click the content page link, it just shows the "Home" tab selected.

I will try it again. Thanks for the help!!!

Hippy 03-16-2012 01:13 AM

Quote:

Originally Posted by gpinjason (Post 2309907)
I tried adding the vbcms to the selected list and it didn't work.. I think it's because I'm linking to 3 different content pages + the "Home" Tab links to the main CMS page. Each time I click the content page link, it just shows the "Home" tab selected.

I will try it again. Thanks for the help!!!

will peek into it and report back.. how did the whats new tab work out for you

ForceHSS 03-16-2012 01:27 AM

Quote:

Originally Posted by gpinjason (Post 2309907)
I tried adding the vbcms to the selected list and it didn't work.. I think it's because I'm linking to 3 different content pages + the "Home" Tab links to the main CMS page. Each time I click the content page link, it just shows the "Home" tab selected.

I will try it again. Thanks for the help!!!

If you want to link your home tab copy the full url and in the Tabs Selected box put home not vbcms. What you see in Add new tabs URL and Text box is only a guide read what it says to the left of that box. You can delete all default text in both boxes and add your own things

Dygear 03-21-2012 10:35 AM

Great job, very easy to use!


All times are GMT. The time now is 12:46 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.02045 seconds
  • Memory Usage 1,755KB
  • 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
  • (8)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