<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Question2Answer Q&amp;A - Recent questions tagged administrator_login</title>
<link>https://www.question2answer.org/qa/tag/administrator_login</link>
<description>Powered by Question2Answer</description>
<item>
<title>I changed my Q2A to single sign-on. Now I can't access as admin.... What's next?</title>
<link>https://www.question2answer.org/qa/27856/changed-my-q2a-to-single-sign-now-cant-access-admin-whats-next</link>
<description>

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


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


&lt;p&gt;
	Since my website has already contained login mechanism, I used the following procedure to ask Q2A users to login and register:&lt;/p&gt;


&lt;p&gt;
	&lt;a rel=&quot;nofollow&quot; href=&quot;http://www.question2answer.org/single-sign-on.php&quot;&gt;http://www.question2answer.org/single-sign-on.php&lt;/a&gt;&lt;/p&gt;


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


&lt;p&gt;
	Now, I can't access as admin. When I go to q2a/admin website, it asks to login through my old mechanism, but the Q2A admin is not there. What should I do now?&lt;/p&gt;


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


&lt;p&gt;
	Thank you&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/27856/changed-my-q2a-to-single-sign-now-cant-access-admin-whats-next</guid>
<pubDate>Sat, 28 Sep 2013 23:46:39 +0000</pubDate>
</item>
<item>
<title>How to set up qa-external-users.php</title>
<link>https://www.question2answer.org/qa/22329/how-to-set-up-qa-external-users-php</link>
<description>

&lt;p&gt;
	I'm not a technical person and am trying to set up this website using question2answer template.&lt;/p&gt;


&lt;p&gt;
	The site is up and I can post questions and answer them, and I've also made changes necessary to qa-external-users.php as specified.&lt;/p&gt;


&lt;p&gt;
	But I'm unable to log in as the log in, register and logout URLs that need to be specified in the file are being done incorrectly. From that particular section I've commented out the default sections and un-commented &quot;Example 1&quot;. Yet I'm unable to get the log in page to show up.&lt;/p&gt;


&lt;p&gt;
	Please guide me in how to get the log in and register pages to show up.&lt;/p&gt;


&lt;p&gt;
	I'm not even able to get to the admin panel without these settings!&lt;/p&gt;


&lt;p&gt;
	The code after my modifications for the get-links sections is as below:&lt;/p&gt;


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


&lt;div&gt;
	function qa_get_login_links($relative_url_prefix, $redirect_back_to_url)&lt;/div&gt;


&lt;div&gt;
	/*&lt;/div&gt;


&lt;div&gt;
	===========================================================================&lt;/div&gt;


&lt;div&gt;
	YOU MUST MODIFY THIS FUNCTION, BUT CAN DO SO AFTER Q2A CREATES ITS DATABASE&lt;/div&gt;


&lt;div&gt;
	===========================================================================&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	You should return an array containing URLs for the login, register and logout pages on&lt;/div&gt;


&lt;div&gt;
	your site. These URLs will be used as appropriate within the Q2A site.&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	You may return absolute or relative URLs for each page. If you do not want one of the links&lt;/div&gt;


&lt;div&gt;
	to show, omit it from the array, or use null or an empty string.&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	If you use absolute URLs, then return an array with the URLs in full (see example 1 below).&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	If you use relative URLs, the URLs should start with $relative_url_prefix, followed by the&lt;/div&gt;


&lt;div&gt;
	relative path from the root of the Q2A site to your login page. Like in example 2 below, if&lt;/div&gt;


&lt;div&gt;
	the Q2A site is in a subdirectory, $relative_url_prefix.'../' refers to your site root.&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	Now, about $redirect_back_to_url. Let's say a user is viewing a page on the Q2A site, and&lt;/div&gt;


&lt;div&gt;
	clicks a link to the login URL that you returned from this function. After they log in using&lt;/div&gt;


&lt;div&gt;
	the form on your main site, they want to automatically go back to the page on the Q2A site&lt;/div&gt;


&lt;div&gt;
	where they came from. This can be done with an HTTP redirect, but how does your login page&lt;/div&gt;


&lt;div&gt;
	know where to redirect the user to? The solution is $redirect_back_to_url, which is the URL&lt;/div&gt;


&lt;div&gt;
	of the page on the Q2A site where you should send the user once they've successfully logged&lt;/div&gt;


&lt;div&gt;
	in. To implement this, you can add $redirect_back_to_url as a parameter to the login URL&lt;/div&gt;


&lt;div&gt;
	that you return from this function. Your login page can then read it in from this parameter,&lt;/div&gt;


&lt;div&gt;
	and redirect the user back to the page after they've logged in. The same applies for your&lt;/div&gt;


&lt;div&gt;
	register and logout pages. Note that the URL you are given in $redirect_back_to_url is&lt;/div&gt;


&lt;div&gt;
	relative to the root of the Q2A site, so you may need to add something.&lt;/div&gt;


&lt;div&gt;
	*/&lt;/div&gt;


