<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Question2Answer Q&amp;A - Recent questions tagged external-users</title>
<link>https://www.question2answer.org/qa/tag/external-users</link>
<description>Powered by Question2Answer</description>
<item>
<title>I need a sample code for integration of 3rd party user login</title>
<link>https://www.question2answer.org/qa/98335/i-need-a-sample-code-for-integration-of-3rd-party-user-login</link>
<description>I am having a Laravel based app. Which is having user login authentication system already. How can I integrate its login in q2a application. I need sample codes and workflow.</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/98335/i-need-a-sample-code-for-integration-of-3rd-party-user-login</guid>
<pubDate>Tue, 14 Dec 2021 16:33:01 +0000</pubDate>
</item>
<item>
<title>Microsoft 365 authentication</title>
<link>https://www.question2answer.org/qa/97390/microsoft-365-authentication</link>
<description>I want to set up authentication through Microsoft 365.&lt;br /&gt;
&lt;br /&gt;
How can i do this?</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/97390/microsoft-365-authentication</guid>
<pubDate>Tue, 09 Nov 2021 04:59:51 +0000</pubDate>
</item>
<item>
<title>What happen to the internal users if  I setup LDAP authentication?</title>
<link>https://www.question2answer.org/qa/91238/what-happen-to-the-internal-users-setup-ldap-authentication</link>
<description>We have an active Q2A site with internal user authentication enabled. There are at least 30 users. I would like to setup LDAP authentication using qa-ldap-login. Will the existing users be able to login using the internal accounts once I setup LDAP? Will those users be removed/overwritten from the database? What happens to the score of the users ?</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/91238/what-happen-to-the-internal-users-setup-ldap-authentication</guid>
<pubDate>Fri, 26 Feb 2021 04:43:33 +0000</pubDate>
</item>
<item>
<title>SSO config session cookie hashed?</title>
<link>https://www.question2answer.org/qa/63577/sso-config-session-cookie-hashed</link>
<description>Hello,&lt;br /&gt;
&lt;br /&gt;
I am trying to get the SSO working with TikiWiki following the instructions in the qa-external-users file. Overall TikiWiki seems to be reasonably similar to Wordpress etc. that it should work, but I am quite inexperienced with these things.&lt;br /&gt;
&lt;br /&gt;
I am going of the second example for function qa_get_logged_in_user() as userids are stored as numeric values and TikiWiki seems to create a session cookie.&lt;br /&gt;
&lt;br /&gt;
However I have run into several issues:&lt;br /&gt;
&lt;br /&gt;
1. The cookie that seems to be created by TikiWiki (called PHPSESSID) only contains a single value that looks like a some sort of hashed random string. Normally there should be the userid, right?&lt;br /&gt;
&lt;br /&gt;
1.1. If I set the if &amp;quot;(isset($_COOKIE['sessionid'])) {&amp;quot; to 'PHPSESSID' the Q2A page fails to load due to an database error. I guess this is just because it can't understand the above hashed value and tries to find a userid with it?&lt;br /&gt;
&lt;br /&gt;
2. Tikiwiki by default has a session storage location defined in the php.ini, but being on a shared host I don't have direct access to the php.ini. There is also a option to store it in the database as the Q2A example seems to assume, but somehow this seems to be broken in TikiWiki as when I select that I can't log in anymore. Is there another way of doing this?&lt;br /&gt;
&lt;br /&gt;
I hope someone here has an idea about this, as I seem to be well over my head on this :( Thanks for the help in advance!</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/63577/sso-config-session-cookie-hashed</guid>
<pubDate>Wed, 18 Apr 2018 14:26:02 +0000</pubDate>
</item>
<item>
<title>Using the qa_users table of the main forum in a second forum</title>
<link>https://www.question2answer.org/qa/58769/using-the-qa_users-table-of-the-main-forum-in-a-second-forum</link>
<description>Next to my main site I plan to create another forum with another purpose (thus on another domain!).&lt;br /&gt;
&lt;br /&gt;
I want the users from my main site to log-in into the new forum site - with their existing logins.&lt;br /&gt;
&lt;br /&gt;
I found &lt;a href=&quot;https://github.com/q2a/question2answer/blob/dev/qa-external-example/qa-external-users.php&quot; rel=&quot;nofollow&quot;&gt;https://github.com/q2a/question2answer/blob/dev/qa-external-example/qa-external-users.php&lt;/a&gt; which seems quite complicated at first glance.&lt;br /&gt;
&lt;br /&gt;
Questions:&lt;br /&gt;
&lt;br /&gt;
1. Is there any easy way to just tell q2a to use the other database's qa_users table instead?&lt;br /&gt;
&lt;br /&gt;
2. Has somebody done something like this already? If so, what would be the code of qa-external-users.php?&lt;br /&gt;
&lt;br /&gt;
3. What else to consider?&lt;br /&gt;
&lt;br /&gt;
Thanks for sharing your experiences and ideas.&lt;br /&gt;
&lt;br /&gt;
Kai</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/58769/using-the-qa_users-table-of-the-main-forum-in-a-second-forum</guid>
<pubDate>Sun, 30 Jul 2017 02:31:18 +0000</pubDate>
</item>
<item>
<title>How to enable Wall Posts for External Users?</title>
<link>https://www.question2answer.org/qa/58382/how-to-enable-wall-posts-for-external-users</link>
<description>I'm using Q2A 1.7&lt;br /&gt;
Is there a way to make the wall work with external user integration?&lt;br /&gt;
Where do I start?</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/58382/how-to-enable-wall-posts-for-external-users</guid>
<pubDate>Tue, 04 Jul 2017 03:05:11 +0000</pubDate>
</item>
<item>
<title>How to enable private messaging when using external user authentication</title>
<link>https://www.question2answer.org/qa/58232/enable-private-messaging-when-using-external-authentication</link>
<description>Can we please have private messaging enabled when using external-user authentication?</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/58232/enable-private-messaging-when-using-external-authentication</guid>
<pubDate>Thu, 22 Jun 2017 00:08:01 +0000</pubDate>
</item>
<item>
<title>Linking logins for user</title>
<link>https://www.question2answer.org/qa/57489/linking-logins-for-user</link>
<description>

&lt;p&gt;We have an internal site running with users registering and using passwords, but we want to switch to using LDAP against our corporate directory.
&lt;br&gt;
&lt;br&gt;We've tested the ldap plugin, but it treats an ldap login as a new user, and it would be better if our users could keep their existing accounts and history, while switching from password login to LDAP login.
&lt;br&gt;
&lt;br&gt;I've made a small patch to user.php which treats a new ldap login as belonging to an existing user if the ldap email matches the existing user email, but is this a sensible way? If I made a PR against 1.8 to support this behaviour as a non-default config option, would it be considered?
&lt;br&gt;
&lt;br&gt;This user appears to have wanted the same thing: &lt;a href=&quot;http://www.question2answer.org/qa/51868/active-external-user-when-question2answer-already-installed&quot; rel=&quot;nofollow&quot;&gt;http://www.question2answer.org/qa/51868/active-external-user-when-question2answer-already-installed&lt;/a&gt;&lt;/p&gt;

&lt;hr&gt;

&lt;p&gt;The changes are in&amp;nbsp;&lt;a href=&quot;https://github.com/andrewmcguinness/question2answer/tree/acctlink18&amp;nbsp;&quot; rel=&quot;nofollow&quot;&gt;https://github.com/andrewmcguinness/question2answer/tree/acctlink18&amp;nbsp;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;There are three issues with it:&lt;/p&gt;

&lt;ul&gt;

&lt;li&gt;It's not tested against 1.8 -- We're actually running 1.7.4 and it appears to work as intended there&lt;/li&gt;

&lt;li&gt;It doesn't distinguish different external user sources; it's good for LDAP, but anyone who logs in with a plugin that works the same way as the LDAP plugin, but who can control the email address on the source can effectively hijack anybody's account by setting their email address to match the victim in the external service and then logging in using that service and linking their login to the existing account.&lt;/li&gt;

&lt;li&gt;Both login methods will work for the merged account, which is OK, but there's no way to get rid of the password if you decide you don't want it any more. I imagine we will wipe them as a one-off at some point in the future once our users are used to using LDAP.&lt;/li&gt;&lt;/ul&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/57489/linking-logins-for-user</guid>
<pubDate>Fri, 28 Apr 2017 13:45:10 +0000</pubDate>
</item>
<item>
<title>Emergency Help reqired on 'Login as other user'. Ready to Pay</title>
<link>https://www.question2answer.org/qa/55158/emergency-help-reqired-on-login-as-other-user-ready-to-pay</link>
<description>

&lt;p&gt;I am facing issue with my site. Please help me.
&lt;br&gt;
&lt;br&gt;Its an emergency :'(
&lt;br&gt;
&lt;br&gt;&lt;a href=&quot;http://www.question2answer.org/qa/54400/strange-problem-login-as-another-user&quot; rel=&quot;nofollow&quot;&gt;http://www.question2answer.org/qa/54400/strange-problem-login-as-another-user&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;----------------------------------------------------------------------------------------------------------------------&lt;/p&gt;

&lt;p&gt;Update 1: I have migrated back to 1.74 (with all user credentials reset)&lt;/p&gt;

&lt;p&gt;Its pure core q2a. No other authentication user plugin used. STILL problem exists.&lt;/p&gt;

&lt;p&gt;Last registered user account will be logged in to someone else...!!!&lt;/p&gt;

&lt;p&gt;----------------------------------------------------------------------------------------------------------------------&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Update 2 : Finally, Issue got resolved.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Special Thanks to &lt;a rel=&quot;nofollow&quot; href=&quot;http://www.question2answer.org/qa/user/pupi1985&quot;&gt;@pupi1985&lt;/a&gt; who digged into root of the&amp;nbsp; issue :)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The issue was with Shared hosting. Server was serving cached data!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Response header containing flag&lt;strong&gt; &lt;/strong&gt;&lt;strong&gt;X-Served-From-Cache : Yes&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Solution: &lt;/strong&gt;Move out of Shared hosting to VPS!&lt;/p&gt;

&lt;p&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt;PS:&lt;/span&gt; For 1.8 release, can we add this check during installation process to stop user installing on such servers?&lt;/p&gt;

&lt;p&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/55158/emergency-help-reqired-on-login-as-other-user-ready-to-pay</guid>
<pubDate>Wed, 30 Nov 2016 23:57:15 +0000</pubDate>
</item>
<item>
<title>Accessing Question2Answer from external PHP code</title>
<link>https://www.question2answer.org/qa/53706/accessing-question2answer-from-external-php-code</link>
<description>Is this --- &lt;a href=&quot;http://docs.question2answer.org/code/external/&quot; rel=&quot;nofollow&quot;&gt;http://docs.question2answer.org/code/external/&lt;/a&gt; --- the way to display content and data from Q2A (I have it on a subdomain) on another domain? So say I wanted to grab some user data and display it on a wordpress user profile? Is this the right place to look or would that be the external users page.</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/53706/accessing-question2answer-from-external-php-code</guid>
<pubDate>Mon, 12 Sep 2016 06:27:25 +0000</pubDate>
</item>
<item>
<title>Whats the purpose of the external users php file?</title>
<link>https://www.question2answer.org/qa/53616/whats-the-purpose-of-the-external-users-php-file</link>
<description>Im new to wordpress integration, running into some issues. Testing it, when I logout it sometimes doesnt logout or it shows me as another user. So I guess cookies arent clearing? Checking out the external users file, it appears it needs to be modified alot? Is this nexessary for integration to function properly, or what needs modifying in that file? Thanks!</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/53616/whats-the-purpose-of-the-external-users-php-file</guid>
<pubDate>Sat, 03 Sep 2016 16:50:37 +0000</pubDate>
</item>
<item>
<title>Do we have to edit all of external-users php to get synced with wordpress integration</title>
<link>https://www.question2answer.org/qa/53565/have-edit-external-users-synced-with-wordpress-integration</link>
<description>I have integrated with wordpress, but not sure what the external users php file is for? Is this handled automatically or do we have to edit and change things? &amp;nbsp;Is this the only way for the cookies, login, logout, combine user profile to function? Sorry, new to this integration and SSO stuff. &amp;nbsp;There's been some 'bugs' or my user error of not being able to sign out completely, etc.</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/53565/have-edit-external-users-synced-with-wordpress-integration</guid>
<pubDate>Sun, 28 Aug 2016 12:01:31 +0000</pubDate>
</item>
<item>
<title>Question2Answer Accounts to use with other CMS</title>
<link>https://www.question2answer.org/qa/52209/question2answer-accounts-to-use-with-other-cms</link>
<description>I am not tested external user yet, but I don't really understand how external user will work with other DB user especially is password and how can be Question2Answer accounts can be migrate to other CMS?&lt;br /&gt;
&lt;br /&gt;
In this case, for example I installed a wordpress blog and trying to copy user from question2answer DB user to Wordpress DB user but they are using different password hasing and different password encryption algorithm so it's can't be work.</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/52209/question2answer-accounts-to-use-with-other-cms</guid>
<pubDate>Sat, 18 Jun 2016 23:14:12 +0000</pubDate>
</item>
<item>
<title>Could someone help me with an example of an external login?</title>
<link>https://www.question2answer.org/qa/52186/could-someone-help-me-with-an-example-of-an-external-login</link>
<description>Greetings,&lt;br /&gt;
&lt;br /&gt;
I've searched the forums and looked through the /pages/login.php file. I've also read the module logins page in the wiki. I'm still grasping at how to actually pass user login / registration info to q2a from my external page. I'm really not great with php. Would anyone be kind enough to help me with a basic example of how I can take the email/pw and pass it into q2a and how I can do the same with registration fields? I would be forever grateful.&lt;br /&gt;
&lt;br /&gt;
I'm not using openID or facebook or any of the other login plugins. Just a simple email/password. &lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
&lt;br /&gt;
J</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/52186/could-someone-help-me-with-an-example-of-an-external-login</guid>
<pubDate>Fri, 17 Jun 2016 15:10:24 +0000</pubDate>
</item>
<item>
<title>Active External user when Question2Answer already installed?</title>
<link>https://www.question2answer.org/qa/51868/active-external-user-when-question2answer-already-installed</link>
<description>I am going to intergrate user database with Q2A, what I want here is:&lt;br /&gt;
- Moving user from Q2A to my User DB, so my User DB will have Q2A accounts.&lt;br /&gt;
- Q2A will active External user and use data from my User DB from now on, no question, comment, points is loss.&lt;br /&gt;
&lt;br /&gt;
Can I do this? Because the documentation show the instruction when you newly install Q2A while I am going to active External user on a already-working Q2A site.&lt;br /&gt;
&lt;br /&gt;
Sorry for my bad english.</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/51868/active-external-user-when-question2answer-already-installed</guid>
<pubDate>Mon, 23 May 2016 04:06:59 +0000</pubDate>
</item>
<item>
<title>How could I change mail receiver for notifications ?</title>
<link>https://www.question2answer.org/qa/51686/how-could-i-change-mail-receiver-for-notifications</link>
<description>Hello !&lt;br /&gt;
&lt;br /&gt;
I'm integrating Q2A with single sign-on. To perform that, I use an iFrame that displays the Q2A component and a GET method to have the user logged in (with mail, user ID,etc...)&lt;br /&gt;
&lt;br /&gt;
This works well, but I have noticed a problem : when for example User A asks a question, and user B answers it, user B receives the mail notification for &amp;quot;new answer to your question&amp;quot; !&lt;br /&gt;
&lt;br /&gt;
So I'm asking you where in the code is the script that prepares the mail, and how could I fix it... Or it is a problem with the external users feature ?&lt;br /&gt;
&lt;br /&gt;
Or maybe it's normal ? But for me this is not logical at all...&lt;br /&gt;
&lt;br /&gt;
Thanks !</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/51686/how-could-i-change-mail-receiver-for-notifications</guid>
<pubDate>Sun, 08 May 2016 05:01:24 +0000</pubDate>
</item>
<item>
<title>ELI5 the best way to deal with user logins?</title>
<link>https://www.question2answer.org/qa/50799/eli5-the-best-way-to-deal-with-user-logins</link>
<description>We have a main website that is coded using the materializecss framework and the only purpose of that part of the website is to host a bunch of information. We have a second part of the website where we're setting up Q2A to handle questions. We wish to hide some content on the main website from the public (i.e. so only registered users can see it), and we wish to restrict the ability to ask and answer questions to only registered users on the Q&amp;amp;A part. &lt;br /&gt;
&lt;br /&gt;
ELI5 what is the best way to setup users? Assume I'm a retard, because after staring at the documentation for an hour or two, I feel like one. :)</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/50799/eli5-the-best-way-to-deal-with-user-logins</guid>
<pubDate>Mon, 07 Mar 2016 17:52:33 +0000</pubDate>
</item>
<item>
<title>Problems using external-users in 1.7</title>
<link>https://www.question2answer.org/qa/46607/problems-using-external-users-in-1-7</link>
<description>

&lt;p&gt;I am trying to configure a second q2a site using the first q2a site db of users. But i'm having problems with&amp;nbsp;the function qa_get_logged_in_user()&amp;nbsp;in qa-external-users. After some researching I'm guessing that q2a stores the session ID inside a cookie (qa_key) and so I changed the preview value to qa_key and got this function:&lt;/p&gt;

&lt;p&gt;if ($_COOKIE['qa_key']) {&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $qa_db_connection=qa_db_connection();&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $result=mysql_fetch_assoc(&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mysql_query(&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;SELECT userid, username, email, admin_flag FROM users WHERE userid=&quot;.&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;(SELECT userid FROM sessions WHERE sessionid='&quot;.mysql_real_escape_string($_COOKIE['qa_key'], $qa_db_connection).&quot;')&quot;,&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $qa_db_connection&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; );&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;The problem is, I always get following errors:&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Warning&lt;/strong&gt;&lt;span style=&quot;background-color:rgb(238, 238, 238); font-family:helvetica,arial,sans-serif; font-size:14px&quot;&gt;: mysql_real_escape_string() expects parameter 2 to be resource, object given in&amp;nbsp;&lt;/span&gt;&lt;strong&gt;/home/matemati/public_html/meta/qa-external/qa-external-users.php&lt;/strong&gt;&lt;span style=&quot;background-color:rgb(238, 238, 238); font-family:helvetica,arial,sans-serif; font-size:14px&quot;&gt;&amp;nbsp;on line&amp;nbsp;&lt;/span&gt;&lt;strong&gt;249&lt;/strong&gt;
&lt;br&gt;
&lt;br&gt;&lt;strong&gt;Warning&lt;/strong&gt;&lt;span style=&quot;background-color:rgb(238, 238, 238); font-family:helvetica,arial,sans-serif; font-size:14px&quot;&gt;: mysql_query() expects parameter 2 to be resource, object given in&amp;nbsp;&lt;/span&gt;&lt;strong&gt;/home/matemati/public_html/meta/qa-external/qa-external-users.php&lt;/strong&gt;&lt;span style=&quot;background-color:rgb(238, 238, 238); font-family:helvetica,arial,sans-serif; font-size:14px&quot;&gt;&amp;nbsp;on line&amp;nbsp;&lt;/span&gt;&lt;strong&gt;251&lt;/strong&gt;
&lt;br&gt;
&lt;br&gt;&lt;strong&gt;Warning&lt;/strong&gt;&lt;span style=&quot;background-color:rgb(238, 238, 238); font-family:helvetica,arial,sans-serif; font-size:14px&quot;&gt;: mysql_fetch_assoc() expects parameter 1 to be resource, null given in&amp;nbsp;&lt;/span&gt;&lt;strong&gt;/home/matemati/public_html/meta/qa-external/qa-external-users.php&lt;/strong&gt;&lt;span style=&quot;background-color:rgb(238, 238, 238); font-family:helvetica,arial,sans-serif; font-size:14px&quot;&gt;&amp;nbsp;on line&amp;nbsp;&lt;/span&gt;&lt;strong&gt;252&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Any help?&lt;/strong&gt;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/46607/problems-using-external-users-in-1-7</guid>
<pubDate>Sat, 18 Jul 2015 02:33:03 +0000</pubDate>
</item>
<item>
<title>How to move my q2a site from external to local users, without losing the users?</title>
<link>https://www.question2answer.org/qa/42110/how-move-site-from-external-local-users-without-losing-users</link>
<description>is it possible?&lt;br /&gt;
&lt;br /&gt;
Today i'm working with external users (connected to AD), and I'd like to move to loca users, and maybe handle the creation myself. There are a lot of plugins who relies onthe users table, which doesn't exist on my scenario.&lt;br /&gt;
&lt;br /&gt;
Any idea?&lt;br /&gt;
&lt;br /&gt;
Thanks!</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/42110/how-move-site-from-external-local-users-without-losing-users</guid>
<pubDate>Wed, 10 Dec 2014 22:53:13 +0000</pubDate>
</item>
<item>
<title>qa-external-users.php</title>
<link>https://www.question2answer.org/qa/41069/qa-external-users-php</link>
<description>Hello!&lt;br /&gt;
&lt;br /&gt;
I've setup my external users file and it seems to be working ok so far but it's not propagating the screen name from my user database, the default is to use the users email address.&lt;br /&gt;
&lt;br /&gt;
I'm getting the value from a custom query from my database using the cookie, here's what I'm returning to Question 2 Answer:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (is_array($result))&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return array(&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'userid' =&amp;gt; $result['member_id'],&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'publicusername' =&amp;gt; $result['screen_name'],&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'email' =&amp;gt; $result['email'],&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'level' =&amp;gt; $result['m_field_id_33'] ? QA_USER_LEVEL_ADMIN : QA_USER_LEVEL_BASIC&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;br /&gt;
&lt;br /&gt;
The weird thing is that I've seen it work for some users, where they post a question and the screen name is used, but for the first questions that were posted it's still using the email address rather than the screen name... weird.&lt;br /&gt;
&lt;br /&gt;
I still don't have my head wrapped around how Q2A pulls the user info using external user setup yet, I guess it's a live query? &amp;nbsp;I know that the member ID is stored in the Q2A database, but I've not seen any settings in the admin to choose to display the screen name or email as the public name..</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/41069/qa-external-users-php</guid>
<pubDate>Wed, 12 Nov 2014 02:42:11 +0000</pubDate>
</item>
</channel>
</rss>