<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Question2Answer Q&amp;A - Recent questions tagged hide-reputation-system</title>
<link>https://www.question2answer.org/qa/tag/hide-reputation-system</link>
<description>Powered by Question2Answer</description>
<item>
<title>Hide reputation system for specific category</title>
<link>https://www.question2answer.org/qa/33008/hide-reputation-system-for-specific-category</link>
<description>

&lt;p&gt;
	I know that Q2A is not a blog system but could be useful have an option to &lt;strong&gt;hide&lt;/strong&gt; the &lt;em&gt;reputation system&lt;/em&gt; and &lt;em&gt;relative buttons&lt;/em&gt; for a specific category ID. So, for example, the admin will be able to create a &quot;blog&quot; category where put posts and not questions. This because in a site not all need to be rated.&lt;/p&gt;


&lt;p&gt;
	in my qa-theme.php&lt;/p&gt;


&lt;div&gt;
	

&lt;div&gt;
		function q_list_item($q_item){&lt;/div&gt;
	

&lt;div&gt;
		$categoryid = $q_item['raw']['categoryid'];&lt;/div&gt;
	

&lt;div&gt;
		if ($categoryid == &quot;7&quot;){&lt;/div&gt;
	

&lt;div&gt;
		qa_html_theme_base::q_list_item($q_item);&lt;/div&gt;
	

&lt;div&gt;
		$this-&amp;gt;output('&amp;lt;style type=&quot;text/css&quot;&amp;gt; .qa-vote-buttons, .qa-vote-count{display:none;} &amp;lt;/style&amp;gt;');&lt;/div&gt;
	

&lt;div&gt;
		} else {&amp;nbsp;&lt;/div&gt;
	

&lt;div&gt;
		qa_html_theme_base::q_list_item($q_item);}&lt;/div&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;
	

&lt;div&gt;
		&amp;nbsp;function q_list_items($q_items)&lt;/div&gt;
	

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

&lt;div&gt;
		&amp;nbsp; &amp;nbsp;$pagetitle=strlen($this-&amp;gt;request) ? strip_tags(@$this-&amp;gt;content['title']) : ''; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if($pagetitle== qa_lang_html('main/recent_qs_title')) {&amp;nbsp;&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; foreach ($q_items as $q_item)&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ($q_item['raw']['categoryid'] != 7)&lt;/div&gt;
	

&lt;div&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; $this-&amp;gt;q_list_item($q_item);&lt;/div&gt;
	

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

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } elseif($pagetitle== qa_lang_html('main/voted_qs_title')) {&amp;nbsp;&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; foreach ($q_items as $q_item)&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ($q_item['raw']['categoryid'] != 7)&lt;/div&gt;
	

&lt;div&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; $this-&amp;gt;q_list_item($q_item);&lt;/div&gt;
	

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

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } elseif($pagetitle== qa_lang_html('main/hot_qs_title')) {&amp;nbsp;&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; foreach ($q_items as $q_item)&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ($q_item['raw']['categoryid'] != 7)&lt;/div&gt;
	

&lt;div&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; $this-&amp;gt;q_list_item($q_item);&lt;/div&gt;
	

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

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } elseif($pagetitle == qa_lang_html('main/answered_qs_title')) {&amp;nbsp;&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; foreach ($q_items as $q_item)&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ($q_item['raw']['categoryid'] != 7)&lt;/div&gt;
	

&lt;div&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; $this-&amp;gt;q_list_item($q_item);&lt;/div&gt;
	

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

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } elseif($pagetitle == qa_lang_html('main/viewed_qs_title')) {&amp;nbsp;&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; foreach ($q_items as $q_item)&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ($q_item['raw']['categoryid'] != 7)&lt;/div&gt;
	

&lt;div&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; $this-&amp;gt;q_list_item($q_item);&lt;/div&gt;
	

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

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } else {&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; foreach ($q_items as $q_item)&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $this-&amp;gt;q_list_item($q_item);&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;
			The code above hide vote buttons for all questions/posts with Category ID 7 and avoid these posts/questions to be listed in many general filter. So the posts/questions of Category with ID 7 is now only visible when you browse this specific category.&lt;/div&gt;
		

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

&lt;div&gt;
			&lt;strong&gt;The only &quot;one&quot; problem&lt;/strong&gt;&amp;nbsp;is that this code doesn't have effect in single question/post page of Category with ID 7 where user still able to vote.&amp;nbsp;&lt;/div&gt;
	&lt;/div&gt;
	

&lt;div&gt;
		

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


&lt;p&gt;
	Can someone, please, point me to the right way?&lt;/p&gt;


&lt;p&gt;
	sorry for my bad english...&lt;/p&gt;


&lt;p&gt;
	Thanks!&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/33008/hide-reputation-system-for-specific-category</guid>
<pubDate>Sun, 23 Mar 2014 14:43:48 +0000</pubDate>
</item>
</channel>
</rss>