The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
I've checked out the conditions, but I'm unable to find a condition that IF a user is in a specific usergroup, it shows something specific to EVERYONE. Not just those who are in the same usergroup. Does such condition exist?
|
|
#2
|
|||
|
|||
|
Is this for the postbit template? I don't think the post user's usergroupid variable is available by default in the postbit template.
|
|
#3
|
|||
|
|||
|
Indeed it is for the postbit. Quite a shame if such condition isn't even available. :-\
|
|
#5
|
||||
|
||||
|
You can use this in the postbit templates.
Code:
<vb:if condition="is_member_of($post,6,7)"> Stuff here </vb:if> |
|
#6
|
|||
|
|||
|
Thank you, seems to work perfectly. I normally would use ranks for this kind of stuff, but seeing the user is moved to another usergroup by force (general update tool / task), the rank is not applied to the user. So I have to do a small by-pass by using a template condition instead..
Thanks again! Quote:
I want the text/image to display to every single usergroup if the user is part of a specific usergroup.Code:
<vb:if condition="$post[usergroupid] == xx">xxx</vb:if> .
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|