vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Navbar managment (https://vborg.vbsupport.ru/showthread.php?t=232425)

ps2wiz 01-07-2010 06:08 AM

Navbar managment
 
I am adding additional buttons in the navbar section, I need the extra room so I would like to remove the default "Whats New?" button. How do I go about doing this?

Thanks in advance.

Seven Skins 01-07-2010 08:50 AM

Remove these lines form navbar template:
HTML Code:

                <vb:elseif condition="$show['member']" />
                        <li><a class="navtab" href="search.php?{vb:raw session.sessionurl}do=getnew&amp;contenttype=vBForum_Post">{vb:rawphrase getnew_tab}</a></li>
                <vb:else />
                        <li><a class="navtab" href="search.php?{vb:raw session.sessionurl}do=getdaily&amp;contenttype=vBForum_Post">{vb:rawphrase getnew_tab}</a></li>


The Glue 01-16-2010 12:54 PM

And for Blog and Forum?

Lynne 01-16-2010 02:57 PM

The blog is a plugin - you can turn it off in the plugin manager. The forum is in the navbar template.

The Glue 01-16-2010 06:08 PM

Quote:

Originally Posted by Lynne (Post 1957396)
The blog is a plugin - you can turn it off in the plugin manager. The forum is in the navbar template.

but this means I disable blogs complete, that's not what I want to do. I want to replace that with the "vBH-Add new tabs" addon.

Lynne 01-16-2010 06:12 PM

Um, no. The navbar is just one of the plugins within the product. If you disable the product, then the blogs will turn off. but if you just disable the one little plugin that creates the tab, then it will just turn off the tab.

ps2wiz 01-17-2010 02:40 PM

Quote:

Originally Posted by Lynne (Post 1957396)
The blog is a plugin - you can turn it off in the plugin manager. The forum is in the navbar template.

Where exactly is the option for this?

Thanks

Lynne 01-17-2010 02:43 PM

Quote:

Originally Posted by ps2wiz (Post 1958220)
Where exactly is the option for this?

Thanks

the option to turn off the blog navtab? Like I said, it's just a plugin. Just turn off the plugin called "Navbar: Eval Blog Link Template and Validate Styleid" That may also effect something to do with the styleid (although I'm not sure exactly what) so the other option is to just comment out these lines:
PHP Code:

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 (
$show['blog_search']) 
    { 
        
$template_hook['navbar_search_menu'] .= vB_Template::create('blog_navbar_search')->render(); 
    } 



ps2wiz 01-18-2010 10:58 AM

Thanks


All times are GMT. The time now is 08:13 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.01036 seconds
  • Memory Usage 1,737KB
  • 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_html_printable
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete