vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   How to give my navbar tabs the "selected" look (https://vborg.vbsupport.ru/showthread.php?t=298146)

Fudgyyy 05-14-2013 02:33 PM

How to give my navbar tabs the "selected" look
 
I was wondering if there was a way to indicate to the users via the tab, that they are somewhere. Like I would like /forum.php to have the forum tab selected. And when they are in the free ebook forum, I would like the free ebooks selected.

How can I accomplish this?

This is my forum: www.maddenstudents.com/forum.php

Lynne 05-14-2013 02:54 PM

In default vbulletin style, if you are in the Forums, the Forums tab is selected. And, if you entered the ebooks tab correctly into the Navigation Manager, then the ebooks tab would be selected. My guess is there is something you need to upgrade in your custom style.

nerbert 05-14-2013 03:57 PM

Did you start from scratch creating your Forum tab? It should have an identity of vbtab_forum instead of tab_odu0_588. If you still have the original Forum tab available you should edit it so it gives the right link. I suspect (but am not sure) that if you use the original Forum tab it will show as selected for various pages. Maybe you can just try putting "index" in the tab script(s) field.

All your other tabs are custom pages and each one should have a THIS_SCRIPT defined.

define('THIS_SCRIPT', 'my_custom_page');

If they are html files you'll need to put this at the top

<?php define('THIS_SCRIPT', 'my_custom_page'); ?>

and change the extension from html to php

Then you can use the tab script(s) to specifiy that they should show as selected


All times are GMT. The time now is 10:24 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.00904 seconds
  • Memory Usage 1,711KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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