The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Multiple conditions
I've been trying to get a different background appear in the postbit_legacy for different usergroups.
I got 2 different types to appear ok, but when i add more it breaks. This is the code i'm using: Code:
<vb:if condition="is_member_of($post, 6)"> <div class="postbit_admin"> <vb:else if condition="is_member_of($post, 2)" /> <div class="postbit_member"> <vb:else if condition="is_member_of($post, 7)" /> <div class="postbit_moderator"> <vb:else if condition="is_member_of($post, 8)" /> <div class="postbit_banned"> <vb:else if condition="is_member_of($post, 9)" /> <div class="postbit_suspended"> <vb:else if condition="is_member_of($post, 10)" /> <div class="postbit_ripper"> <vb:else if condition="is_member_of($post, 11)" /> <div class="postbit_vendor">--> <vb:else /> </vb:if> If I do it only for the first two it works fine, but when I do it for all of them it goes mental. Can anyone see where I have gone wrong? |
#2
|
|||
|
|||
I think it needs to be <vb:elseif... without the space.
|
Благодарность от: | ||
CAG CheechDogg |
#3
|
|||
|
|||
wow as simple as a space! Thanks for your help.
|
Благодарность от: | ||
CAG CheechDogg |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|