It was a test because that other tutorial was for the tab I thought this was for the navbar like community, quick links. I like to have it as that won't work?? only the link as I said to another site shows up nothing under that.
|
Quote:
|
Either way if I try to add this under home does not work or navbar alone submenu won't show up.
if (THIS_SCRIPT == 'cmps_index.php') home page, nothing shows up under there Code:
$tabselected = ''; Execution Order = 10 and I have another mod which uses Execution Order 8 and both tabs switch for some reason. Roster is the second last tab before this one. Even If I try to make a tab alone nothing shows up under it. |
I'm not positive, but I don't think this is valid:
if (THIS_SCRIPT == 'cmps_index.php') I don't think THIS_SCRIPT is defined as cmps_index.php on that page. Open the file and see what it says (you shouldn't guess, you need to Look At The Code). |
How could i add links sub menu etc.. under my home tab which theres nothing under that used vbadvanced for that.
|
Quote:
|
Very easy to use
It great,I used on my vb |
Hi Lynne,
I want to have this in my forum and added following code as a plugin Code:
$tabselected = ''; 1. On clicking of "Tools" tab, Forum is getting highlighted which should be Tools. 2. No sub-menus are getting shown, I think its because of first issue. If that will be fixed, it should automatically get fixed. You can check this at my forum: Webmaster Forum I am not sure what is the issue with my code. I searched in all the 24 pages of the thread but didn't find the solution. Please help me out. --------------- Added [DATE]1287931785[/DATE] at [TIME]1287931785[/TIME] --------------- Hi, On further debugging, after clicking on "Tools" tab, i checked the page source and found this: var THIS_SCRIPT = "adv_index"; Now my question is that where are we setting this variable in the plugin code? Obviously, I am missing some small details which is causing this issue and the variable is not getting set properly and hence default Forum tab is getting highlighted. Please let me know where does it get set? I am new to VB, so it will take some time to get used to it. |
If the page you are clicking on has THIS_SCRIPT defined as 'adv_index', then 'adv_index' is what you need to put into the plugin. The plugin has the condition for when the tab is highlighted.
|
Quote:
I did that and it worked smooth. And I figured it out why it was happening. Just in case someone else is facing this problem, its defined in the vbadvanced php file, similar things can happen if used with other php files. Just a Tip. Thanks again. |
All times are GMT. The time now is 05:38 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 | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|