&lt;div&gt;
	{&lt;/div&gt;


&lt;div&gt;
	/*&lt;/div&gt;


&lt;div&gt;
	//&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;Until you edit this function, don't show login, register or logout links&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	return array(&lt;/div&gt;


&lt;div&gt;
	'login' =&amp;gt; null,&lt;/div&gt;


&lt;div&gt;
	'register' =&amp;gt; null,&lt;/div&gt;


&lt;div&gt;
	'logout' =&amp;gt; null&lt;/div&gt;


&lt;div&gt;
	);&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	Example 1 - using absolute URLs, suitable if:&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	* Your Q2A site: &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://qa.mysite.com/&quot; rel=&quot;nofollow&quot;&gt;http://qa.mysite.com/&lt;/a&gt;&lt;/div&gt;


&lt;div&gt;
	* Your login page: &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://www.mysite.com/login&quot; rel=&quot;nofollow&quot;&gt;http://www.mysite.com/login&lt;/a&gt;&lt;/div&gt;


&lt;div&gt;
	* Your register page: &amp;nbsp;&lt;a href=&quot;http://www.mysite.com/register&quot; rel=&quot;nofollow&quot;&gt;http://www.mysite.com/register&lt;/a&gt;&lt;/div&gt;


&lt;div&gt;
	* Your logout page: &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://www.mysite.com/logout&quot; rel=&quot;nofollow&quot;&gt;http://www.mysite.com/logout&lt;/a&gt;&lt;/div&gt;


&lt;div&gt;
	*/&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;&lt;/div&gt;


&lt;div&gt;
	return array(&lt;/div&gt;


&lt;div&gt;
	'login' =&amp;gt; '&lt;a href=&quot;http://askwho.org/login',&quot; rel=&quot;nofollow&quot;&gt;http://askwho.org/login',&lt;/a&gt;&lt;/div&gt;


&lt;div&gt;
	'register' =&amp;gt; '&lt;a href=&quot;http://askwho.org/register',&quot; rel=&quot;nofollow&quot;&gt;http://askwho.org/register',&lt;/a&gt;&lt;/div&gt;


&lt;div&gt;
	'logout' =&amp;gt; '&lt;a href=&quot;http://askwho.org/logout',&quot; rel=&quot;nofollow&quot;&gt;http://askwho.org/logout',&lt;/a&gt;&lt;/div&gt;


&lt;div&gt;
	);&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	/*&lt;/div&gt;


&lt;div&gt;
	Example 2 - using relative URLs, suitable if:&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	* Your Q2A site: &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://www.mysite.com/qa/&quot; rel=&quot;nofollow&quot;&gt;http://www.mysite.com/qa/&lt;/a&gt;&lt;/div&gt;


&lt;div&gt;
	* Your login page: &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://www.mysite.com/login.php&quot; rel=&quot;nofollow&quot;&gt;http://www.mysite.com/login.php&lt;/a&gt;&lt;/div&gt;


&lt;div&gt;
	* Your register page: &amp;nbsp;&lt;a href=&quot;http://www.mysite.com/register.php&quot; rel=&quot;nofollow&quot;&gt;http://www.mysite.com/register.php&lt;/a&gt;&lt;/div&gt;


&lt;div&gt;
	* Your logout page: &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://www.mysite.com/logout.php&quot; rel=&quot;nofollow&quot;&gt;http://www.mysite.com/logout.php&lt;/a&gt;&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	return array(&lt;/div&gt;


&lt;div&gt;
	'login' =&amp;gt; $relative_url_prefix.'../login.php',&lt;/div&gt;


&lt;div&gt;
	'register' =&amp;gt; $relative_url_prefix.'../register.php',&lt;/div&gt;


&lt;div&gt;
	'logout' =&amp;gt; $relative_url_prefix.'../logout.php',&lt;/div&gt;


&lt;div&gt;
	);&lt;/div&gt;


&lt;div&gt;
	*/&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	/*&lt;/div&gt;


&lt;div&gt;
	Example 3 - using relative URLs, and implementing $redirect_back_to_url&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	In this example, your pages login.php, register.php and logout.php should read in the&lt;/div&gt;


&lt;div&gt;
	parameter $_GET['redirect'], and redirect the user to the page specified by that&lt;/div&gt;


&lt;div&gt;
	parameter once they have successfully logged in, registered or logged out.&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	return array(&lt;/div&gt;


&lt;div&gt;
	'login' =&amp;gt; $relative_url_prefix.'../login.php?redirect='.urlencode('qa/'.$redirect_back_to_url),&lt;/div&gt;


&lt;div&gt;
	'register' =&amp;gt; $relative_url_prefix.'../register.php?redirect='.urlencode('qa/'.$redirect_back_to_url),&lt;/div&gt;


&lt;div&gt;
	'logout' =&amp;gt; $relative_url_prefix.'../logout.php?redirect='.urlencode('qa/'.$redirect_back_to_url),&lt;/div&gt;


&lt;div&gt;
	);&lt;/div&gt;


&lt;div&gt;
	*/&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	}&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/22329/how-to-set-up-qa-external-users-php</guid>
