The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How would I make a tab selected by doing index.php?f=x
What I'm trying to accomplish is:
When visiting index.php, the navbar tab is set to: ForumsI know how to create a custom tab, but I apparently have no idea how to set it up using this method... =/ Could anyone point me in the right direction? |
#2
|
||||
|
||||
Have you tried any conditions like:
PHP Code:
|
#3
|
|||
|
|||
I didn't want to set it based on forum ids, really. It would work though.
Right now, my current code is: PHP Code:
|
#4
|
||||
|
||||
If you want to do it by forumid, then just go:
PHP Code:
($forumid may need to be replaced by $forum['forumid'] or $thread['forumid'] or.... depending on what hook location you are using.) |
#5
|
|||
|
|||
Well I found a work around that works for every location on the forum (thread, forum, index.php?f=xx) just took some patience. Thanks for the help
I'll explain what I did: I simply created a hook in global_start, and have this code: PHP Code:
|
#6
|
|||
|
|||
Any infos about doing the same with sectionid instead of forumid ?
I don't think there is a $vbulletin->GPC['sectionid'] to use, but the idea is to do something like this : PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|