PDA

View Full Version : Capture username and userid


Tee Chee Ming
12-21-2011, 09:04 AM
Does anyone know how to capture username and userid after the member log in into vbulletin forum using php?I need to create custom page to run some functions by using these 2 input.

Disasterpiece
12-21-2011, 09:13 AM
global $vbulletin;

var_dump($vbulletin->userinfo);

Tee Chee Ming
12-21-2011, 11:19 PM
Why the output show NULL?

Lynne
12-22-2011, 02:58 AM
Where did you put that code?

Tee Chee Ming
12-29-2011, 03:39 AM
Maybe I put wrong place. By the way, I had solve the problem. Thanks.:)