<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Question2Answer Q&amp;A - Recent questions tagged function</title>
<link>https://www.question2answer.org/qa/tag/function</link>
<description>Powered by Question2Answer</description>
<item>
<title>How to get answer URL using function qa_q_path_html?</title>
<link>https://www.question2answer.org/qa/87600/how-to-get-answer-url-using-function-qa_q_path_html</link>
<description>Is there a way to get the Answer url (maybe the first answer) if we know the postid of the question? For example, $question is the postid of the question, can I use function qa_q_path_html to get the answer url?</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/87600/how-to-get-answer-url-using-function-qa_q_path_html</guid>
<pubDate>Wed, 16 Sep 2020 16:06:19 +0000</pubDate>
</item>
<item>
<title>Questions count not working on bulk upload</title>
<link>https://www.question2answer.org/qa/76130/questions-count-not-working-on-bulk-upload</link>
<description>

&lt;p&gt;I have a custom script, which bulk uploads many questions straight into Q2A database.&lt;/p&gt;

&lt;p&gt;It is working fine, except a few things.&lt;/p&gt;

&lt;ol&gt;

&lt;li&gt;question count number is not increasing (at the bottom of every page);&lt;/li&gt;

&lt;li&gt;points are not being added to question author (it can be fixed by clicking the button id admin section, which recalculates points).&lt;/li&gt;&lt;/ol&gt;

&lt;p&gt;If I create question manually it is ok, stats updates to correct number and points are added.&lt;/p&gt;

&lt;p&gt;So, there should be functions, which are called in order to update Q count and points, but I couldn't find any. Maybe someone can provide their names?&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/76130/questions-count-not-working-on-bulk-upload</guid>
<pubDate>Fri, 28 Jun 2019 09:04:43 +0000</pubDate>
</item>
<item>
<title>function qa_get_logged_in_userid()</title>
<link>https://www.question2answer.org/qa/68564/function-qa_get_logged_in_userid</link>
<description>I noticed that the function qa_get_logged_in_userid() does not work properly.&lt;br /&gt;
&lt;br /&gt;
Especially, if user logged in ticking &amp;quot;Remember Me&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
I have a plugin that check the function qa_get_logged_in_userid() in every 3 minutes adds record to a database table sending data of userid and currentime. If users is not logged in after 3 minutes the row in database will be deleted.&lt;br /&gt;
&lt;br /&gt;
I noticed that userid=1 which admin is always logged in.&lt;br /&gt;
&lt;br /&gt;
I tried close browser. Nothing change. The only thing is log out action.&lt;br /&gt;
&lt;br /&gt;
Plus, my another demo users that I remember logged in ticking &amp;nbsp;&amp;quot;Remember Me&amp;quot; also appears logged in.</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/68564/function-qa_get_logged_in_userid</guid>
<pubDate>Tue, 23 Oct 2018 15:35:57 +0000</pubDate>
</item>
<item>
<title>Is function form_number() in qa-theme-base.php specified correctly?</title>
<link>https://www.question2answer.org/qa/66192/is-function-form_number-theme-base-php-specified-correctly</link>
<description>

&lt;p&gt;In&amp;nbsp;qa-theme-base.php the&amp;nbsp;function form_number() is specified as below. Note that type is &quot;text&quot;, not &quot;number&quot;. Is this correct? there are few differences between type text and number.&lt;/p&gt;

&lt;blockquote&gt;

&lt;table&gt;

&lt;tbody&gt;

&lt;tr&gt;

&lt;td style=&quot;vertical-align:top; white-space:pre&quot;&gt;&lt;span style=&quot;color:rgb(215, 58, 73)&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:rgb(215, 58, 73)&quot;&gt;function&lt;/span&gt; &lt;span style=&quot;color:rgb(111, 66, 193)&quot;&gt;form_number&lt;/span&gt;($field, $style)&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:right; vertical-align:top; white-space:nowrap; width:50px&quot;&gt;&lt;/td&gt;

