The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
![]()
Hello,
I've seen that with the code below I can check if the active user has permissions for a specific action: Code:
if ($permissions["my_plugin"] & $vbulletin->bf_ugp["my_plugin"]["post"]) { echo "He can post"; } else { echo "No permissions to post"; } Checking a relevant code I found how to get the online status of a specific user: Code:
$userid = 77; $userinfo = verify_id('user', $userid, 1, 1); $online_status = fetch_online_status($userinfo, true); EDITED ---------------- Currently I'm using the follow way to do it: 1.- I'm setting a vBulltin option to hold the usegroupids that have this permission: eg 1,4,5 2.- With the help of a function I'm getting the result PHP Code:
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|