![]() |
How to get current user thier ID?
Hi Guys,
First time developing a plugin for vBulletin, and i think im about to pass out xD. I'm trying to do the following: Code:
$userid = $vbulletin->userinfo[userid]; |
$vbulletin->userinfo[userid] should work. Depending on what hook location you're using, you may need "global $vbulletin'" at the beginning of your code.
|
Quote:
|
Oh, that's why - init_startup is too early. Maybe try global_bootstrap_init_start.
|
Quote:
|
try adding global $vbulletin; as first line
|
What is the variable to get the User ID of the currently showing MEMBERINFO (users profile ID)? Can't seem to find it.
EDIT: Got it, $vbulletin->GPC['userid']; Thanks guys =D! |
All times are GMT. The time now is 09:58 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:
|