Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.

Help with integration with forum

0 votes
788 views
asked Mar 2, 2011 in Q2A Core by edward

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
answered Mar 3, 2011 by gidgreen

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).

...