&lt;td style=&quot;vertical-align:top; white-space:pre&quot;&gt;{&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:right; vertical-align:top; white-space:nowrap; width:50px&quot;&gt;&lt;/td&gt;

&lt;td style=&quot;vertical-align:top; white-space:pre&quot;&gt;$this&lt;span style=&quot;color:rgb(215, 58, 73)&quot;&gt;-&amp;gt;&lt;/span&gt;output(&lt;span style=&quot;color:rgb(3, 47, 98)&quot;&gt;'&amp;lt;input '&lt;/span&gt; &lt;span style=&quot;color:rgb(215, 58, 73)&quot;&gt;.&lt;/span&gt; &lt;span style=&quot;color:rgb(215, 58, 73)&quot;&gt;@&lt;/span&gt;$field[&lt;span style=&quot;color:rgb(3, 47, 98)&quot;&gt;'tags'&lt;/span&gt;] &lt;span style=&quot;color:rgb(215, 58, 73)&quot;&gt;.&lt;/span&gt; &lt;span style=&quot;color:rgb(3, 47, 98)&quot;&gt;' type=&quot;text&quot; value=&quot;'&lt;/span&gt; &lt;span style=&quot;color:rgb(215, 58, 73)&quot;&gt;.&lt;/span&gt; &lt;span style=&quot;color:rgb(215, 58, 73)&quot;&gt;@&lt;/span&gt;$field[&lt;span style=&quot;color:rgb(3, 47, 98)&quot;&gt;'value'&lt;/span&gt;] &lt;span style=&quot;color:rgb(215, 58, 73)&quot;&gt;.&lt;/span&gt; &lt;span style=&quot;color:rgb(3, 47, 98)&quot;&gt;'&quot; class=&quot;qa-form-'&lt;/span&gt; &lt;span style=&quot;color:rgb(215, 58, 73)&quot;&gt;.&lt;/span&gt; $style &lt;span style=&quot;color:rgb(215, 58, 73)&quot;&gt;.&lt;/span&gt; &lt;span style=&quot;color:rgb(3, 47, 98)&quot;&gt;'-number&quot;/&amp;gt;'&lt;/span&gt;);&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt;

&lt;td style=&quot;text-align:right; vertical-align:top; white-space:nowrap; width:50px&quot;&gt;&lt;/td&gt;

&lt;td style=&quot;vertical-align:top; white-space:pre&quot;&gt;}&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/blockquote&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/66192/is-function-form_number-theme-base-php-specified-correctly</guid>
<pubDate>Sun, 12 Aug 2018 18:54:41 +0000</pubDate>
</item>
<item>
<title>erorr function split()  in php 7 in q2a 1.8</title>
<link>https://www.question2answer.org/qa/62793/erorr-function-split-in-php-7-in-q2a-1-8</link>
<description>

&lt;p&gt;&lt;span style=&quot;color:#FF0000&quot;&gt;&lt;span style=&quot;font-size:20px&quot;&gt;How to fix this problem ?&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;blockquote&gt;

