IF Condition Usergroup

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • HDT
    Member
    • Sep 2006
    • 58
    • 3.6.x

    IF Condition Usergroup

    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.
    Code:
    [I]<if condition="!is_member_of($bbuserinfo,5,6,7)">
    cheat not available.
    <else />
    show me the money.
    </if>
    [/I]
    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
    Code:
    if ($vbulletin->userinfo['userid'] == idADMIN,idMOD,idSupermod)
    {
    [I]show me the money.
    [/I]}else{
    [I]cheat not available.[/I]
    }
    Any suggestions?

    Edit:

    Disregard this question.SOLVED
    Last edited by HDT; Tue 11 Nov '08, 8:25pm. Reason: Solved
  • wolfy
    Senior Member
    • Apr 2005
    • 194
    • 3.5.x

    #2
    instead of taking the time to edit the original thread with "disregard"...

    why not take the same time to post the solution for future searchers?

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...