The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
Thank you, but I don't understand how do I do the 'Home' condition. Using the code below, can you please post me another example?
Now my code is: Code:
<div id="menucase"> <div id="styletwo"> <ul> <li><a href="http://www.example.org" <if condition="THIS_SCRIPT == 'index'">class="current"</if>>Home</a></li> <li><a href="forumdisplay.php?f=72" <if condition="$foruminfo['parentid'] == 72 OR $foruminfo['forumid'] == 72">class="current"</if>>Test 1</a></li> <li><a href="forumdisplay.php?f=36" <if condition="$foruminfo['parentid'] == 36 OR $foruminfo['forumid'] == 36">class="current"</if>>Test 2</a></li> <li><a href="forumdisplay.php?f=60" <if condition="$foruminfo['parentid'] == 60 OR $foruminfo['forumid'] == 60">class="current"</if>>Test 3</a></li> </ul> </div> </div> |
#12
|
||||
|
||||
Code:
<if condition="!in_array($foruminfo['parentid'], 72, 36, 60) AND in_array($foruminfo['forumid'], 72, 36, 60)"> |
#13
|
||||
|
||||
Excuse me Dismounted, but I'm not too familiar with PHP.
If I put it like this: Code:
<div id="menucase"> <div id="styletwo"> <ul> <li><a <if condition="!in_array($foruminfo['parentid'], 72, 36, 60) AND in_array($foruminfo['forumid'], 72, 36, 60)">href="http://www.example.org/"<else />class="current"</if>>Home</a></li> <li><a href="forumdisplay.php?f=72" <if condition="$foruminfo['parentid'] == 72 OR $foruminfo['forumid'] == 72">class="current"</if>>Test 1</a></li> <li><a href="forumdisplay.php?f=36" <if condition="$foruminfo['parentid'] == 36 OR $foruminfo['forumid'] == 36">class="current"</if>>Test 2</a></li> <li><a href="forumdisplay.php?f=60" <if condition="$foruminfo['parentid'] == 60 OR $foruminfo['forumid'] == 60">class="current"</if>>Test 3</a></li> </ul> </div> </div> Quote:
|
#14
|
|||
|
|||
Code:
<if condition="!in_array($foruminfo['parentid'], array(72, 36, 60)) AND in_array($foruminfo['forumid'], array(72, 36, 60))"> |
#15
|
||||
|
||||
No, it doesn't work correctly..
EDIT: Fixed. Now it works. In this conditional wasn't an '!'.. <if condition="!in_array($foruminfo['parentid'], array(72, 36, 60)) AND !in_array($foruminfo['forumid'], array(72, 36, 60))"> Thank you guys. |
#16
|
|||
|
|||
thaks
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|