&lt;p&gt;&lt;strong&gt;Fatal error&lt;/strong&gt;&lt;span style=&quot;color:rgb(0, 0, 0); font-family:times; font-size:medium&quot;&gt;: Uncaught Error: Call to undefined function split() in /home/ariapadw/public_html/ask/qa-include/qa-base.php(725) : eval()'d code:9 Stack trace: #0 /home/ariapadw/public_html/ask/qa-include/qa-base.php(725) : eval()'d code(74): gregorian_to_jalaliq2a('1519984652') #1 /home/ariapadw/public_html/ask/qa-include/qa-base.php(761): qa_when_to_html_override_1_in_gregorian2jalali_overrides_php('1519984652', '7') #2 /home/ariapadw/public_html/ask/qa-include/qa-base.php(822): qa_call('qa_when_to_html...', Array) #3 /home/ariapadw/public_html/ask/qa-include/app/format.php(780): qa_call_override('qa_when_to_html', Array) #4 /home/ariapadw/public_html/ask/qa-include/app/format.php(581): qa_when_to_html('1519984652', '7') #5 /home/ariapadw/public_html/ask/qa-include/app/format.php(826): qa_post_html_fields(Array, 1, NULL, Array, NULL, Array) #6 /home/ariapadw/public_html/ask/qa-include/app/format.php(986): qa_other_to_q_html_fields(Array, 1, NULL, Array, NULL, Array) #7 /home/ariapadw/public_html/ask/qa-include/app/q-list.p in&amp;nbsp;&lt;/span&gt;&lt;strong&gt;/home/ariapadw/public_html/ask/qa-include/qa-base.php(725) : eval()'d code&lt;/strong&gt;&lt;span style=&quot;color:rgb(0, 0, 0); font-family:times; font-size:medium&quot;&gt;&amp;nbsp;on line&amp;nbsp;&lt;/span&gt;&lt;strong&gt;9&lt;/strong&gt;&lt;/p&gt;&lt;/blockquote&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/62793/erorr-function-split-in-php-7-in-q2a-1-8</guid>
<pubDate>Sat, 10 Mar 2018 13:56:16 +0000</pubDate>
</item>
<item>
<title>Citation function ?</title>
<link>https://www.question2answer.org/qa/46211/citation-function</link>
<description>I want my q2a to be more forum style so i'm looking to add cite function so when user clicks &amp;quot;cite&amp;quot;, cited text with citation tags are added to answer.</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/46211/citation-function</guid>
<pubDate>Wed, 01 Jul 2015 13:29:21 +0000</pubDate>
</item>
<item>
<title>How do I add a mysql stored procedure / function?</title>
<link>https://www.question2answer.org/qa/43694/how-do-i-add-a-mysql-stored-procedure-function</link>
<description>

&lt;p&gt;&lt;span style=&quot;font-family:helvetica,arial,sans-serif; font-size:14px&quot;&gt;I'm looking at updating a mysql query in the function qa_db_qs_selectspec. I need the query to call a stored mysql procedure / function - calling it is not a proble, but where/how do I define the procedure in this function?&lt;/span&gt;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/43694/how-do-i-add-a-mysql-stored-procedure-function</guid>
<pubDate>Mon, 09 Feb 2015 10:14:16 +0000</pubDate>
</item>
<item>
<title>Compatibility issue of Q2A V1.7-beta</title>
<link>https://www.question2answer.org/qa/42382/compatibility-issue-of-q2a-v1-7-beta</link>
<description>Two functions in qa-filter-basic.php were deleted in Q2A V1.7-beta. Users who are using these functions will lost compatibility. You need to create the same function in your addon. This is ridiculous.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://github.com/q2a/question2answer/issues/182&quot; rel=&quot;nofollow&quot;&gt;https://github.com/q2a/question2answer/issues/182&lt;/a&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/42382/compatibility-issue-of-q2a-v1-7-beta</guid>
<pubDate>Sun, 21 Dec 2014 18:27:13 +0000</pubDate>
</item>
<item>
<title>When to use function qa_db_select_with_pending() ?</title>
<link>https://www.question2answer.org/qa/34084/when-to-use-function-qa_db_select_with_pending</link>
<description>

&lt;p&gt;
	From qa-db-selects.php it can be read:&lt;/p&gt;


&lt;p&gt;
	&lt;em&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Return the results of all the SELECT operations specified by the supplied selectspec parameters, while also
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;performing all pending selects that have not yet been executed. If only one parameter is supplied, return its
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;result, otherwise return an array of results indexed as per the parameters.&lt;/em&gt;
&lt;br&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	Can somebody clarify when we should use this function?&lt;/p&gt;


&lt;p&gt;
	Thanks
&lt;br&gt;
	Kai&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/34084/when-to-use-function-qa_db_select_with_pending</guid>
<pubDate>Tue, 29 Apr 2014 08:43:15 +0000</pubDate>
</item>
<item>
<title>CSS problems due to function a_selection($post) - in q2a v1.6.3</title>
<link>https://www.question2answer.org/qa/32311/css-problems-due-to-function-a_selection-%24post-in-q2a-v1-6-3</link>
<description>

&lt;p&gt;
	@Scott - one problem caused by core:&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&amp;nbsp; function a_selection($post) is always outputting:&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&amp;nbsp; $this-&amp;gt;output('&lt;strong&gt;&amp;lt;div class=&quot;qa-a-selection&quot;&amp;gt;&lt;/strong&gt;');&lt;/p&gt;


