![]() |
User Online
I am attempting to code a custom plugin, but on php side I need it to check if the member is online, something like so:
Code:
if (member is online) Code:
<vb:if condition="$onlinestatus==1"> |
Well, just converting that template conditon to php would be:
if ($onlinestatus == 1) But, that is assuming the variable is valid where you are using it. |
Hi Lynne, thanks for the reply, I would be using it in the private_insertpm_complete hook.
|
That hook location is present in several files - you will need to look up the page you are using it on.
user.php class_dm_user.php infraction.php private.php |
All times are GMT. The time now is 03:35 AM. |
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:
|