The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
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)
{
$do_this;
}
else
{
$do_that;
}
Code:
<vb:if condition="$onlinestatus==1"> |
|
#2
|
||||
|
||||
|
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. |
|
#3
|
|||
|
|||
|
Hi Lynne, thanks for the reply, I would be using it in the private_insertpm_complete hook.
|
|
#4
|
||||
|
||||
|
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 |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|