Wilfred1
03-15-2010, 07:07 PM
I am trying to create a tab menu system in v3.8 and would like to know is there any way to set a global variable that can be used throughout vb.
For example I have tabs numbered 1 to 8. Each tab has a sub menu. When a user clicks a tab on the menu it becomes highlighted and a page is displayed. If the user goes to another page (via the tabs sub menu) the tab is still highlighted.
I know using the THIS_SCRIPT method can ascertain the page and then set the active tab but I have far to many variations where this won't work plus many pages of addons don't have a THIS_SCRIPT and I don't want to edit the php files.
So is there some way to pass the variable of a tab number to make it the active one from page to page? - thanks!
For example I have tabs numbered 1 to 8. Each tab has a sub menu. When a user clicks a tab on the menu it becomes highlighted and a page is displayed. If the user goes to another page (via the tabs sub menu) the tab is still highlighted.
I know using the THIS_SCRIPT method can ascertain the page and then set the active tab but I have far to many variations where this won't work plus many pages of addons don't have a THIS_SCRIPT and I don't want to edit the php files.
So is there some way to pass the variable of a tab number to make it the active one from page to page? - thanks!