Announcement

Collapse
No announcement yet.

IF Condition Usergroup

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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, 9:25pm. Reason: Solved

  • #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...
    X