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)

Eq4bits 03-02-2012 09:02 PM

Quote:

Originally Posted by CrumbDown (Post 2297521)
Yes. I needed to add the filename under "Tabs Selected" within your plugin. Filename such as terms, faq etc. But not the extension such as .php or .html.

which of the three plugins, and what location?

Eq4bits 03-02-2012 09:04 PM

Quote:

Originally Posted by ForceHSS (Post 2305428)

just the page that links to or everything after that page as well?

ETA: doh, i see the link for v1.04 now

gpinjason 03-08-2012 04:37 AM

1 Attachment(s)
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

ForceHSS 03-08-2012 06:45 PM

thats your custom skin test on default

gpinjason 03-08-2012 09:58 PM

1 Attachment(s)
Same thing on default style...

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

ForceHSS 03-08-2012 10:49 PM

tested on my forums I see what you mean

Hippy 03-09-2012 02:15 AM

will peek at it before the weekend it up..

raymondblog 03-09-2012 02:26 PM

@ForceHSS: Any idea how can I add the tab selected for a directory and not a php or html file?

ForceHSS 03-10-2012 12:34 PM

show link you want to use not sure what you are talking about

gpinjason 03-10-2012 03:00 PM

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...

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!

Dave234 03-24-2012 10:24 PM

Can someone please help me with downloading this? I just got my website up. I have vBulletin Publishing Suite 4.1.11, and I really want to be able to have two forums, and multiple news sections, and multiple blogs on my website, as well as additional customized tabs, such as one for selling books or something.

One would be on one tab, and the other would be next to that tab (you know, where it says "Forum" on the top of the page).

Basically it would be "Forum 1" and "Forum 2", for example. And then there would be a "Blog 1" and a "Blog 2". And a "News 1" and "News 2".

Is this possible within vBulletin 4.1.11 Publishing Suite? I really want to have this for my website.

It appears that this is what this mod does, where we can choose what each tab says. But would I be able to have a second entire Forum section with this?

Also, can someone please tell me the most current download of this file, with the most improvements? I saw that it was revised many times throughout this series of posts.

Can someone go through with me, step by step on how to actually download this and implement it into my vBulletin? I really don't want to mess up any of my stuff so far because it took a lot of work and learning to get it to where it is now. And I apologize - I am a complete novice with this stuff.

ForceHSS 03-25-2012 06:00 PM

my sig has latest also to have new fourms one you would need to buy them as it is one forum per a url once you get it you put the 2nd fourms up as sub forums and using this plugin to make a link to it on the tabs

Dave234 03-25-2012 07:56 PM

Alright, I just ran it. Now what do I do? I have a folder with an "upload" folder and an XML Document that says "product-vbh_newtabs10".

In the "upload" folder there is another folder called "includes". Inside that folder is a folder that says "xml". Inside the "xml" folder is an XML Document called "bitfield_vbhtabs".

What do I do? You must remember, I am a moron, and know nothing about computers, making websites, or implementing code.

ForceHSS 03-25-2012 09:33 PM

This file bitfield_vbhtabs goes into the folder called xml that you will find inside the includes folder. Use a ftp program to login to see all the folders

This file product-vbh_newtabs10 is the xml that you upload from the admin cp

If you dont know how to do it pm me with the correct info and i will do it for you or post in the paid section of these forums

Dave234 03-25-2012 10:46 PM

Hey, how are you? I really appreciate your help with all this.

"This file bitfield_vbhtabs goes into the folder called xml that you will find inside the includes folder."

The file "bitfield_vbhtabs" is already in the folder called XML, which is already in the "Includes" folder.

"Use a ftp program to login to see all the folders"

What is an "ftp program"? Do I still need one if I can already see the folders? Am I fine with this?

"This file product-vbh_newtabs10 is the xml that you upload from the admin cp. If you dont know how to do it pm me with the correct info and i will do it for you or post in the paid section of these forums"

OK, so I'm in my admincp. Where do I need to be before uploading the xml file? Which section? Once I'm there, do I just press a button that says "Browse..." and then "Upload"? Can I save the xml file to my desktop first, and then upload it from there?

I really appreciate all your help with this.

ForceHSS 03-26-2012 12:55 AM

Quote:

Originally Posted by Dave234 (Post 2313284)
Hey, how are you? I really appreciate your help with all this.

"This file bitfield_vbhtabs goes into the folder called xml that you will find inside the includes folder."

The file "bitfield_vbhtabs" is already in the folder called XML, which is already in the "Includes" folder.

"Use a ftp program to login to see all the folders"

What is an "ftp program"? Do I still need one if I can already see the folders? Am I fine with this?

"This file product-vbh_newtabs10 is the xml that you upload from the admin cp. If you dont know how to do it pm me with the correct info and i will do it for you or post in the paid section of these forums"

OK, so I'm in my admincp. Where do I need to be before uploading the xml file? Which section? Once I'm there, do I just press a button that says "Browse..." and then "Upload"? Can I save the xml file to my desktop first, and then upload it from there?

