Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
1.2k views
in Q2A Core by

I am trying to install Vanilla Forums onto a subdomain, using Question2Answer's user base. Vanilla forums has a handy plugin called ProxyConnect which I am trying to get to work. I need to know a few things, can you help me out?

How do I access the UniqueID, Name, and email of any user that is logged in?

I've tried creating the following script:

if (isset($qa_login_userid))

{

$uniqueid = $_COOKIE[0];

$name= $_COOKIE[3];

$email= //help please!

 

}

1 Answer

0 votes
by

You should use the qa_get_logged_in_* functions in qa-app-users.php rather than trust the information in the cookie (which a user could fake).

...