PDA

View Full Version : if condition based on usergroup


Keyser S?ze
05-15-2008, 06:52 AM
im trying to do an <if condition based on user group but im a bit unsure as to the coding im new at this

anyways this is what im thinking

<if condition="$usergroup['5'] OR ['6'] OR ['7'] OR ['18']">

i want those usergroups to have permission to do something

Dismounted
05-15-2008, 06:55 AM
<if condition="is_member_of($vbulletin->userinfo, 5, 6, 7, 18)">

Keyser S?ze
05-15-2008, 08:12 AM
thanks, another question, whats the code to pull up someones username, i tried this but it instead gives me their ID number

u=$post[userid]

nevermind i got it

Medina
05-19-2008, 07:06 PM
<if condition="is_member_of($vbulletin->userinfo, 5, 6, 7, 18)">



<if condition="is_member_of($vbulletin->userinfo, 7)"><div class="postdata"> <img src="images/icons/crew.gif"> MYC Moderator </div>
</if>



It doesn`t work, what I am doing wrong?

WEBDosser
05-19-2008, 07:08 PM
perhaps this part needs a look.. maybe the url.

images/icons/crew.gif

Bellardia
05-20-2008, 01:17 AM
Nevermind my conditional was wrong. It works for me.