&lt;p&gt;
	For my current theme I have to use CSS to target .qa-a-selection (and there is no other way around) for answers that have not been selected yet.&lt;/p&gt;


&lt;p&gt;
	Problem is, because the core always outputs .qa-a-selection, that I cannot style this field adding an :after element. Then even the answers that users cannot select, get the after element.&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	Solution: Only output qa-a-selection if the user can do the selection (sounds logical to me).&lt;/p&gt;


&lt;p&gt;
	Greetings,
&lt;br&gt;
	Kai&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/32311/css-problems-due-to-function-a_selection-%24post-in-q2a-v1-6-3</guid>
<pubDate>Tue, 25 Feb 2014 06:17:04 +0000</pubDate>
</item>
<item>
<title>Installation Bug in  qa_start_session() Function</title>
<link>https://www.question2answer.org/qa/29954/installation-bug-in-qa_start_session-function</link>
<description>

&lt;p&gt;
	Hi Q2A Team.&lt;/p&gt;


&lt;p&gt;
	I'm going to use your Q2A script and for this i downloaded the lastest persian version from&amp;nbsp;&lt;a href=&quot;http://question2answer-farsi.com&quot; rel=&quot;nofollow&quot;&gt;http://question2answer-farsi.com&lt;/a&gt; (because my language is persian) and then upload it in my host, set the database information in config.php then I typed my web adress to setup it.&lt;/p&gt;


&lt;div&gt;
	Normaly and according to the installation help&amp;nbsp;I created a&lt;span style=&quot;font-family: Consolas, Lucida Console, monospace;&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;Super Administrator&amp;nbsp;with a correct email adress.&lt;/div&gt;


&lt;div&gt;
	web i clicked in Create Super Administrator button i see this errors.I tested the English version that I downloaded in this site and I see this errors,too.:&lt;/div&gt;


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


&lt;div&gt;
	

&lt;div&gt;
		&lt;span style=&quot;color:#ff0000;&quot;&gt;&lt;strong&gt;Warning&lt;/strong&gt;: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at &lt;strong&gt;/home/[user]/public_html/support/qa-include/qa-install.php:50) &lt;/strong&gt;in&lt;strong&gt; /home/[user]/public_html/support/qa-include/qa-app-users.php&lt;/strong&gt; on line 150&lt;/span&gt;&lt;/div&gt;
	

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

&lt;div&gt;
		&lt;span style=&quot;color:#ff0000;&quot;&gt;&lt;strong&gt;Warning&lt;/strong&gt;: Cannot modify header information - headers already sent by (output started at &lt;strong&gt;/home/[user]/public_html/support/qa-include/qa-install.php:50)&lt;/strong&gt; in&lt;strong&gt; /home/[user]/public_html/support/qa-include/qa-app-users.php&lt;/strong&gt; on line 187&lt;/span&gt;&lt;/div&gt;
	

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

&lt;div&gt;
		Apparently the&amp;nbsp;Installation runed &amp;nbsp;successfully, But when i going to admin panel and I want to change the site title or language or etc. this actions isn't runed and the browser shows an error like &quot;This webpage is not available&quot;.&lt;/div&gt;
	

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

&lt;div&gt;
		&lt;span style=&quot;color:#ff0000;&quot;&gt;And important of all is:&amp;nbsp;&lt;/span&gt;My web hosting server for this actions BLOCKED my IP adress and i can't access my web site untill turnoff/on my ADSL modem for some time to change my IP adress.&lt;/div&gt;
	

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

&lt;div&gt;
		I&amp;nbsp;Please from you to solve this problem because this is a big bug in your script.&lt;/div&gt;
	

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

&lt;div&gt;
		Thank you very much&lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;
	&lt;span style=&quot;color:#0000ff;&quot;&gt;&lt;span style=&quot;font-size:16px;&quot;&gt;Mahdi&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	&lt;a href=&quot;http://www.sayrena.ir&quot; rel=&quot;nofollow&quot;&gt;http://www.sayrena.ir&lt;/a&gt;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/29954/installation-bug-in-qa_start_session-function</guid>
