![]() |
Smart tabs Like vb.org
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?:D
|
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> |
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> |
Code:
<a href="forumX" class="<if condition="$foruminfo['forumid'] == 15">tab2<else />tab</if>">Graphics</a> |
thanks dude I <3 you..
|
Quote:
how would i do this for Code:
/forum/index.php and with /index.php? |
You can use variables/constants that are only specific to that page (e.g. THIS_SCRIPT).
|
Quote:
|
Have you tried searching for how it is used? Because I know you will find what you want.
|
great, thanks for your reply, it works!
Thank you very much |
okneed your help again now using a new code this is current tabs
Code:
<li><a id="overviewTab" href="/"><span> Code:
<li id="currentSub"><a id="createsendTab" href="/"><span><img class="inlineimg" src="images/welcome/group.png" alt="" border="0">Home</span></a></li> |
Just put the conditionals in there - conditionals can go anywhere (inside templates).
|
I know im being a pain but can do them for me really fast tried but im still missing some "<>" thanks a million
|
Post what you've done (using the html or php tags) and then we can help fix the problem.
|
All times are GMT. The time now is 09:33 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|