The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I'm working in postbit_legacy.
I want to execute the following code, but I believe that the $memberinfo is failing to evaluate because the if-condition is always yielding false, even on posts by administrators. Code:
<vb:if condition="is_member_of($memberinfo, 6)"> <span style="border:1px solid #fff; border-radius:4px; font-weight:bold; padding:3px; text-align:center;">{vb:raw post.usertitle}</span> <vb:else /> {vb:raw post.usertitle} </vb:if> Thanks in advance! |
#2
|
|||
|
|||
![]()
If you want to check if the post is by an administrator, then you want is_member_of($post, 6). If you're trying to check if an administrator is viewing the post, then it would be is_member_of($bbuserrinfo, 6).
|
#3
|
|||
|
|||
![]()
Worked great. Thank you
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|