<pubDate>Sun, 17 Mar 2013 16:18:41 +0000</pubDate>
</item>
<item>
<title>register form only available for admin login</title>
<link>https://www.question2answer.org/qa/21054/register-form-only-available-for-admin-login</link>
<description>Hello,&lt;br /&gt;
&lt;br /&gt;
I'm testing and discovering Q&amp;amp;A &amp;nbsp;with the project to use it as our question-answer system in a library. In a first approach, we do not intend to ask registration to our audience. On the contrary, we would like to reserve the registration to the team responsible for answering (adminstrator and responsibles by category).&lt;br /&gt;
&lt;br /&gt;
I could see that the registration form url is available only when connected as a basis user. Is there a way &amp;nbsp;to make it work only as administrator and that would not imply a heavy code modification?</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/21054/register-form-only-available-for-admin-login</guid>
<pubDate>Sat, 02 Feb 2013 08:20:03 +0000</pubDate>
</item>
<item>
<title>SOS! User not found, but it exists...</title>
<link>https://www.question2answer.org/qa/19162/sos-user-not-found-but-it-exists</link>
<description>

&lt;p&gt;
	I try to log into my admin panel, but I can't...&lt;/p&gt;


&lt;p&gt;
	&lt;img alt=&quot;&quot; src=&quot;http://www.question2answer.org/qa/?qa=blob&amp;amp;qa_blobid=8304360355247911427&quot; style=&quot;width: 679px; height: 141px;&quot;&gt;&lt;/p&gt;


&lt;p&gt;
	I check the database, and the data is correct...&lt;/p&gt;


&lt;p&gt;
	&lt;img alt=&quot;&quot; src=&quot;http://www.question2answer.org/qa/?qa=blob&amp;amp;qa_blobid=15399185086354331727&quot; style=&quot;width: 700px; height: 64px;&quot;&gt;&lt;/p&gt;


&lt;p&gt;
	What can I do?&lt;/p&gt;


&lt;p&gt;
	Thank you in advance for any suggestion...&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/19162/sos-user-not-found-but-it-exists</guid>
<pubDate>Thu, 15 Nov 2012 11:12:50 +0000</pubDate>
</item>
<item>
<title>Not able to Login after selecting URL structure first option</title>
<link>https://www.question2answer.org/qa/18638/not-able-to-login-after-selecting-url-structure-first-option</link>
<description>I have selected first option of URL structure. After that I'm not able to Login.&lt;br /&gt;
&lt;br /&gt;
There are some settings I need to do before selecting first option on WAMP server but I've not changed any settings that's why I'm not able to login.&lt;br /&gt;
&lt;br /&gt;
Please help me out on this.&lt;br /&gt;
&lt;br /&gt;
Suggest any other way to change URL structure OR from backend (DB changes etc.).</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/18638/not-able-to-login-after-selecting-url-structure-first-option</guid>
<pubDate>Fri, 26 Oct 2012 04:57:54 +0000</pubDate>
</item>
<item>
<title>Help with administrator login</title>
<link>https://www.question2answer.org/qa/16306/help-with-administrator-login</link>
<description>

&lt;p&gt;
	After installing SSO database, I followed link to the Administration center at&lt;/p&gt;


&lt;p&gt;
	.net/qa/index.php?qa=admin &amp;nbsp;and received a message&lt;/p&gt;


&lt;p&gt;
	&quot;&lt;span style=&quot;background-color: rgb(255, 238, 238); color: rgb(204, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 16px; font-weight: bold; text-align: left;&quot;&gt;Please log in as the administrator to access this page.&lt;/span&gt;&quot;&lt;/p&gt;


&lt;p&gt;
	How do I do that?, there is no link on the page.&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/16306/help-with-administrator-login</guid>
<pubDate>Mon, 02 Jul 2012 00:30:09 +0000</pubDate>
</item>
</channel>
</rss>