The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Hide for usergroup, not userid?
See, I totally forgot what the usergroup bit for the same purpose as this code is:
Code:
<if condition="in_array($bbuserinfo['userid'], array(5,6,7,50))"> </if> anyone that could remind me? |
#2
|
||||
|
||||
is_member_of($moo, foo)
|
#3
|
||||
|
||||
Try this
Code:
<if condition="in_array($bbuserinfo['usergroupid'], array(5,6,7,50))"> </if> |
#4
|
||||
|
||||
Quote:
|
#5
|
||||
|
||||
Well I gave you what you asked for.
<if condition="is_member_of($post/$bbuserinfo/$userinfo, X,Y,Z,A,B,C,D,E)"></if> |
#6
|
||||
|
||||
Quote:
Anyways, ericgtr was just confirming what I suspected.. and it worked. Thanks! |
#7
|
||||
|
||||
His method will only check users in a pimary usergroup, mine works for primary and secondary and doesnt require additional array/inarray to work.
|
#8
|
||||
|
||||
Quote:
But I guess I could just learn to understand your method too. So I am supposed to choose from $post, $bbuserinfo and $userinfo or should they all be listed like that? <if condition="is_member_of($post/$bbuserinfo/$userinfo, X,Y,Z,A,B,C,D,E)"></if> |
#9
|
||||
|
||||
depends
$bbuserinfo to check the user viewing that page $post for the postbit template for that user that posted $useirnfo for the profile of that person. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|