Log in

View Full Version : is_member_of Help please.


lutics
03-28-2008, 04:50 AM
for some reason it doesn't want to work, it either shows for everyone or for no one. This is what I have tried so far.

<if condition="is_member_of($user, "5, 6, 7")"><li>Staff License</li></if>
<if condition="is_member_of($user, 5, 6, 7)"><li>Staff License</li></if>
<if condition="is_member_of($bbuserinfo, 5, 6, 7)"><li>Staff License</li></if>
<if condition="is_member_of($vbulletin->userinfo, 5, 6, 7)"><li>Staff License</li></if>
<if condition="is_member_of($vbulletin->userinfo, array(5, 6, 7))"><li>Staff License</li></if>

Nothing seems to work, this is my first time working with this function. I am editing the template. MEMBERSINFO aka profile.

Any help would be much appreciated

Boofo
03-28-2008, 04:56 AM
Which version of vBulletin are you using?

lutics
03-28-2008, 07:11 AM
sorry umm 3.6.8 patch 2.

Michael Biddle
03-28-2008, 07:13 AM
Try this: <if condition="is_member_of($vbulletin->userinfo, 5,6,7)">Staff Member</if>

Opserty
03-28-2008, 09:49 AM
Which member are you trying to match? The User's Profile? or the viewing member?

lutics
03-28-2008, 11:02 AM
Which member are you trying to match? The User's Profile? or the viewing member?

User Profile.

Try this: <if condition="is_member_of($vbulletin->userinfo, 5,6,7)">Staff Member</if>

Just tried... and it appears on every profile, so I'm guessing thats for the user logged in, which isn't want I want. Thanks anyway.

Dismounted
03-28-2008, 11:44 AM
<if condition="is_member_of($userinfo, 5,6,7)">Staff Member</if>

Opserty
03-28-2008, 11:51 AM
User Profile.

Ah well no wonder it wasn't working. Try and give as much information as possible in future. It will save not only us time but you too. ;)

Dismounted's reply should work.

lutics
03-28-2008, 01:20 PM
ok Ill try next time. Thanks Dismounted it worked :)