The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Ok basically I'm trying to display an image in postbit depending on whether or not the posting user is in X usergroup. Wondering if anyone can help me out with a simple IF statement.
Code:
<if condition="$post['usergroupid'] == X"></if> |
#2
|
|||
|
|||
![]()
That should work. $post['usergroupid'] will be the usergroupid of the poster.
|
#3
|
|||
|
|||
![]()
It's not. Not sure why it isn't then. Maybe it's because the usergroup Im basing it on is a custom group and not a default one? No idea. The group id is 80 so I added this code within my postbit template:
Code:
<if condition="$post['usergroupid'] == 80">hello</if> Thanks for all the help. |
#4
|
|||
|
|||
![]()
Is it a secondary (additional) user group? If so (and even if it's not, really), you should use
Code:
<if condition="is_member_of($post, 80)">hello</if> |
#5
|
|||
|
|||
![]()
That worked, thanks for your help.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|