The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
UserGroup Conditional
Hi
Im stuck with this, and it should be simple Im trying to show a badge on postbit to users that are in some custom group. Im using this Code:
<vb:if condition="is_member_of($userinfo, 32)">Text</vb:if> Thanks |
#2
|
||||
|
||||
Try:
Code:
<vb:if condition="is_member_of($vbulletin->userinfo, array(32))">Text</vb:if> |
#3
|
||||
|
||||
Its not working on postbit_legacy, any ideas?
|
#4
|
||||
|
||||
Just to be sure, are you testing this with an account that is a member of that group? Have you edited the template corresponding to the style you are using?
Personally, I would use a plugin rather than a template hack. |
#5
|
||||
|
||||
But i want to be visible to all users, not just for members of that group.
The condition to be shown, its that the message its been made by a member of that group |
#6
|
||||
|
||||
Quote:
Code:
<vb:if condition="is_member_of($post, array(32))">Text</vb:if> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|