vb.org Archive

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

Wunderlust 02-09-2011 10:26 PM

Sub Tabs
 
Hi,

If I use the $template_hook['navtab_start'] hook, the sub tabs for the forum are not shown. Is there anyway to make this happen for the these pages?

For instance, I have used this hook location to add a Home Tab to the main tab - how do I get the default vbulletin sub tabs to sho up under this tab.

My plugin toi show this link is currently:-

PHP Code:

$tabselected '';
$tablinks '';
if (
THIS_SCRIPT == 'adv_index'
{
    
$vbulletin->options['selectednavtab']='TBX';  //MUST BE UNIQUE! Otherwise you'll have the bottom bar and highlights getting mixed up
    
$tabselected ' class="selected"';
    
$tablinks ' ';

}
$template_hook['navtab_start'] .= '<li'.$tabselected.'><a class="navtab" href="http://www.tacklebox.com.au/">TBX</a>'.$tablinks.'</li>' 

The home page link is here:_ http://www.tacklebox.com.au/
Thanks

Wunderlust 02-13-2011 07:53 AM

No one knows the code to this without manually adding???

Surely tere must be a way!

Lynne 02-13-2011 03:01 PM

That plugin codes sets it so if you are on the adv_index page, then you show the code posted in that plugin. If you only want a link to that page, and no submenu, then you don't need all that code, you just need to add an <li><a href="link.php></li> to that template_hook.

Wunderlust 02-13-2011 09:51 PM

Hi Lynne, I do want to add all the sub menus that are shown here:- http://www.tacklebox.com.au/forums/forum.php but I don't want to manually add each one to the code - Is there anyway of doing this easily by calling another pligin etc?

Lynne 02-13-2011 11:36 PM

You will need to copy the code if that is what you want to show when your tab is active.


All times are GMT. The time now is 09:09 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.00951 seconds
  • Memory Usage 1,722KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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