<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Question2Answer Q&amp;A - Recent questions tagged role</title>
<link>https://www.question2answer.org/qa/tag/role</link>
<description>Powered by Question2Answer</description>
<item>
<title>How can i check if the admin is logged in or not ?</title>
<link>https://www.question2answer.org/qa/51968/how-can-i-check-if-the-admin-is-logged-in-or-not</link>
<description>Hi. Until now i made some changes on my advanced theme qa-theme.php adn everything is pretty good. What i want to do now is to add a different backround on the admin page for unlogged user.&lt;br /&gt;
&lt;br /&gt;
And my question is how can i create a condition like this on my qa-theme.php file ??:&lt;br /&gt;
&lt;br /&gt;
If {admin is not logged in&lt;br /&gt;
&amp;lt;div class=&amp;quot;&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
}&lt;br /&gt;
else&lt;br /&gt;
bla bla bla bla&lt;br /&gt;
&lt;br /&gt;
I tried to find a function for that inside qa-theme-base.php file so i can override that function on my qa-theme file but didnt find anything.&lt;br /&gt;
&lt;br /&gt;
Could you please help me ??&lt;br /&gt;
&lt;br /&gt;
Thanks</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/51968/how-can-i-check-if-the-admin-is-logged-in-or-not</guid>
<pubDate>Thu, 02 Jun 2016 02:54:35 +0000</pubDate>
</item>
<item>
<title>How can I push the Q2A user role into a javascript variable?</title>
<link>https://www.question2answer.org/qa/49873/how-can-i-push-the-q2a-user-role-into-a-javascript-variable</link>
<description>

&lt;p&gt;I need to create some custom&amp;nbsp;javascript that uses the user role.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;I can easily get the user ID from mark-up..&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var q2aUserID&amp;nbsp;= $('.qa-user-link').text();&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;..but is there a&amp;nbsp;way to push the &lt;span style=&quot;text-decoration: underline;&quot;&gt;user role&lt;/span&gt; (expert, editor, moderator, etc)&amp;nbsp;into a JS variable?&lt;/p&gt;

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

&lt;p&gt;Many thanks&amp;nbsp;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/49873/how-can-i-push-the-q2a-user-role-into-a-javascript-variable</guid>
<pubDate>Fri, 15 Jan 2016 22:32:13 +0000</pubDate>
</item>
<item>
<title>How to create a custom user role?</title>
<link>https://www.question2answer.org/qa/47845/how-to-create-a-custom-user-role</link>
<description>...in addition to defaults roles such as Super Administrator, Administrator, Moderator, Editor and Expert?</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/47845/how-to-create-a-custom-user-role</guid>
<pubDate>Thu, 10 Sep 2015 09:30:53 +0000</pubDate>
</item>
<item>
<title>give user Expert level on register process</title>
<link>https://www.question2answer.org/qa/25494/give-user-expert-level-on-register-process</link>
<description>

&lt;p&gt;
	hi what must i edit in the&amp;nbsp;qa-db-users.php file for give user automatic Expert level on register the process ?&lt;/p&gt;


&lt;div&gt;
	qa_db_query_sub(&lt;/div&gt;


&lt;div&gt;
	'INSERT INTO ^users (created, createip, email, passsalt, passcheck, level, handle, loggedin, loginip) '.&lt;/div&gt;


&lt;div&gt;
	'VALUES (NOW(), COALESCE(INET_ATON($), 0), $, $, UNHEX($), #, $, NOW(), COALESCE(INET_ATON($), 0))',&lt;/div&gt;


&lt;div&gt;
	$ip, $email, $salt, isset($password) ? qa_db_calc_passcheck($password, $salt) : null, (int)$level, $handle, $ip&lt;/div&gt;


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


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


&lt;div&gt;
	return qa_db_last_insert_id();&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/25494/give-user-expert-level-on-register-process</guid>
<pubDate>Thu, 11 Jul 2013 15:36:10 +0000</pubDate>
</item>
<item>
<title>register as normal user or expert</title>
<link>https://www.question2answer.org/qa/18911/register-as-normal-user-or-expert</link>
<description>any option user can select on register page as normal user or expert ?</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/18911/register-as-normal-user-or-expert</guid>
<pubDate>Sun, 04 Nov 2012 17:53:16 +0000</pubDate>
</item>
<item>
<title>New Feature - label a user as &quot;expert&quot; once they've had a certain number of upvotes based on tag</title>
<link>https://www.question2answer.org/qa/15235/feature-label-user-expert-theyve-certain-number-upvotes-based</link>
<description>I'd like the ability to set a person as an &amp;quot;expert&amp;quot; - maybe decorating their name and logo with a badge indicating as such - when they've been voted up on questions with particular tags related to them.&lt;br /&gt;
&lt;br /&gt;
For example, I answer lots of questions tagged &amp;quot;dotnet&amp;quot; and get lots of upvotes. &amp;nbsp;When I hit X number of upvotes, I'm thought of as an expert in that tag so when people see my responses or comments related to a question with that tag, my name/icon is decorated with something that indicates I'm an &amp;quot;expert&amp;quot;.</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/15235/feature-label-user-expert-theyve-certain-number-upvotes-based</guid>
<pubDate>Wed, 23 May 2012 17:15:07 +0000</pubDate>
</item>
</channel>
</rss>