vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=242)
-   -   [HOW TO - vB4] Remove the vB Default Navtabs (https://vborg.vbsupport.ru/showthread.php?t=234220)

sortega 07-26-2011 12:54 PM

THANK YOU, LYNNE! That fixed it, you're wonderful! :)

Buray Savas ANI 09-23-2011 02:54 PM

This on vbulletin 4.1.6 work or not? i vanto setup but i m not sure. Please send message about this.

christian gate 10-28-2011 12:01 AM

Hi,
I need a bit of direction to make sure I am deleting the "What's New" & Forum Tab from the right file.

I went to Style Manager - From The templates I selected Navigation / Breadcrumb then navbar

I followed your instruction but it's not saving the changes and error massage ask me to check line 184

I am using vb 4.1.7 and I need to move the 2 tabs please.

Regards

fraby 11-22-2011 03:39 PM

To Remove the BLOG navtab:
Plugins & Products > Plugin Manager > Product: vBulletin Blog > Navbar: Eval Blog Link Template and Validate Styleid

You can just check the box Inactive for it to disappear from the Navtab now.

FReeSTER 11-25-2011 12:35 PM

this is different from vb4.1.7 and my styles. :(:confused::o

Lynne 11-25-2011 04:49 PM

Quote:

Originally Posted by FReeSTER (Post 2271757)
this is different from vb4.1.7 and my styles. :(:confused::o

I just checked all this in my 4.1.8 navbar template and it's pretty much the same. If you have a custom template, you'll have to try to figure it out yourself or ask the developer for help.

andrew_m 12-29-2011 03:22 PM

Hi Lynne,

I went through your artilce and successfully removed most navbar tabs (thanks !)

except i cannot remove the 'Forum' tab, i dont see the code that you specify needs to be removed from 'Navbar: Eval Blog Link Template and Validate Styleid', perhaps i am looking in the wrong place or because my version is new there is different code to removed. I have version. 4.1.9.

This is the code I have for 'Edit Plugin Navbar: Eval Blog Link Template and Validate Styleid'

----------
$show['canpostitems'] = (
$vbulletin->userinfo['permissions']['vbblog_general_permissions'] & $vbulletin->bf_ugp_vbblog_general_permissions['blog_canviewown']
AND
$vbulletin->userinfo['permissions']['vbblog_entry_permissions'] & $vbulletin->bf_ugp_vbblog_entry_permissions['blog_canpost']
AND
$vbulletin->userinfo['userid']
);

/*if (defined('VBBLOG_CACHED_TEMPLATES'))
{
if (defined('VBBLOG_SCRIPT'))
{
$vbulletin->options['selectednavtab'] = 'vbblog';
}
$template_hook['navtab_middle'] .= vB_Template::create('blog_navbar_link')->render();
$template_hook['navbar_getnew_menu'] .= vB_Template::create('blog_navbar_whatsnew_link')->render();
}
*/

if (STYLEID != $vbulletin->userinfo['blogstyleid'])
{
$vbulletin->userinfo['blocktext'] = '';
}

----------

Any help would be appreciated from anyone, thanks.

Lynne 12-29-2011 04:06 PM

The Forum tab is in the navbar template, not a plugin. That plugin you are quoting is for the Blog tab. The code has changed a little, but the condition is still there - comment it out.

New Joe 01-16-2012 04:24 AM

The remove Blog Tab info and what to take out is different than the code in the start of this Article.

Which part to remove from here:
Quote:

$show['canpostitems'] = (
$vbulletin->userinfo['permissions']['vbblog_general_permissions'] & $vbulletin->bf_ugp_vbblog_general_permissions['blog_canviewown']
AND
$vbulletin->userinfo['permissions']['vbblog_entry_permissions'] & $vbulletin->bf_ugp_vbblog_entry_permissions['blog_canpost']
AND
$vbulletin->userinfo['userid']
);

if (defined('VBBLOG_CACHED_TEMPLATES'))
{
if (defined('VBBLOG_SCRIPT'))
{
$vbulletin->options['selectednavtab'] = 'vbblog';
}
$template_hook['navtab_middle'] .= vB_Template::create('blog_navbar_link')->render();
$template_hook['navbar_getnew_menu'] .= vB_Template::create('blog_navbar_whatsnew_link')->render();
}


if (STYLEID != $vbulletin->userinfo['blogstyleid'])
{
$vbulletin->userinfo['blocktext'] = '';
}

TombstoneWarrior 02-11-2012 03:42 PM

thanks for the info

djscoop 02-19-2012 06:25 PM

Tip on removing Members Tab?

MacroPhotoPro 04-03-2012 02:30 AM

I successfully removed the tabs I wanted to, following your instruction here, so thank you very much for writing it.

I also successfully added new tabs, and navbar links/menus following your instruction on another article, so thanks once again.

However, while I have successfully removed tabs I didn't want, and created custom tabs/navbar links, what I can't seem to do is alter the default Tabs (Home/Forum/Blogs) nor can I find a way to customize their navbar links.

So while you're two articles (this one here and the one I linked to) have helped me tremendously, would you mind letting me know how I can alter (not remove) the navbar links in the Blog (Home/Forum) Tabs?

Thank you very much,

Jack

TradingApples 04-03-2012 11:36 PM

Hi, would it be a good idea to comment out these sections of code to preserve the option to use these tabs in the future?

Thanks

luggz 11-11-2013 11:59 PM

I can not get the forums tab to go all the way away i still see it in my pm page and some other pages what did i miss? please help point it out...

****I found it thanks any ways sorry****

tbworld 11-12-2013 12:12 AM

vBulletin modified the Navigation system starting with v4.2.0, and again in v4.2.1. Remember that @Lynne's solution worked in 2010, it might not work on the later versions.

You can now remove the navtabs from the navigation manager directly.
admincp -> settings -> Navigation Manager.


All times are GMT. The time now is 03:03 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04924 seconds
  • Memory Usage 1,753KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (15)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