![]() |
Usergroup check in plugin
Hopefully you will be able to understand my needs here. I will try to explain the best i can.
I have the following piece of code in a plugin i am trying to work with: Code:
$schbot = ($vbulletin->superglobal_size['_COOKIE'] == 0 AND preg_match("#(google|msnbot)#si", $_SERVER['HTTP_USER_AGENT'])); I have read about the conditionals, and got the following: Code:
is_member_of($bbuserinfo, 2) Code:
$schbot = ($vbulletin->superglobal_size['_COOKIE'] == 0 AND preg_match("#(google|msnbot)#si", $_SERVER['HTTP_USER_AGENT'])); Basically the code is making sure i am not from google or msn, and if i am in usergroup 2 it will fire a message. |
You didn't say which hook you're using so I'm not sure, but try:
Code:
is_member_of($vbulletin->userinfo, 2) |
You've only gone and done it first shot!
Thankyou so much. I'm sure i will be back for more info. :) Thanks again:up: |
All times are GMT. The time now is 08:38 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|