Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+4 votes
in Q2A Core by
I have create folder "question2answer" in my web root.

I am returning default path from function "qa_get_logged_in_user_html($logged_in_user, $relative_url_prefix)". I ensured that my public user name is available in variable "$logged_in_user".

return '<a href="'.qa_path_html('user/'.$publicusername).'" class="qa-user-link">'.htmlspecialchars($publicusername).'</a>';

But when I click on the logged in user it gives me error "Page not found".

Can anybody help me to solve this problem.

1 Answer

+1 vote

I have just activated code of examples shared in the SSO file for function qa_get_userids_from_public(). & function qa_get_public_from_userids($userids) & my problem is solved.

Thats great . Thanks for sharing .  :)