The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
Just a quick one for those whose knowledge is superior to mine(just about everyone)
Whats a more efficient way to write this if statement. Code:
<!-- Conditional Home Button --> <if condition="THIS_SCRIPT == 'adv_index'"> <td class="vbmenu_control"><a href="forum_index.php?$session[sessionurl_q]">Forums</a></td> <else /> <if condition="THIS_SCRIPT == 'ouindex'"> <td class="vbmenu_control"><a href="/Forums/index.php?$session[sessionurl_q]">Home</a></td> <else /> <td class="vbmenu_control"><a href="index.php?$session[sessionurl_q]">Home</a></td> </if> </if> <!-- / Conditional Home Button --> |
#2
|
||||
|
||||
![]()
That's fine for a vB3 condition.
|
#3
|
||||
|
||||
![]()
ok thanks. I wasnt sure if there was some kind of elseif tag or a better way to have the link point to 3 different locations.
|
#4
|
||||
|
||||
![]()
There is no elseif tag in vB3, but there is in vB4 which is why I clarified it was good for vB3.
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|