Help me make if conditions for certain usergroup for php file (NOT for template use)
Rules:
Admin,Mod,SuperMod can see text show me the money.else should see text cheat not available.
I can use in template like this.
but how to use condition above in php files?
Thank you.
Edit:
I can made condition below with userid but can't found with usergroup............................................YET
Any suggestions?
Edit:
Disregard this question.SOLVED
Rules:
Admin,Mod,SuperMod can see text show me the money.else should see text cheat not available.
I can use in template like this.
Code:
[I]<if condition="!is_member_of($bbuserinfo,5,6,7)"> cheat not available. <else /> show me the money. </if> [/I]
Thank you.
Edit:
I can made condition below with userid but can't found with usergroup............................................YET
Code:
if ($vbulletin->userinfo['userid'] == idADMIN,idMOD,idSupermod) { [I]show me the money. [/I]}else{ [I]cheat not available.[/I] }
Edit:
Disregard this question.SOLVED
Comment