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)

Laurent42 03-16-2011 07:02 PM

Hello,

I want to move the Forum tab at the middle and then a custom tab at the left.
I have hooked my custom tab with $template_hook['navtab_left'].

I do not find $template_hook['navtab_left'] for the Forum tab. I do not know where to put
$template_hook['navtab_middle'] for this default tab.

Help! :D

--
Laurent

Lynne 03-16-2011 07:39 PM

The Forum tab doesn't use a template_hook since it is entered right into the navbar template.

Laurent42 03-16-2011 07:42 PM

You mean left?
Well, an idea how to put it in the middle? :)

Lynne 03-16-2011 07:52 PM

What do you want in the middle? You would change the template_hook in the plugin to use the one you want. If you want to see exactly where they are located, then look in the navbar template.

Laurent42 03-16-2011 08:05 PM

I just want the forum tab at the middle (it's left by default).
But I do not know how to do it :)

Lynne 03-16-2011 09:27 PM

You will have to add any navtab you want to add to the navtab_left template_hook if you want it to the left of the forum navtab.

Laurent42 03-16-2011 09:58 PM

Well, that's not the case.

I hook on the middle for my custom tab and it works.
When I hook on the left (what i want), the custom tab disappear... because of the forum tab which is located to the left by default... I suppose. ;)

Sad to see a such basic feature does not exist on vBulletin :(

Lynne 03-17-2011 12:15 AM

It works just fine on my test site, so maybe your code is incorrect? Or perhaps you didn't try changing the Execution Order of the plugin?

Laurent42 03-17-2011 08:04 AM

First of all thanks for your answers Lynne,

I have just changed the following line in the plugin (MediaLibrary):
$template_hook['navtab_middle'] .= $templater->render();
to
$template_hook['navtab_left'] .= $templater->render();

then after your post I have changed the order from 5 to 1. (but I do not well if it's correct)
The Media Library tab still does not appear. :'(

Lynne 03-17-2011 07:42 PM

Quote:

Originally Posted by Laurent42 (Post 2174314)
First of all thanks for your answers Lynne,

I have just changed the following line in the plugin (MediaLibrary):
$template_hook['navtab_middle'] .= $templater->render();
to
$template_hook['navtab_left'] .= $templater->render();

then after your post I have changed the order from 5 to 1. (but I do not well if it's correct)
The Media Library tab still does not appear. :'(

So the MediaLibrary tab shows up if you have it set to navtab_middle but not if you have it set to navtab_left? Have you looked in your navbar template to verify you have that template_hook there?


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.01360 seconds
  • Memory Usage 1,732KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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