View Full Version : How to check if a user is logged in
Satviewers
02-07-2010, 10:49 PM
Hi,
Can any help with this, please.
What line of code is used to verify if a user is logged in or not.
Thanks.
MrPHD
02-07-2010, 10:51 PM
Where is says Currently Active Users on botton of forum you can see that.
Satviewers
02-07-2010, 10:57 PM
I'm looking for the line of code that checks if a user is logged.
E.g. if the user is logged in, run a command.
need this for an integration.
borbole
02-08-2010, 12:13 AM
I'm looking for the line of code that checks if a user is logged.
E.g. if the user is logged in, run a command.
need this for an integration.
Try this
if($vbulletin->userinfo['userid'])
{
//Code goes here
}
Satviewers
02-08-2010, 12:25 AM
Thank you.
borbole
02-08-2010, 03:19 AM
Thank you.
You are welcome.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.