<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Question2Answer Q&amp;A - Recent questions tagged select</title>
<link>https://www.question2answer.org/qa/tag/select</link>
<description>Powered by Question2Answer</description>
<item>
<title>How can I add &lt;select&gt; or other fields in registration form</title>
<link>https://www.question2answer.org/qa/100898/how-can-i-add-select-or-other-fields-in-registration-form</link>
<description>I want to be able to add fields such as select (precisely on the registration form), radio, checkbox etc.&lt;br /&gt;
&lt;br /&gt;
If I do this, how do I capture the user input and send to database?&lt;br /&gt;
&lt;br /&gt;
Should I create a new column in qa_users table or there's another table that handles additional input?</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/100898/how-can-i-add-select-or-other-fields-in-registration-form</guid>
<pubDate>Fri, 22 Apr 2022 08:12:08 +0000</pubDate>
</item>
<item>
<title>You can not automatically mark the subcategory?</title>
<link>https://www.question2answer.org/qa/46628/you-can-not-automatically-mark-the-subcategory</link>
<description>I would like the subcategory be compulsory.&lt;br /&gt;
In my Q2A site, selecting the category, the first subcategory is automatically selected.</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/46628/you-can-not-automatically-mark-the-subcategory</guid>
<pubDate>Mon, 20 Jul 2015 02:11:12 +0000</pubDate>
</item>
<item>
<title>Bug report: selection of sub navigation</title>
<link>https://www.question2answer.org/qa/41656/bug-report-selection-of-sub-navigation</link>
<description>

&lt;p&gt;
	I found a small bug.&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;font-size:20px;&quot;&gt;Phenomenon:&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	Sub navigation with short URL than access URL is selected.&lt;/p&gt;


&lt;p&gt;
	Example of OK case:&lt;/p&gt;


&lt;p&gt;
	Sub nav1: &lt;a href=&quot;http://example.com/mainnavi/sub&quot; rel=&quot;nofollow&quot;&gt;http://example.com/mainnavi/sub&lt;/a&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;&lt;strong&gt;1&lt;/strong&gt;&lt;/span&gt;
&lt;br&gt;
	Sub nav2: &lt;a href=&quot;http://example.com/mainnavi/sub2&quot; rel=&quot;nofollow&quot;&gt;http://example.com/mainnavi/sub2&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;
	Example of NG case:&lt;/p&gt;


&lt;p&gt;
	Sub nav1: &lt;a href=&quot;http://example.com/mainnavi/sub&quot; rel=&quot;nofollow&quot;&gt;http://example.com/mainnavi/sub&lt;/a&gt;
&lt;br&gt;
	Sub nav2: &lt;a href=&quot;http://example.com/mainnavi/sub2&quot; rel=&quot;nofollow&quot;&gt;http://example.com/mainnavi/sub2&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;
	When sub2 is accessed, sub is also selected.&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;font-size:20px;&quot;&gt;Solution for V1.6:&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	qa-include/qa-page.php (around L245)&lt;/p&gt;


&lt;p&gt;
	Before:&lt;/p&gt;


&lt;blockquote&gt;
	

&lt;div&gt;
		foreach ($qa_content['navigation'] as $navtype =&amp;gt; $navigation)&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp; if (is_array($navigation) &amp;amp;&amp;amp; ($navtype!='cat'))&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; foreach ($navigation as $navprefix =&amp;gt; $navlink)&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; if (substr($requestlower.'$', 0, strlen($navprefix)) == $navprefix)&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $qa_content['navigation'][$navtype][$navprefix]['selected']=true;&lt;/div&gt;
&lt;/blockquote&gt;


&lt;p&gt;
	After:&lt;/p&gt;


&lt;blockquote&gt;
	

