Is there are way to get the usergroup of a user browsing the thread?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • liamwli
    Senior Member
    • Feb 2012
    • 129
    • 4.2.X

    [Forum] Is there are way to get the usergroup of a user browsing the thread?

    I need it for a condition.

    I tried $bbuserinfo['usergroupid'] but it doesn't work....

    EDIT: SOLVED
    Last edited by liamwli; Sat 25 Aug '12, 10:54am.
  • Zachery
    Former vBulletin Support
    • Jul 2002
    • 59097

    #2
    You should share with the class so others know what you got to work in the future.

    Comment

    • liamwli
      Senior Member
      • Feb 2012
      • 129
      • 4.2.X

      #3
      Originally posted by Zachery
      You should share with the class so others know what you got to work in the future.
      1. It was in an external php script, so make sure you include the global file

      2. The variable was $vbulletin->userinfo['usergroupid']

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...
      😀
      😂
      🥰
      😘
      🤢
      😎
      😞
      😡
      👍
      👎