The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
How do i have a different tab shown depending on the url as all use forum's global ?
Hi all,
I have this small issue. For my website i have tabs arranged in the tamplate header which are shown as active for the page that the user is on. I've now installed some really nice hacks from vbulletin to give additional features (such as chat and review scripts) and I'd really like these to have their own activated tab at the top, however: Because the tabs are hardcoded into the template header and that is the header used for the forum, chat and review it means they all use the forum tab as activated. Does anybody know how to perhaps grab the url that the user is on and use that to conditionally display whatever tab is required for that url? I appreciate that this code would have to go into the header and a seperate conditional would be required for each tab that needs to be changed. Many Many thanks. Daz --------------- Added [DATE]1220456694[/DATE] at [TIME]1220456694[/TIME] --------------- ok to help understanding here is what i want to in make-shift pseudo/logic, i just need to understand how to write this in vb compaitble php into the header. For the forum page: <if ($_SERVER['PHP_SELF'] == "forum/index.php") then {print '<div id="forum_tab_active">'} else {print '<div id="forum_tab">'} > I would then go on and defien the review and chat scripts that i have added to vbulletin in a similar way. As you can probably tell I'm not too hot with php or dynamic scripting but i hope this gives a reflection of what I'm trying to achieve. --------------- Added [DATE]1220465839[/DATE] at [TIME]1220465839[/TIME] --------------- now I can see why nobody actually posts their issue in the forum topic, because that way nobody can be bothered to even point you in the right direction. Next time I'll just post "need help" then I'll get 10 replies. Nice forum :erm: |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|