<pubDate>Mon, 16 Dec 2013 12:26:01 +0000</pubDate>
</item>
<item>
<title>Cannot override function vote_count($post) in advanced theme?</title>
<link>https://www.question2answer.org/qa/28880/cannot-override-function-vote_count-%24post-advanced-theme</link>
<description>

&lt;p&gt;
	I tried to override function vote_count without effect, you might want to try it yourself:&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; function vote_count($post) {
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$this-&amp;gt;output('&amp;lt;p&amp;gt;Test&amp;lt;/p&amp;gt;');
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;qa_html_theme_base::vote_count($post);
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;
	
&lt;br&gt;
	My goal is to &lt;strong&gt;dispaly the users who voted publicly. &lt;/strong&gt;&lt;/p&gt;


&lt;p&gt;
	I guess the override in qa-layer-voters-flaggers.php / function vote_count($post) is interfering somehow...&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/28880/cannot-override-function-vote_count-%24post-advanced-theme</guid>
<pubDate>Wed, 06 Nov 2013 05:21:45 +0000</pubDate>
</item>
<item>
<title>What is function calc_quality() for?</title>
<link>https://www.question2answer.org/qa/28313/what-is-function-calc_quality-for</link>
<description>What is that for?&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;function calc_quality($content, $format)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&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;if ($format=='html')&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;return 1.0;&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;elseif ($format=='')&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;return 0.8;&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;else&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;return 0;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/28313/what-is-function-calc_quality-for</guid>
<pubDate>Thu, 17 Oct 2013 17:00:26 +0000</pubDate>
</item>
<item>
<title>How to put variable or function inside $this-&gt;output or html??</title>
<link>https://www.question2answer.org/qa/27445/how-to-put-variable-or-function-inside-%24this-output-or-html</link>
<description>

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


&lt;div&gt;
	

&lt;div&gt;
		I am thinking this is probably a syntax error?. &amp;nbsp;Basically all I want to do is put the search bar inside another div that is inside the login-bar div.&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;
		This is shortened version of the code&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;blockquote&gt;
			

&lt;div&gt;
				&lt;span style=&quot;color:#008080;&quot;&gt;&lt;span style=&quot;font-size:14px;&quot;&gt;function body_header()&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
			

&lt;div&gt;
				&lt;span style=&quot;color:#008080;&quot;&gt;&lt;span style=&quot;font-size:14px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
			

&lt;div&gt;
				&lt;span style=&quot;color:#008080;&quot;&gt;&lt;span style=&quot;font-size:14px;&quot;&gt;$this-&amp;gt;output('&amp;lt;div id=&quot;qa-login-bar&quot;&amp;gt;&amp;lt;div id=&quot;qa-login-group&quot;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
			

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

&lt;div&gt;
				&lt;span style=&quot;color:#008080;&quot;&gt;&lt;span style=&quot;font-size:14px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;$this-&amp;gt;output ('&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
			

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

&lt;div&gt;
				&lt;span style=&quot;color:#008080;&quot;&gt;&lt;span style=&quot;font-size:14px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
			

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

&lt;div&gt;
				&lt;span style=&quot;color:#008080;&quot;&gt;&lt;span style=&quot;font-size:14px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$this-&amp;gt;search();&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
			

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

&lt;div&gt;
				&lt;span style=&quot;color:#008080;&quot;&gt;&lt;span style=&quot;font-size:14px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
			

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

&lt;div&gt;
				&lt;span style=&quot;color:#008080;&quot;&gt;&lt;span style=&quot;font-size:14px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
			

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

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

&lt;div&gt;
				&lt;span style=&quot;color:#008080;&quot;&gt;&lt;span style=&quot;font-size:14px;&quot;&gt;&amp;nbsp;$this-&amp;gt;output('&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
			

&lt;div&gt;
				&lt;span style=&quot;color:#008080;&quot;&gt;&lt;span style=&quot;font-size:14px;&quot;&gt;&amp;nbsp;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
		&lt;/blockquote&gt;
	&lt;/div&gt;
&lt;/div&gt;


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


&lt;p&gt;
	When I do this, I get a blank page. &amp;nbsp;Any suggestions of what I'm doing wrong? t/y&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/27445/how-to-put-variable-or-function-inside-%24this-output-or-html</guid>
<pubDate>Tue, 10 Sep 2013 05:25:07 +0000</pubDate>
</item>
<item>
<title>Can't override sidepanel() function in custom theme (v1.6.1)</title>
<link>https://www.question2answer.org/qa/25634/cant-override-sidepanel-function-in-custom-theme-v1-6-1</link>
<description>

&lt;div&gt;
	Hi,&lt;/div&gt;


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


&lt;div&gt;
	I have a problem with overriding the sidepanel() function in custom theme for v1.6.1. Namely, after I copy the function sidepanel() from /qa-include/qa-theme-base.php (without any modification), I get the following error on site reload:&lt;/div&gt;


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


&lt;div&gt;
	&lt;strong&gt;&quot;Fatal error: Cannot redeclare qa_html_theme::sidepanel() in /xxx/qa-theme/customtheme/qa-theme.php on line xxx&quot;&lt;/strong&gt;&lt;/div&gt;


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


&lt;div&gt;
	All other function work except this one. Has anyone experienced similar issue?&lt;/div&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/25634/cant-override-sidepanel-function-in-custom-theme-v1-6-1</guid>
<pubDate>Tue, 16 Jul 2013 08:18:18 +0000</pubDate>
</item>
<item>
<title>How to call qa_opt() from overrided qa_lang()</title>
<link>https://www.question2answer.org/qa/23266/how-to-call-qa_opt-from-overrided-qa_lang</link>
<description>I would like to know code of override plugin for avoiding dynamic loop when call qa_opt() in overrided qa_lang().&lt;br /&gt;
&lt;br /&gt;
Aren't there those who have the experience which developed plugin which carries out override of qa_lang?&lt;br /&gt;
&lt;br /&gt;
Best regards.</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/23266/how-to-call-qa_opt-from-overrided-qa_lang</guid>
<pubDate>Fri, 19 Apr 2013 03:23:53 +0000</pubDate>
</item>
<item>
<title>How to override functions</title>
<link>https://www.question2answer.org/qa/22234/how-to-override-functions</link>
<description>

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


&lt;blockquote&gt;
	

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

&lt;pre style=&quot;color: rgb(0, 119, 0); font-size: 14px; line-height: 21px;&quot;&gt;
So just to test it out, from here&amp;nbsp;&lt;span style=&quot;font-family: Arial, Verdana, sans-serif;&quot;&gt;http://www.question2answer.org/themes.php#theme 

I &lt;/span&gt;&lt;span style=&quot;font-family: Arial, Verdana, sans-serif;&quot;&gt;copy and pasted the example code to override functions...&lt;/span&gt;&lt;/pre&gt;
	

&lt;pre style=&quot;color: rgb(0, 119, 0); font-size: 14px; line-height: 21px;&quot;&gt;

		function nav_user_search() // reverse order from qa_html                _theme_base
		{
			$this-&amp;gt;search();
			$this-&amp;gt;nav('user');
		}&lt;/pre&gt;
	

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

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

&lt;p&gt;
		But it didn't change anything. &amp;nbsp;What gives? What am I doing wrong. &amp;nbsp;Thanks for any help.&lt;/p&gt;
&lt;/blockquote&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/22234/how-to-override-functions</guid>
<pubDate>Fri, 15 Mar 2013 07:42:10 +0000</pubDate>
</item>
<item>
<title>Fatal error: Call to undefined function qa_page_q_click_q_check_code() in?</title>
<link>https://www.question2answer.org/qa/21772/fatal-undefined-function-qa_page_q_click_q_check_code</link>
<description>

&lt;p&gt;
	&lt;b style=&quot;color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: medium;&quot;&gt;Fatal error&lt;/b&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: medium;&quot;&gt;: Call to undefined function qa_page_q_click_q_check_code() in&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: medium;&quot;&gt;/home/surakz5/public_html/qa-include/qa-page-question-post.php&lt;/b&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: medium;&quot;&gt;&amp;nbsp;on line&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: medium;&quot;&gt;107&lt;/b&gt;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/21772/fatal-undefined-function-qa_page_q_click_q_check_code</guid>
<pubDate>Tue, 26 Feb 2013 05:10:26 +0000</pubDate>
</item>
<item>
<title>How to trigger javascript function on answer text after submitting the Answer?</title>
<link>https://www.question2answer.org/qa/21384/trigger-javascript-function-answer-after-submitting-answer</link>
<description>

&lt;p&gt;
	For the answer button I see the following HTML:&lt;/p&gt;


&lt;pre id=&quot;line1&quot;&gt;
&lt;span style=&quot;color:#000080;&quot;&gt;&amp;lt;&lt;span class=&quot;start-tag&quot;&gt;INPUT&lt;/span&gt; &lt;span class=&quot;attribute-name&quot;&gt;onClick&lt;/span&gt;=&quot;&lt;/span&gt;&lt;a class=&quot;attribute-value&quot;&gt;&lt;span style=&quot;color:#000080;&quot;&gt;qa_ckeditor_a_content.updateElement(); 
return qa_submit_answer(21352, this);&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color:#000080;&quot;&gt;&quot; 
&lt;span class=&quot;attribute-name&quot;&gt;VALUE&lt;/span&gt;=&quot;&lt;/span&gt;&lt;a class=&quot;attribute-value&quot;&gt;&lt;span style=&quot;color:#000080;&quot;&gt;Add answer&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color:#000080;&quot;&gt;&quot; 
&lt;span class=&quot;attribute-name&quot;&gt;TITLE&lt;/span&gt;=&quot;&quot; &lt;span class=&quot;attribute-name&quot;&gt;TYPE&lt;/span&gt;=&quot;&lt;/span&gt;&lt;a class=&quot;attribute-value&quot;&gt;&lt;span style=&quot;color:#000080;&quot;&gt;submit&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color:#000080;&quot;&gt;&quot; 
&lt;span class=&quot;attribute-name&quot;&gt;CLASS&lt;/span&gt;=&quot;&lt;/span&gt;&lt;a class=&quot;attribute-value&quot;&gt;&lt;span style=&quot;color:#000080;&quot;&gt;qa-form-tall-button qa-form-tall-button-answer&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color:#000080;&quot;&gt;&quot;&amp;gt;&lt;/span&gt;&lt;/pre&gt;


&lt;p&gt;
	&lt;span&gt;Checking the javascript files I find &lt;/span&gt;&lt;strong&gt;function qa_submit_answer(questionid, elem)&lt;/strong&gt; in &lt;strong&gt;qa-question.js&lt;/strong&gt;&lt;/p&gt;


&lt;p&gt;
	Now I need to know where I can insert my custom javascript function that gets triggered after the answer has been sent, and the &lt;strong&gt;answer text is set.&lt;/strong&gt; I have to access the text from the answer.&lt;/p&gt;


&lt;p&gt;
	Thanks,
&lt;br&gt;
	Kai&lt;/p&gt;


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


&lt;p&gt;
	&lt;strong&gt;PS:&lt;/strong&gt; When editing the entire load is reloaded. Why not for the answer?&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/21384/trigger-javascript-function-answer-after-submitting-answer</guid>
<pubDate>Tue, 12 Feb 2013 11:51:49 +0000</pubDate>
</item>
<item>
<title>Overiding Function: Reopened The Question</title>
<link>https://www.question2answer.org/qa/21060/overiding-function-reopened-the-question</link>
<description>Ah! actually today itself I again got the same issue. When I was working on new plugin and found issue again. Means call back function of course works but overriding creating an isue.&lt;br /&gt;
&lt;br /&gt;
You, Me and may other facing the same issue and trying to solve it but what I believe this may be like this as when we are overriding function and not calling back so it is completely ignoring the core function and same way in other pluigns too.&lt;br /&gt;
&lt;br /&gt;
May be need some WP type add_action and add_filter API. This is just only suggestion</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/21060/overiding-function-reopened-the-question</guid>
<pubDate>Fri, 01 Feb 2013 11:31:42 +0000</pubDate>
</item>
</channel>
</rss>