<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Question2Answer Q&amp;A - Recent questions tagged qa_lang_html</title>
<link>https://www.question2answer.org/qa/tag/qa_lang_html</link>
<description>Powered by Question2Answer</description>
<item>
<title>$themeobject-&gt;output throws question mark when qa_lang_html() is given</title>
<link>https://www.question2answer.org/qa/16180/%24themeobject-output-throws-question-mark-qa_lang_html-given</link>
<description>

&lt;p&gt;
	Maybe a bug or maybe I am doing something wrong?&lt;/p&gt;


&lt;p&gt;
	Within function &lt;strong&gt;output_widget(...)&lt;/strong&gt; I read the language string and save it with data in a loop:&lt;/p&gt;


&lt;p&gt;
	foreach
&lt;br&gt;
	$bestusers .= DATA . &lt;strong&gt;qa_lang_html&lt;/strong&gt;('qa_best_users_per_month/points');&lt;/p&gt;


&lt;p&gt;
	then I use:&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $themeobject-&amp;gt;output('&amp;lt;div id=&quot;bestusers&quot;&amp;gt;');
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $themeobject-&amp;gt;output( $bestusers );
&lt;br&gt;
	
&lt;br&gt;
	This returns the entire $bestusers (including the language string), however, in the very beginning there is a question mark!&lt;/p&gt;


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


&lt;p&gt;
	I can &lt;span style=&quot;text-decoration: underline;&quot;&gt;only see&lt;/span&gt; the question mark if I copy the HTML from my site, and paste it into a text editor - invisible char? weird!&lt;/p&gt;


&lt;p&gt;
	&amp;lt;DIV CLASS=&quot;qa-widget-side qa-widget-side-high&quot;&amp;gt;
&lt;br&gt;
	&lt;span style=&quot;color:#ff0000;&quot;&gt;&lt;strong&gt;?&lt;/strong&gt;&lt;/span&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;lt;div id=&quot;bestusers&quot;&amp;gt;&lt;/p&gt;


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


&lt;p&gt;
	## Could it be that &lt;strong&gt;qa_lang_html&lt;/strong&gt; wants to output immediately? But how can I then store the language string within the loop?&lt;/p&gt;


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


&lt;p&gt;
	PS: I use the same code for a custom page, there it works &lt;em&gt;with $qa_content['custom'.++$c]=...&lt;/em&gt; without the question mark, strange.&lt;/p&gt;</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/16180/%24themeobject-output-throws-question-mark-qa_lang_html-given</guid>
<pubDate>Mon, 25 Jun 2012 08:18:41 +0000</pubDate>
</item>
</channel>
</rss>