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

I have a site using Wordpress source, allow for register new user with permission is Subscriber. And my Q2A site is an subfolder of my web. Example: example.com/q2a/. Now, i want to connect users of 2 sites. I reading the tutorial for Installing Question2Answer with single sign-on. I don't know what i need to do when i reading to step "Modify qa-external-users.php file" because i'm not a programmer. Please help me. I want to know what i must to change in this file using for Wordpress and Q2A.

Please take me the code if you have to do that. Thank you so  much!

Q2A version: 1.5.4 or higher

1 Answer

0 votes
by
selected by
 
Best answer

For WordPress you should check this link http://www.question2answer.org/wordpress.php

In your qa_config.php file you shoud add this

define('QA_WORDPRESS_INTEGRATE_PATH', '/PATH/TO/WORDPRESS');

Where '/PATH/TO/WORDPRESS' is your wordpress path (not url) but relative path

In your case your Q2A is in sub folder of wordpress so you need to add simply ../

define('QA_WORDPRESS_INTEGRATE_PATH', '../');

by
thanks for reply, but that is not connected user login in my site.
by
You have to install Q2A from scratch with existing wordpress AFTER defining this wordpress path in qa-config.php

If you have already installed q2a than you have to remove all q2a database and that re install it.
by
Thanks for reply, that easy but i think hard. Thanks again! :)
...