The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
I'm looking for a system that works like the tabs here on vb.org that aren't just tabs but smart tabs you see how it knows when your are in forums and when you are in styles etc, how does it work?
![]() |
#2
|
||||
|
||||
![]()
You can achieve this by creating a separate CSS class, and then using conditionals around the tabs to switch a tab's classes. For example, to check for forum 15:
Code:
<if condition="$foruminfo['forumid'] == 15">SOMETHING</if> |
#3
|
||||
|
||||
![]()
Please help me this is the code when its not active just plain tab:
Code:
<a href="forumX" class="tab">Graphics</a> Code:
<a href="forumX" class="tab2">Graphics</a> |
#4
|
||||
|
||||
![]() Code:
<a href="forumX" class="<if condition="$foruminfo['forumid'] == 15">tab2<else />tab</if>">Graphics</a> |
#5
|
||||
|
||||
![]()
thanks dude I <3 you..
|
#6
|
||||
|
||||
![]() Quote:
how would i do this for Code:
/forum/index.php and with /index.php? |
#7
|
||||
|
||||
![]()
You can use variables/constants that are only specific to that page (e.g. THIS_SCRIPT).
|
#8
|
||||
|
||||
![]()
can you post an example please using my tab script posted above. thanks
|
#9
|
||||
|
||||
![]()
Have you tried searching for how it is used? Because I know you will find what you want.
|
#10
|
||||
|
||||
![]()
great, thanks for your reply, it works!
Thank you very much |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|