<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Question2Answer Q&amp;A - Recent questions tagged parameters</title>
<link>https://www.question2answer.org/qa/tag/parameters</link>
<description>Powered by Question2Answer</description>
<item>
<title>Is exist an array indice for question url?</title>
<link>https://www.question2answer.org/qa/19921/is-exist-an-array-indice-for-question-url</link>
<description>Question's postid, title vb. may get as $params['postid'].&lt;br /&gt;
Is exist an array indice for question url such as $params['url'] or $params['link']?</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/19921/is-exist-an-array-indice-for-question-url</guid>
<pubDate>Mon, 17 Dec 2012 12:11:01 +0000</pubDate>
</item>
<item>
<title>Tip: How to parse the params from qa_eventlog</title>
<link>https://www.question2answer.org/qa/18919/tip-how-to-parse-the-params-from-qa_eventlog</link>
<description>

&lt;p&gt;
	I found a nice &quot;workaround&quot; that will help other plugin developers that need to parse the parameters (column &lt;strong&gt;params&lt;/strong&gt;) from table &lt;strong&gt;qa_eventlog&lt;/strong&gt; to an associative array:&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;font-family:lucida sans unicode,lucida grande,sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;$queryRecentEvents = mysql_query(&quot;SELECT datetime,ipaddress,handle,event,params
&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; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM `qa_eventlog`
&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; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE datetime &amp;gt; NOW() - INTERVAL 8 HOUR
&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; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ORDER BY datetime DESC
&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;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;);
&lt;br&gt;
	while($row = mysql_fetch_assoc($queryRecentEvents)) {
&lt;br&gt;
	
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;// convert tab jumps to &amp;amp; to be able to use query function&lt;/span&gt;
&lt;br&gt;
	&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; $toURL = str_replace(&quot;\t&quot;,&quot;&amp;amp;&quot;,$row['params']);&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;font-family:lucida sans unicode,lucida grande,sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; // parse as URL
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; parse_str($toURL, $data);&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;font-family:lucida sans unicode,lucida grande,sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; // access keys in array
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; $postid = $data['postid'];&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;font-family:lucida sans unicode,lucida grande,sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; // ... do what you like&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;font-family:lucida sans unicode,lucida grande,sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/18919/tip-how-to-parse-the-params-from-qa_eventlog</guid>
<pubDate>Mon, 05 Nov 2012 04:16:33 +0000</pubDate>
</item>
<item>
<title>Why do I see &quot;Most votes&quot; button?</title>
<link>https://www.question2answer.org/qa/15489/why-do-i-see-most-votes-button</link>
<description>I switched off the function &amp;quot;votes&amp;quot; in my admin panel and saved the changes. So why do I see &amp;quot;Most votes&amp;quot; button when I push &amp;quot;Questions&amp;quot;? How could it be hidden?</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/15489/why-do-i-see-most-votes-button</guid>
<pubDate>Wed, 30 May 2012 02:52:50 +0000</pubDate>
</item>
<item>
<title>How do i pass data using a question button ?</title>
<link>https://www.question2answer.org/qa/11850/how-do-i-pass-data-using-a-question-button</link>
<description>I want to add a button to questions , and let the button pass my post_id(later same code will be sued for answers).&lt;br /&gt;
&lt;br /&gt;
I do all this in my layer class.&lt;br /&gt;
&lt;br /&gt;
I add a button, with : &amp;nbsp;&amp;nbsp;'tags' =&amp;gt; 'NAME=&amp;quot;action_name&amp;quot; ID=&amp;quot;1&amp;quot; ' . &amp;nbsp;The button shows correctly.&lt;br /&gt;
&lt;br /&gt;
I then add :&lt;br /&gt;
&lt;br /&gt;
function doctype(){&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (qa_clicked('action_name'){&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;qa_redirect(qa_post_text('ID')); &amp;nbsp;&amp;nbsp;//tried this is also with qa_get('ID')&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
But this doesn't work.&lt;br /&gt;
&lt;br /&gt;
I tried writing the qa_clicked in qa-plugin but there's no access to qa functions , and i looked in other plugins and it's okay to use qa_clicked inside layers.&lt;br /&gt;
&lt;br /&gt;
How do i read the ID parameter from the qa_clicked function ?</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/11850/how-do-i-pass-data-using-a-question-button</guid>
<pubDate>Mon, 09 Jan 2012 18:28:09 +0000</pubDate>
</item>
</channel>
</rss>