I really appreciate all your help with this.

make sure you upload the bitfield_vbhtabs to the correct folder first

https://www.vbulletin.com/forum/cont...nstall-Plugins

gpinjason 03-28-2012 02:06 PM

Quote:

Originally Posted by Hippy (Post 2309913)
will peek into it and report back.. how did the whats new tab work out for you

Sorry just getting back to you about this.. The links are good when I remove the What's New tab, but they lose formatting for some reason. I believe it's because in the templates, they are in <ul> tags under whatever tab is selected. like this...

HTML Code:

<li class="selected"><a class="navtab" href="forum.php">Forum</a>
                                <ul class="floatcontainer">
                        <li><a href="search.php?do=getnew&amp;contenttype=vBForum_Post">New Posts</a></li>
etc...
etc...
etc...
                                </ul>       
        </li>

But with the What's New tab removed, it doesn't have a "parent" tab anymore...

gpinjason 03-28-2012 04:12 PM

Quote:

Originally Posted by ForceHSS (Post 2309916)
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

Maybe it's not clear what I'm trying to do. I have the vB default "Home" tab linked to the CMS index. In the vBH added on tabs, I've linked to 3 other CMS Static Article pages. All 3 of these pages in the THIS_SCRIPT it says 'vbcms'. So when any of those tabs are clicked, it shows the "Home" tab selected. I need to figure out how to change those individual page THIS_SCRIPT to something different, so it will recognize it separate from the Home tab.

here are the tab links I have listed.

Code:

Chapters|content.php?114-tx4wd-chapters=>self
Wheelin|content.php?117-where-to-wheel=>self
Resources|content.php?140-off-road-resources=>self
Albums|album.php=>self
Calendar|calendar.php=>self

And the Home tab links to the content.php main CMS page. So the "Chapters", "Wheelin", and "Resources" tabs need separate THIS_SCRIPT tags.

Did this help? Do you think this is possible?

ForceHSS 03-28-2012 04:19 PM

pm me the admin account will fix it for you

raymondblog 04-04-2012 07:20 AM

I agree with what gpinjason is experiencing as I am seeing the same problem in my forum as well after upgrading to 1.5

Everything looks OK.
https://vborg.vbsupport.ru/

However if I remove the What's New Tab, clicking on New Posts link will break the formatting on the second navigation bar.
https://vborg.vbsupport.ru/

ForceHSS 04-04-2012 04:32 PM

Quote:

Originally Posted by raymondblog (Post 2316628)
I agree with what gpinjason is experiencing as I am seeing the same problem in my forum as well after upgrading to 1.5

Everything looks OK.
http://cdn.raymond.cc/images/ok.png

However if I remove the What's New Tab, clicking on New Posts link will break the formatting on the second navigation bar.
http://cdn.raymond.cc/images/bad.png

in the 1.5 the spacing is a bit more but it still works just as good if you want to fix you can upload the fix when done will add it

raymondblog 04-05-2012 12:58 AM

Thanks. The fix will be much appreciated.

debtgirl 04-05-2012 07:55 AM

Fabulous! Just what I needed :)

BeeMuzza 04-06-2012 12:34 AM

This is actually great :) thanks man!

keteflips 04-15-2012 09:32 PM

Quote:

Originally Posted by BeeMuzza (Post 2317180)
This is actually great :) thanks man!

Did you try it in 4.1.12?

gpinjason 04-18-2012 06:44 PM

Quote:

Originally Posted by ForceHSS (Post 2316742)
in the 1.5 the spacing is a bit more but it still works just as good if you want to fix you can upload the fix when done will add it

on my page, the links are bold and not underlined, but with the what's new tab disabled, and you click new posts, those links in the navbar lose the formatting and are not bold, and are underlined..

No big deal, if you get the fix for it, I'll download it..

Otherwise the mod works great! thanks for yall's help!

ForceHSS 04-18-2012 08:57 PM

Don't have it like that on my forum could be your custom skin have you tested it on default skin

SilentSleeper 04-20-2012 02:46 AM

Seems to be a problem working after I upgraded to 4.1.12

PHP Code:

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


Eq4bits 04-23-2012 07:30 PM

vB4.1.12
If I have What's New tab disabled:
when in 'forum' and I click either 'new posts' or 'quick links>todays posts' the subnav below the tabs is missing and no tab is highlighted;
also
on my created tab (for a section of cms) does not remain highlighted after clicking (the home tab is highlighted).
link

Hippy 04-23-2012 07:51 PM

Quote:

Originally Posted by Eq4bits (Post 2322874)
vB4.1.12
If I have What's New tab disabled:
when in 'forum' and I click either 'new posts' or 'quick links>todays posts' the subnav below the tabs is missing and no tab is highlighted;
also
on my created tab (for a section of cms) does not remain highlighted after clicking (the home tab is highlighted).
link

I posted a fix for this search for my posts here its one oh the last ones + forceHSS added it to a update in hos Sig


All times are GMT. The time now is 01:10 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.01947 seconds
  • Memory Usage 1,863KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)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