The Arcive of vBulletin Modifications Site. |
|
If Conditional? Details »»
|
|||||||||||||||||||||||||
I have placed my gifts/ribbons inside a fieldset in the postbit. I am trying to make it so that it does NOT show if the user has no gifts or ribbons. However, if the user only has one (gifts OR ribbons) or both (gifts AND ribbons) it should show. This is the current code.
Code:
<!-- vbPlaza start --> <fieldset><legend>$post[musername]'s Gifts/Ribbons</legend><if condition="$post['giftsdisplay']"><div class="smallfont">$post[giftsdisplay]</div></if> <if condition="$post['ribbonsdisplay']"><div class="smallfont">$post[ribbonsdisplay]</div></if></fieldset> <!-- vbPlaza end --> Thanks. Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
You'll have to do something like..
Code:
<!-- vbPlaza start --> <if condition="$post['giftsdisplay'] OR $post['ribbonsdisplay']"> <fieldset><legend>$post[musername]'s Gifts/Ribbons</legend> <if condition="$post['giftsdisplay']"><div class="smallfont">$post[giftsdisplay]</div></if> <if condition="$post['ribbonsdisplay']"><div class="smallfont">$post[ribbonsdisplay]</div></if> </fieldset> </if> <!-- vbPlaza end --> |
|
#3
|
||||
|
||||
|
Works great!
|
|
#4
|
|||
|
|||
|
Thanx for support vbPlaza!
-CMX |
![]() |
|
|