&lt;div&gt;
		foreach ($qa_content['navigation'] as $navtype =&amp;gt; $navigation) {&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp; if (is_array($navigation) &amp;amp;&amp;amp; ($navtype!='cat')) {&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; foreach ($navigation as $navprefix =&amp;gt; $navlink) {&lt;/div&gt;
	

&lt;div&gt;
		&lt;strong&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if(strlen($navprefix) &amp;gt; strlen($requestlower))&lt;/strong&gt;&lt;/div&gt;
	

&lt;div&gt;
		&lt;strong&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $len = strlen($navprefix);&lt;/strong&gt;&lt;/div&gt;
	

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

&lt;div&gt;
		&lt;strong&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $len = strlen($requestlower);&lt;/strong&gt;&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; if (substr($requestlower.'$', 0, &lt;strong&gt;$len&lt;/strong&gt;) == $navprefix) {&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $qa_content['navigation'][$navtype][$navprefix]['selected']=true;&lt;/div&gt;
	

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

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

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

&lt;div&gt;
		}&lt;/div&gt;
&lt;/blockquote&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/41656/bug-report-selection-of-sub-navigation</guid>
<pubDate>Tue, 25 Nov 2014 22:43:57 +0000</pubDate>
</item>
<item>
<title>User can select correct answers on his asked question ?</title>
<link>https://www.question2answer.org/qa/29650/user-can-select-correct-answers-on-his-asked-question</link>
<description>

&lt;p&gt;
	I'm Super administrator of a Question2Answer site.&amp;nbsp;I'm a university professor (&lt;a href=&quot;http://wikifisc.fiscaliteuqtr.ca/&quot; rel=&quot;nofollow&quot; style=&quot;text-decoration: none; color: rgb(1, 121, 181); font-family: Helvetica, Arial, Sens-serif; line-height: 18px; background-color: rgb(250, 250, 250);&quot;&gt;http://wikiFISC.FISCALITEuqtr.ca/&lt;/a&gt;)&lt;/p&gt;


&lt;p&gt;
	I want to be the only&amp;nbsp;user with permission to select correct answers submit by users (students) in ALL Q2A base.&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;color: rgb(51, 51, 51); font-family: Helvetica, Arial, Sens-serif; line-height: 18px; background-color: rgb(250, 250, 250);&quot;&gt;Adim panel: &amp;nbsp;Admin &amp;gt; Permissions &amp;gt; Selecting answer for any question=Super Administrator:&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;color: rgb(51, 51, 51); font-family: Helvetica, Arial, Sens-serif; line-height: 18px; background-color: rgb(250, 250, 250);&quot;&gt;-This option set up to autorise type of users can select best answers ANYWHERE in the Q2A base. I know that.&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;background-color: rgb(250, 250, 250); color: rgb(51, 51, 51); font-family: Helvetica, Arial, Sens-serif; line-height: 18px;&quot;&gt;-But, anyway of that, a registrer user can always, by default, select correct answer ONLY on his home asked question (asked by him). I want to cancel this permission. I Want to NOBODY users &amp;nbsp;- NO WHERE in Q2A can select best answers exept me (Super Admin.).&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	I watching all the menu admin and don't find how do it.&lt;/p&gt;


&lt;p&gt;
	Help me please.&lt;/p&gt;


&lt;p&gt;
	I run Q&amp;amp;A &lt;a href=&quot;http://www.question2answer.org/versions.php&quot; rel=&quot;nofollow&quot; target=&quot;_top&quot;&gt;1.6.2&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;
	Thanks&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/29650/user-can-select-correct-answers-on-his-asked-question</guid>
<pubDate>Thu, 05 Dec 2013 08:20:42 +0000</pubDate>
</item>
<item>
<title>Add obligatory drop down (or radio buttom) user field without hacks?</title>
<link>https://www.question2answer.org/qa/29625/obligatory-drop-down-radio-buttom-user-field-without-hacks</link>
<description>

&lt;p&gt;
	I found this hack :&amp;nbsp;&lt;a rel=&quot;nofollow&quot; href=&quot;http://www.question2answer.org/qa/22728&quot;&gt;http://www.question2answer.org/qa/22728&lt;/a&gt;&amp;nbsp;for an extra User field with dropdown, but I really don't want to mess with the core since I'm not familiar with Q2A code yet.&lt;/p&gt;


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


&lt;p&gt;
	I want to add an obligatory user field, for my little site for the users to select on register between some choices.&lt;/p&gt;


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


&lt;p&gt;
	Is there a plugin for this? I can't find anything similar.&lt;/p&gt;


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


&lt;p&gt;
	Thanks&lt;/p&gt;</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/29625/obligatory-drop-down-radio-buttom-user-field-without-hacks</guid>
<pubDate>Wed, 04 Dec 2013 18:19:28 +0000</pubDate>
</item>
<item>
<title>Bug: Best answer button not showing up when loading comment field (via comment-state)</title>
<link>https://www.question2answer.org/qa/28771/answer-button-showing-loading-comment-field-comment-state</link>
<description>See page: &lt;a href=&quot;http://www.question2answer.org/qa/28595/best-way-to-count-total-answered-questions&quot; rel=&quot;nofollow&quot;&gt;http://www.question2answer.org/qa/28595/best-way-to-count-total-answered-questions&lt;/a&gt; Me + Admin can select the best answer.&lt;br /&gt;
&lt;br /&gt;
Trigger the page with comment load(er): &lt;a href=&quot;http://www.question2answer.org/qa/28595/best-way-to-count-total-answered-questions?state=comment-28615&quot; rel=&quot;nofollow&quot;&gt;http://www.question2answer.org/qa/28595/best-way-to-count-total-answered-questions?state=comment-28615&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Result: Best answer button is not displayed anymore.</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/28771/answer-button-showing-loading-comment-field-comment-state</guid>
<pubDate>Fri, 01 Nov 2013 07:20:36 +0000</pubDate>
</item>
<item>
<title>How to change category drop down select box to radio buttons?</title>
<link>https://www.question2answer.org/qa/28496/how-to-change-category-drop-down-select-box-to-radio-buttons</link>
<description>I tried to change Category field in 'Ask form' but couldn't do anything. I need radio buttons instead of dropdown select. I can see $field['type'] = 'select' ; in qa_set_up_category_field() function (qa-app-format.php). But it's not taking type='radio'. How can I map select field to radio?</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/28496/how-to-change-category-drop-down-select-box-to-radio-buttons</guid>
<pubDate>Wed, 23 Oct 2013 07:09:13 +0000</pubDate>
</item>
<item>
<title>Bug Report: Error at select answer</title>
<link>https://www.question2answer.org/qa/23873/bug-report-error-at-select-answer</link>
<description>

&lt;p&gt;
	If &lt;strong&gt;another answer is selected&lt;/strong&gt; as best answer, error message is displayed.&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;color: rgb(204, 0, 0); font-family: Helvetica, Arial, Sens-serif; font-size: 18px; line-height: 27px; background-color: rgb(254, 216, 216);&quot;&gt;Please click again to confirm&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	Since security code is outputted to HTML FORM, I guess&amp;nbsp;problem&amp;nbsp;inside core program.&amp;nbsp;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/23873/bug-report-error-at-select-answer</guid>
<pubDate>Wed, 15 May 2013 20:18:03 +0000</pubDate>
</item>
<item>
<title>Is there a way to allow passing &quot;multiple&quot; &lt;select&gt; fields?</title>
<link>https://www.question2answer.org/qa/13343/is-there-a-way-to-allow-passing-multiple-select-fields</link>
<description>

&lt;p&gt;
	qa-base.php has a line that throws a warning if a $_POST entry is an array:&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; foreach ($_POST as $key =&amp;gt; $value)
&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;$_POST[$key]=stripslashes($value);&lt;/p&gt;


&lt;p&gt;
	This doesn't work for a &amp;lt;select&amp;gt; field that has the &quot;multiple&quot; attribute and a name ending in [], e.g.:&lt;/p&gt;


&lt;p&gt;
	&lt;strong&gt;&amp;lt;select name=&quot;myselect[]&quot; multiple&amp;gt;&lt;/strong&gt;&lt;/p&gt;


&lt;p&gt;
	since this passes the post variable as an array:&lt;/p&gt;


&lt;p&gt;
	&lt;strong&gt;stripslashes() expects parameter 1 to be string, array given in /var/www/q2a/qa-include/qa-base.php on line 158&lt;/strong&gt;&lt;/p&gt;


&lt;p&gt;
	Any solution?&lt;/p&gt;


&lt;p&gt;
	EDIT: okay, I found one workaround, also realized it is only a problem for wordpress integration, since the above line is trying to change some wordpress behaviour.&amp;nbsp; The workaround is to add the folowing to my qa-config.php file:&lt;/p&gt;


&lt;p&gt;
	&lt;strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; foreach($_POST as $i =&amp;gt; $p)
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;if(is_array($p))
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$_POST[$i] = implode(',',$p);&lt;/strong&gt;
&lt;br&gt;
	&amp;nbsp;
&lt;br&gt;
	and then re-explode the string later.&amp;nbsp; Unfortunately, that doesn't help when creating a plugin...&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/13343/is-there-a-way-to-allow-passing-multiple-select-fields</guid>
<pubDate>Thu, 08 Mar 2012 03:37:21 +0000</pubDate>
</item>
<item>
<title>is it possible to change category select?</title>
<link>https://www.question2answer.org/qa/11937/is-it-possible-to-change-category-select</link>
<description>

&lt;p&gt;
	I want to chage category select type on ask page .&lt;/p&gt;


&lt;p&gt;
	I want to make like this style category select ;&amp;nbsp;&lt;a href=&quot;http://pleasefixtheiphone.com/problems/add/&quot; rel=&quot;nofollow&quot;&gt;http://pleasefixtheiphone.com/problems/add/&lt;/a&gt;&amp;nbsp;( but it must be just one cat. select chance )&lt;/p&gt;


&lt;p&gt;
	Ty very much ...&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/11937/is-it-possible-to-change-category-select</guid>
<pubDate>Thu, 12 Jan 2012 19:38:29 +0000</pubDate>
</item>
<item>
<title>form_select bug</title>
<link>https://www.question2answer.org/qa/9653/form_select-bug</link>
<description>Hi,&lt;br /&gt;
&lt;br /&gt;
I noticed if we add a select field on registration form, and at submit the form presents some errors (not at select field) the POST value for select field is not maintained.&lt;br /&gt;
&lt;br /&gt;
This is because of an error in form_select:&lt;br /&gt;
&lt;br /&gt;
$this-&amp;gt;output('&amp;lt;OPTION VALUE=&amp;quot;'.$tag.'&amp;quot;'.(($value==@$field['value']) ? ' SELECTED' : '').'&amp;gt;'.$value.'&amp;lt;/OPTION&amp;gt;');&lt;br /&gt;
&lt;br /&gt;
should be:&lt;br /&gt;
&lt;br /&gt;
$this-&amp;gt;output('&amp;lt;OPTION VALUE=&amp;quot;'.$tag.'&amp;quot;'.(($tag==@$field['value']) ? ' SELECTED' : '').'&amp;gt;'.$value.'&amp;lt;/OPTION&amp;gt;');</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/9653/form_select-bug</guid>
<pubDate>Sun, 09 Oct 2011 02:14:32 +0000</pubDate>
</item>
</channel>
</rss>