<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Question2Answer Q&amp;A - Recent questions tagged script</title>
<link>https://www.question2answer.org/qa/tag/script</link>
<description>Powered by Question2Answer</description>
<item>
<title>Custom html in sidebar unable to add script</title>
<link>https://www.question2answer.org/qa/65151/custom-html-in-sidebar-unable-to-add-script</link>
<description>In Layout, when I tick the option to add custom html to everypage sidebar with the following contents&lt;br /&gt;
&lt;br /&gt;
&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;(function() {var script=document.createElement(&amp;quot;script&amp;quot;);script.type=&amp;quot;text/javascript&amp;quot;;script.async =true;script.src=&amp;quot;&lt;a href=&quot;https://telegram.im/widget-button/index.php?id=@vafak&amp;quot;;document.getElementsByTagName(&amp;quot;head&amp;quot;)[0].appendChild(script);})();&amp;lt;/script&amp;gt;&quot; rel=&quot;nofollow&quot;&gt;https://telegram.im/widget-button/index.php?id=@vafak&amp;quot;;document.getElementsByTagName(&amp;quot;head&amp;quot;)[0].appendChild(script);})();&amp;lt;/script&amp;gt;&lt;/a&gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;&lt;a href=&quot;https://telegram.im/@vafak&amp;quot;&quot; rel=&quot;nofollow&quot;&gt;https://telegram.im/@vafak&amp;quot;&lt;/a&gt; target=&amp;quot;_blank&amp;quot; class=&amp;quot;telegramim_button telegramim_shadow telegramim_pulse&amp;quot; style=&amp;quot;font-size:26px;width:48px;background:#27A5E7;box-shadow:1px 1px 5px #27A5E7;color:#FFFFFF;border-radius:50px;&amp;quot; title=&amp;quot;&amp;quot;&amp;gt;&amp;lt;i&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I can not save it. Whenever, I click on save options, it takes me to the main page.</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/65151/custom-html-in-sidebar-unable-to-add-script</guid>
<pubDate>Mon, 09 Jul 2018 17:53:43 +0000</pubDate>
</item>
<item>
<title>Custom HTML - Unable to add java script</title>
<link>https://www.question2answer.org/qa/63598/custom-html-unable-to-add-java-script</link>
<description>

&lt;h1&gt;Forbidden&lt;/h1&gt;

&lt;p&gt;You don't have permission to access /Digital+Marketing+FAQ/index.php on this server.&lt;/p&gt;

&lt;p&gt;Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;Getting this error on my site , when I try to add a javascript code (Contact form code) on the add html section.&lt;/p&gt;

&lt;p&gt;I checked the permisison of index.php file and changed it to 777. But still error coming.
&lt;br&gt;All folders have permission 755 and cache folder have permission 777&lt;/p&gt;

&lt;p&gt;Please help&lt;/p&gt;

&lt;p&gt;Thank you&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/63598/custom-html-unable-to-add-java-script</guid>
<pubDate>Fri, 20 Apr 2018 00:58:01 +0000</pubDate>
</item>
<item>
<title>Easy installation with script</title>
<link>https://www.question2answer.org/qa/61783/easy-installation-with-script</link>
<description>Does a script exist that installs and configures q2a on linux ?</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/61783/easy-installation-with-script</guid>
<pubDate>Fri, 05 Jan 2018 12:54:00 +0000</pubDate>
</item>
<item>
<title>Why is createip null? Why is $_SERVER['REMOTE_ADDR'] empty?</title>
<link>https://www.question2answer.org/qa/51184/why-is-createip-null-why-is-%24_server-remote_addr-empty</link>
<description>

&lt;p&gt;I am still wondering when createip is null.&lt;/p&gt;

&lt;p&gt;function qa_remote_ip_address() is obviously creating the IP address by:&lt;/p&gt;

&lt;p&gt;return @$_SERVER['REMOTE_ADDR'];&lt;/p&gt;

&lt;p&gt;I think the function should be expanded by:&lt;/p&gt;

&lt;pre&gt;public function getRemoteIPAddress() {
    if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
        return $_SERVER['HTTP_CLIENT_IP'];

    } else if (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { 
        return $_SERVER['HTTP_X_FORWARDED_FOR'];
    }
    return $_SERVER['REMOTE_ADDR'];
}

From http://stackoverflow.com/a/19311275/1066234

To get the IP in all cases.


PS: Just stumbled over https://github.com/q2a/question2answer/pull/240 but there is no solution.

Basically: Why is the IP null?


*** Gosh, can you just add the &quot;source&quot; button to the ckeditor so we can edit/clean the html. Cannot get rid of this formatting here.
&lt;/pre&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/51184/why-is-createip-null-why-is-%24_server-remote_addr-empty</guid>
<pubDate>Wed, 06 Apr 2016 06:45:22 +0000</pubDate>
</item>
<item>
<title>The script is not working and CSS files don't work</title>
<link>https://www.question2answer.org/qa/45032/the-script-is-not-working-and-css-files-dont-work</link>
<description>

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

&lt;p&gt;I have a problem in my QA website, I hope to find a solution with you&lt;/p&gt;

&lt;p&gt;If you visit the website:&amp;nbsp;&lt;a rel=&quot;nofollow&quot; href=&quot;http://ask.dzemploi.org/&quot;&gt;http://ask.dzemploi.org/&lt;/a&gt;&amp;nbsp;&amp;nbsp;you will notice&amp;nbsp;that the CSS files don't work,&lt;/p&gt;

&lt;p&gt;I try to re instal the script and also I try to install the last version&amp;nbsp;but the problem is still the same.&lt;/p&gt;

&lt;p&gt;I hope that somone tell me what is the problem in this site&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/45032/the-script-is-not-working-and-css-files-dont-work</guid>
<pubDate>Thu, 30 Apr 2015 02:41:48 +0000</pubDate>
</item>
<item>
<title>java script problem in theme</title>
<link>https://www.question2answer.org/qa/43193/java-script-problem-in-theme</link>
<description>

&lt;p&gt;hi&lt;/p&gt;

&lt;p&gt;i try to add this java script to my qa-theme.php for typing some things :&lt;/p&gt;

&lt;blockquote&gt;

&lt;p&gt;'&amp;lt;div class=&quot;container&quot;&amp;gt;',
&lt;br&gt;'&amp;lt;!-- news --&amp;gt;',
&lt;br&gt;'&amp;lt;style type=&quot;text/css&quot;&amp;gt;#tickform a{text-decoration: none;}#tickform a:hover{text-decoration: none;}&amp;lt;/style&amp;gt;',&lt;/p&gt;

&lt;p&gt;'&amp;lt;br&amp;gt;',
&lt;br&gt;'&amp;lt;div id=&quot;tickform&quot;&amp;gt;آخرين مطالب&amp;lt;/div&amp;gt;',&lt;/p&gt;

&lt;p&gt;'&amp;lt;script language=&quot;JavaScript&quot; type=&quot;text/javascript&quot;&amp;gt;',
&lt;br&gt;'var max=0;',
&lt;br&gt;'function textlist(){',
&lt;br&gt;'max=textlist.arguments[0].length;',
&lt;br&gt;'for(i=0;i&amp;lt;max;i++)',
&lt;br&gt;'this[i]=textlist.arguments[0][i];',
&lt;br&gt;'}',
&lt;br&gt;'var pausecontent2=new Array();',
&lt;br&gt;'var pausecontent=new Array();',
&lt;br&gt;'var i=0;',
&lt;br&gt;'&amp;lt;/script&amp;gt;',
&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' &amp;lt;div class=&quot;sidebar-latest&quot;&amp;gt;',
&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;lt;ul&amp;gt;',
&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;lt;script language=&quot;JavaScript&quot; type=&quot;text/javascript&quot;&amp;gt;',
&lt;br&gt;'/*&amp;lt;![CDATA[*/',
&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; 'pausecontent2[i]=\'&amp;lt;a href=&quot;#&quot; title=&quot;برای نمایش اطلاعات تماس کلیک نمایید&quot; target=&quot;_blank&quot; &amp;gt;\';',
&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; 'pausecontent[i]=\'كليه خدمات سخت افزاري پشتيبان نوت بوك بر حسب موضوع شامل 1 تا 3 ماه ضمانت مي باشد و در فاكتور مشتري قيد مي گردد.\';',
&lt;br&gt;'i++;',
&lt;br&gt;'/*]]&amp;gt;*/',
&lt;br&gt;'&amp;lt;/script&amp;gt;',
&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;
&lt;br&gt;'&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;',
&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'pausecontent2[i]=\'&amp;lt;a href=&quot;#&quot; title=&quot;برای نمایش اطلاعات تماس کلیک نمایید&quot; target=&quot;_blank&quot; &amp;gt;\';',
&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'pausecontent[i]=\'کاربر گرامی با استفاده از بخش ثبت سوال می توانید به صورت آنلاين،مشکلات نوت بوک خود را جهت بررسي و اعلام هزينه با ما در ميان بگذاريد.\';',
&lt;br&gt;'tl=new textlist(pausecontent);',
&lt;br&gt;'var x=0;pos=0;',
&lt;br&gt;'var l=tl[0].length;',
&lt;br&gt;'function textticker(){',
&lt;br&gt;'document.getElementById(&quot;tickform&quot;).innerHTML=pausecontent2[x]+tl[x].substring(0,pos)+ &quot;_&amp;lt;/a&amp;gt;&amp;lt;div class=\&quot;clear\&quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/li&amp;gt;&quot;;',
&lt;br&gt;'if(pos++==l){',
&lt;br&gt;'pos=0;',
&lt;br&gt;'setTimeout(&quot;textticker()&quot;,2000);',
&lt;br&gt;'if(++x==max)x=0;',
&lt;br&gt;'l=tl[x].length;',
&lt;br&gt;'}else',
&lt;br&gt;'setTimeout(&quot;textticker()&quot;,250);',
&lt;br&gt;'}',
&lt;br&gt;'window.onload=textticker();',
&lt;br&gt;'&amp;lt;/script&amp;gt;',
&lt;br&gt;'&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;',
&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'pausecontent2[i]=\'&amp;lt;a href=&quot;#&quot; title=&quot;برای نمایش اطلاعات تماس کلیک نمایید&quot; target=&quot;_blank&quot; &amp;gt;\';',
&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'pausecontent[i]=\'کاربر گرامی با استفاده از بخش ثبت سوال می توانید به صورت آنلاين،مشکلات نوت بوک خود را جهت بررسي و اعلام هزينه با ما در ميان بگذاريد.\';',
&lt;br&gt;'tl=new textlist(pausecontent);',
&lt;br&gt;'var x=0;pos=0;',
&lt;br&gt;'var l=tl[0].length;',
&lt;br&gt;'function textticker(){',
&lt;br&gt;'document.getElementById(&quot;tickform&quot;).innerHTML=pausecontent2[x]+tl[x].substring(0,pos)+ &quot;_&amp;lt;/a&amp;gt;&amp;lt;div class=\&quot;clear\&quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/li&amp;gt;&quot;;',
&lt;br&gt;'if(pos++==l){',
&lt;br&gt;'pos=0;',
&lt;br&gt;'setTimeout(&quot;textticker()&quot;,2000);',
&lt;br&gt;'if(++x==max)x=0;',
&lt;br&gt;'l=tl[x].length;',
&lt;br&gt;'}else',
&lt;br&gt;'setTimeout(&quot;textticker()&quot;,250);',
&lt;br&gt;'}',
&lt;br&gt;'window.onload=textticker();',
&lt;br&gt;'&amp;lt;/script&amp;gt;',
&lt;br&gt;'&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;',
&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'pausecontent2[i]=\'&amp;lt;a href=&quot;#&quot; title=&quot;برای نمایش اطلاعات تماس کلیک نمایید&quot; target=&quot;_blank&quot; &amp;gt;\';',
&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'pausecontent[i]=\'کاربر گرامی با استفاده از بخش ثبت سوال می توانید به صورت آنلاين،مشکلات نوت بوک خود را جهت بررسي و اعلام هزينه با ما در ميان بگذاريد.\';',
&lt;br&gt;'tl=new textlist(pausecontent);',
&lt;br&gt;'var x=0;pos=0;',
&lt;br&gt;'var l=tl[0].length;',
&lt;br&gt;'function textticker(){',
&lt;br&gt;'document.getElementById(&quot;tickform&quot;).innerHTML=pausecontent2[x]+tl[x].substring(0,pos)+ &quot;_&amp;lt;/a&amp;gt;&amp;lt;div class=\&quot;clear\&quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/li&amp;gt;&quot;;',
&lt;br&gt;'if(pos++==l){',
&lt;br&gt;'pos=0;',
&lt;br&gt;'setTimeout(&quot;textticker()&quot;,2000);',
&lt;br&gt;'if(++x==max)x=0;',
&lt;br&gt;'l=tl[x].length;',
&lt;br&gt;'}else',
&lt;br&gt;'setTimeout(&quot;textticker()&quot;,250);',
&lt;br&gt;'}',
&lt;br&gt;'window.onload=textticker();',
&lt;br&gt;'&amp;lt;/script&amp;gt;',
&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;lt;/ul&amp;gt;',
&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;lt;/div&amp;gt;',
&lt;br&gt;'&amp;lt;!-- news --&amp;gt;',&lt;/p&gt;

&lt;p&gt;'&amp;lt;/div&amp;gt;',&lt;/p&gt;

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

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

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

&lt;p&gt;but when i using this script q2a cats and checkbox js has been disable&amp;nbsp;&lt;/p&gt;

&lt;p&gt;i think it is an Interference between q2a scripts and my script&lt;/p&gt;

&lt;p&gt;how can i solve it ?&lt;/p&gt;</description>
<category>Themes</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/43193/java-script-problem-in-theme</guid>
<pubDate>Sat, 24 Jan 2015 04:13:51 +0000</pubDate>
</item>
<item>
<title>Core Dev: Provide a qa-scripts.js in the theme folder for custom user scripts</title>
<link>https://www.question2answer.org/qa/41954/core-dev-provide-scripts-the-theme-folder-custom-user-scripts</link>
<description>

&lt;p&gt;
	I thought it would be a good idea to have an empty &lt;strong&gt;qa-scripts.js file in the theme folder&lt;/strong&gt; that the user can use to put his own scripts into.&lt;/p&gt;


&lt;p&gt;
	In my q2a installations I am either: writing a plugin (but sometimes too much hassle for just 3 lines of JS), or: abusing the page.js file to store the code.&lt;/p&gt;


&lt;p&gt;
	It would be great to have a save place for custom userscripts (like jquery libraries pasted into the file), just like the qa-styles.css&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/41954/core-dev-provide-scripts-the-theme-folder-custom-user-scripts</guid>
<pubDate>Fri, 05 Dec 2014 02:49:29 +0000</pubDate>
</item>
<item>
<title>script are showing as single row wise in the question post page</title>
<link>https://www.question2answer.org/qa/39540/script-are-showing-as-single-row-wise-the-question-post-page</link>
<description>

&lt;p&gt;
	When I creating my post to ask something , sometimes it may consists of programming script but those scripts are showing row wise. Its really an ugly look. That is the code part when I typed on wysiwyg editor it will showing each row wise. How can shown the whole code in an single code background.&lt;/p&gt;


&lt;p&gt;
	The screenshot is shown below&lt;/p&gt;


&lt;p&gt;
	&lt;img alt=&quot;&quot; src=&quot;http://www.question2answer.org/qa/?qa=blob&amp;amp;qa_blobid=10798399976825461068&quot;&gt;&lt;/p&gt;


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


&lt;p&gt;
	I added the particular cose snippet to my editor and saved but still it not showing correctly. The screen shot below&lt;/p&gt;


&lt;p&gt;
	&lt;img alt=&quot;&quot; src=&quot;http://www.question2answer.org/qa/?qa=blob&amp;amp;qa_blobid=16094901680949873849&quot;&gt;
&lt;br&gt;
	
&lt;br&gt;
	Thanks&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/39540/script-are-showing-as-single-row-wise-the-question-post-page</guid>
<pubDate>Tue, 14 Oct 2014 07:06:33 +0000</pubDate>
</item>
<item>
<title>add metadata/scripts on  thea &lt;head&gt; of my new custom page</title>
<link>https://www.question2answer.org/qa/33536/add-metadata-scripts-on-thea-head-of-my-new-custom-page</link>
<description>Hi! I've created a new page on Pages section from admin panel. I have put some custom html. But i Want to add a metadata, or o script &amp;nbsp;between &amp;lt;head&amp;gt;and &amp;lt;/head&amp;gt; section only &amp;nbsp;on that page. Not in all the pages&lt;br /&gt;
&lt;br /&gt;
ps: I don't have knowledge about php.</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/33536/add-metadata-scripts-on-thea-head-of-my-new-custom-page</guid>
<pubDate>Sun, 13 Apr 2014 06:17:39 +0000</pubDate>
</item>
<item>
<title>How to integrate &quot;News script php pro&quot; ?</title>
<link>https://www.question2answer.org/qa/31883/how-to-integrate-news-script-php-pro</link>
<description>Hi, &lt;br /&gt;
&lt;br /&gt;
I would like to know if is possible to integrate &amp;nbsp;News Script PHP Pro in Q2A or create a plugin to add a News. &lt;br /&gt;
&lt;br /&gt;
i try but maybe i make some mistake. You can see a demo for this script below: &lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://newsscriptphp.com/newsscriptphppro/&quot; rel=&quot;nofollow&quot;&gt;http://newsscriptphp.com/newsscriptphppro/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
If someone have an idea, welcome&lt;br /&gt;
&lt;br /&gt;
Thank you for you answer&lt;br /&gt;
&lt;br /&gt;
Cordially Claude</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/31883/how-to-integrate-news-script-php-pro</guid>
<pubDate>Fri, 14 Feb 2014 10:06:43 +0000</pubDate>
</item>
<item>
<title>Why qa-base.php is not transferring into my webserver?</title>
<link>https://www.question2answer.org/qa/28003/why-qa-base-php-is-not-transferring-into-my-webserver</link>
<description>After snooping around to find out why my website is not being displayed, I found out that one of the file, qa-base.php, is not transferring to my webserver. In fact, as soon as it is transferred, it is deleted immediately.&lt;br /&gt;
&lt;br /&gt;
Can anyone tell me why?&lt;br /&gt;
&lt;br /&gt;
Please!!!!</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/28003/why-qa-base-php-is-not-transferring-into-my-webserver</guid>
<pubDate>Sat, 05 Oct 2013 13:40:22 +0000</pubDate>
</item>
<item>
<title>Why do we use qa-body-js-off and qa-body-js-on classes?</title>
<link>https://www.question2answer.org/qa/27609/why-do-we-use-qa-body-js-off-and-qa-body-js-on-classes</link>
<description>

&lt;pre id=&quot;line1&quot;&gt;
&lt;span&gt;b.className=b.className.replace('qa-body-js-off', 'qa-body-js-on');
&lt;/span&gt;&lt;/pre&gt;


&lt;p&gt;
	&lt;span&gt;What is the reason we use this javascript on each page?&lt;/span&gt;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/27609/why-do-we-use-qa-body-js-off-and-qa-body-js-on-classes</guid>
<pubDate>Thu, 19 Sep 2013 08:33:58 +0000</pubDate>
</item>
<item>
<title>How This Iframe work ?</title>
<link>https://www.question2answer.org/qa/21703/how-this-iframe-work</link>
<description>

&lt;p&gt;
	I saw a q2a website today which use iframe and the url is followed by iframe page url&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	please tell me how this iframe work ... I need help&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	please take a look of this website&lt;/p&gt;


&lt;p&gt;
	&lt;a href=&quot;http://www.prepare4interview.com/index.php/ulink?u=https://docs.google.com/document/pub?id=16pknNp2lmU5b_G_0iperY48K27nq4FMUfcQFNDSZ7NU&quot; rel=&quot;nofollow&quot; style=&quot;text-decoration: initial; color: rgb(0, 102, 153); font-family: Helvetica, Arial, Sens-serif; line-height: 20px;&quot;&gt;http://www.prepare4interview.com/index.php/ulink?u=https://docs.google.com/document/pub?id=16pknNp2lmU5b_G_0iperY48K27nq4FMUfcQFNDSZ7NU&lt;/a&gt;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/21703/how-this-iframe-work</guid>
<pubDate>Sat, 23 Feb 2013 17:00:53 +0000</pubDate>
</item>
<item>
<title>Best way to change jquery script load / src including?</title>
<link>https://www.question2answer.org/qa/21417/best-way-to-change-jquery-script-load-src-including</link>
<description>

&lt;p&gt;
	The default way of including jquery is defined in qa-page.php frmo line 706:&lt;/p&gt;


&lt;p&gt;
	$qa_content['script_rel']=array('qa-content/jquery-1.7.2.min.js');&lt;/p&gt;


&lt;p&gt;
	..&lt;/p&gt;


&lt;p&gt;
	and results in the following HTML:&amp;nbsp;&lt;/p&gt;


&lt;pre&gt;
&lt;span style=&quot;font-size:10px;&quot;&gt;&amp;lt;&lt;span class=&quot;start-tag&quot;&gt;SCRIPT&lt;/span&gt; &lt;span class=&quot;attribute-name&quot;&gt;SRC&lt;/span&gt;=&quot;&lt;a class=&quot;attribute-value&quot; href=&quot;denied:view-source:http://www.gute-mathe-fragen.de/qa-content/jquery-1.7.2.min.js&quot; rel=&quot;nofollow&quot;&gt;./qa-content/jquery-1.7.2.min.js&lt;/a&gt;&quot; &lt;span class=&quot;attribute-name&quot;&gt;TYPE&lt;/span&gt;=&quot;&lt;a class=&quot;attribute-value&quot;&gt;text/javascript&lt;/a&gt;&quot;&amp;gt;&amp;lt;/&lt;span class=&quot;end-tag&quot;&gt;SCRIPT&lt;/span&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;


&lt;p&gt;
	
&lt;br&gt;
	However, as I do on other sites as well, I would like to load Jquery from a CDN and just fall back on the local jquery if the CDN is down, I do it like that:&lt;/p&gt;


&lt;pre&gt;
&lt;span style=&quot;font-size:10px;&quot;&gt;&amp;lt;&lt;span class=&quot;start-tag&quot;&gt;script&lt;/span&gt; &lt;span class=&quot;attribute-name&quot;&gt;src&lt;/span&gt;='&lt;a class=&quot;attribute-value&quot; href=&quot;denied:view-source:http://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js&quot; rel=&quot;nofollow&quot;&gt;http://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js&lt;/a&gt;' &lt;span class=&quot;attribute-name&quot;&gt;type&lt;/span&gt;='&lt;a class=&quot;attribute-value&quot;&gt;text/javascript&lt;/a&gt;'&amp;gt;&amp;lt;/&lt;span class=&quot;end-tag&quot;&gt;script&lt;/span&gt;&amp;gt;
&amp;lt;&lt;span class=&quot;start-tag&quot;&gt;script&lt;/span&gt; &lt;span class=&quot;attribute-name&quot;&gt;type&lt;/span&gt;='&lt;a class=&quot;attribute-value&quot;&gt;text/javascript&lt;/a&gt;'&amp;gt;window.jQuery || 
    document.write('&amp;lt;script &lt;span class=&quot;attribute-name&quot;&gt;SRC&lt;/span&gt;=&quot;&lt;a class=&quot;attribute-value&quot; href=&quot;denied:view-source:http://www.gute-mathe-fragen.de/qa-content/jquery-1.7.2.min.js&quot; rel=&quot;nofollow&quot;&gt;./qa-content/jquery-1.7.2.min.js&lt;/a&gt;&quot;&amp;gt;&amp;lt;\/script&amp;gt;')&amp;lt;/&lt;span class=&quot;end-tag&quot;&gt;script&lt;/span&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;


&lt;p&gt;
	&lt;span&gt;How can I implement this code instead of the default one?&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	&lt;span&gt;Thanks,
&lt;br&gt;
	Kai&lt;/span&gt;
&lt;br&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/21417/best-way-to-change-jquery-script-load-src-including</guid>
<pubDate>Wed, 13 Feb 2013 04:24:51 +0000</pubDate>
</item>
<item>
<title>How can this script be SEOed more?</title>
<link>https://www.question2answer.org/qa/21139/how-can-this-script-be-seoed-more</link>
<description>How can this script be SEOed more?</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/21139/how-can-this-script-be-seoed-more</guid>
<pubDate>Mon, 04 Feb 2013 02:19:24 +0000</pubDate>
</item>
<item>
<title>can i change the layouts of the Question2answer script?</title>
<link>https://www.question2answer.org/qa/18063/can-i-change-the-layouts-of-the-question2answer-script</link>
<description>i want to just keep the implementation of the script intact but change the layout of all the pages. is that possible</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/18063/can-i-change-the-layouts-of-the-question2answer-script</guid>
<pubDate>Sat, 29 Sep 2012 16:58:46 +0000</pubDate>
</item>
<item>
<title>Add users via php script - explain please!</title>
<link>https://www.question2answer.org/qa/16919/add-users-via-php-script-explain-please</link>
<description>Hi,&lt;br /&gt;
&lt;br /&gt;
could you help, how to write a script to add users?&lt;br /&gt;
I'm not really know php...&lt;br /&gt;
&lt;br /&gt;
Thanks in advance!&lt;br /&gt;
&lt;br /&gt;
Br,&lt;br /&gt;
&lt;br /&gt;
Thomas</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/16919/add-users-via-php-script-explain-please</guid>
<pubDate>Thu, 02 Aug 2012 05:33:34 +0000</pubDate>
</item>
<item>
<title>Include a piece of code on every question details page ect</title>
<link>https://www.question2answer.org/qa/16206/include-a-piece-of-code-on-every-question-details-page-ect</link>
<description>

&lt;p&gt;
	I want to use a screeen reader for my q&amp;amp;a site.
&lt;br&gt;
	
&lt;br&gt;
	I get this code from them
&lt;br&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	Insert the following script declaration somewhere between &amp;lt;head&amp;gt; and &amp;lt;/head&amp;gt;:
&lt;br&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	&amp;lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot; src=&quot;&lt;a href=&quot;http://wr.readspeaker.com/webreader/webreader.js.php?cid=NF1WC658XVEPGCI37DY0Z0UX6810G5UU&amp;quot;&amp;gt;&amp;lt;/script&quot; rel=&quot;nofollow&quot;&gt;http://wr.readspeaker.com/webreader/webreader.js.php?cid=NF1WC658XVEPGCI37DY0Z0UX6810G5UU&quot;&amp;gt;&amp;lt;/script&lt;/a&gt;&amp;gt;
&lt;br&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	The above i succeeded to do. next,&lt;/p&gt;


&lt;p&gt;
	Insert the HTML code below, at the place where you want the webReader button to appear.&lt;/p&gt;


&lt;p&gt;
	&amp;lt;a href=&quot;&lt;a href=&quot;http://wr.readspeaker.com/webreader/webreader.php?cid=NF1WC658XVEPGCI37DY0Z0UX6810G5UU&amp;amp;amp;t=web_free&amp;amp;amp;title=readspeaker&amp;amp;amp;url&quot; rel=&quot;nofollow&quot;&gt;http://wr.readspeaker.com/webreader/webreader.php?cid=NF1WC658XVEPGCI37DY0Z0UX6810G5UU&amp;amp;amp;t=web_free&amp;amp;amp;title=readspeaker&amp;amp;amp;url&lt;/a&gt;=&quot; onclick=&quot;readpage(this.href+escape(document.location.href),1); return false;&quot;&amp;gt;
&lt;br&gt;
	&amp;lt;img src=&quot;&lt;a href=&quot;http://media.readspeaker.com/images/webreader/listen_nl_nl.gif&quot; rel=&quot;nofollow&quot;&gt;http://media.readspeaker.com/images/webreader/listen_nl_nl.gif&lt;/a&gt;&quot; style=&quot;border-style: none;&quot;&amp;nbsp; title=&quot;&quot; alt=&quot;&quot; /&amp;gt;&amp;lt;/a&amp;gt;
&lt;br&gt;
	&amp;lt;div id=&quot;WR_1&quot;&amp;gt;&amp;lt;/div&amp;gt;
&lt;br&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	This above i added also from backend in sidebar. It Works caus it shows in my sidebar. almost there. next final part to make it read the questions and answers pages with a voice for people with a seeing disability i have to use this code.
&lt;br&gt;
	
&lt;br&gt;
	
&lt;br&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	If you do not want the complete page to be read you can easily control where the reading should begin and end. Add these HTML comments to your web page or your website page templates.&lt;/p&gt;


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


&lt;table&gt;
	

&lt;tbody&gt;
		

&lt;tr&gt;
			

&lt;td&gt;
				Start the reading:&lt;/td&gt;
			

&lt;td&gt;
				&lt;/td&gt;
		&lt;/tr&gt;
		

&lt;tr&gt;
			

&lt;td&gt;
				Stop the reading:&lt;/td&gt;
			

&lt;td&gt;
				&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;


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


&lt;p&gt;
	I manage to paste the code on the make pages in the backend i simply use it like this.
&lt;br&gt;
	
&lt;br&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	&amp;lt;!-- RSPEAK_START--&amp;gt;&lt;/p&gt;


&lt;p&gt;
	My about text or something&lt;/p&gt;


&lt;p&gt;
	&amp;lt;!-- RSPEAK_STOP --&amp;gt;&lt;/p&gt;


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


&lt;p&gt;
	i save the page and when someone clicks in the sidebar on the readspeaker icon from step 2 above it reads the page for them very nice.
&lt;br&gt;
	
&lt;br&gt;
	Here it comes thats a page.
&lt;br&gt;
	
&lt;br&gt;
	I need it to read the questions and answers.
&lt;br&gt;
	
&lt;br&gt;
	Ive bin looking for the php in the folder qa-include that controls that.
&lt;br&gt;
	
&lt;br&gt;
	So i wanna paste the code maybe in qa-page-questions.php&lt;/p&gt;


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


&lt;p&gt;
	like this so it reads a question and answer on the details page i mean when you click on a answer to view it.
&lt;br&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	
&lt;br&gt;
	Like this ? BREAKS UP THE site i really hope you can help me with this where to paste the start end end code so it reads on the questions details page.&lt;/p&gt;


&lt;p&gt;
	&amp;lt;!-- RSPEAK_START--&amp;gt;&lt;/p&gt;


&lt;p&gt;
	&amp;lt;?php&lt;/p&gt;


&lt;p&gt;
	/*
&lt;br&gt;
	&amp;nbsp;Question2Answer (c) Gideon Greenspan&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;a href=&quot;http://www.question2answer.org/&quot; rel=&quot;nofollow&quot;&gt;http://www.question2answer.org/&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;
&lt;br&gt;
	&amp;nbsp;File: qa-include/qa-page-questions.php
&lt;br&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;$linkparams, // extra parameters for page links
&lt;br&gt;
	&amp;nbsp;&amp;nbsp;$linkparams, // category nav params
&lt;br&gt;
	&amp;nbsp;&amp;nbsp;$favorite // has used favorited this category
&lt;br&gt;
	&amp;nbsp;);
&lt;br&gt;
	&amp;nbsp;
&lt;br&gt;
	&amp;nbsp;if (QA_ALLOW_UNINDEXED_QUERIES || !$countslugs)
&lt;br&gt;
	&amp;nbsp;&amp;nbsp;$qa_content['navigation']['sub']=qa_qs_sub_navigation($sort, $categoryslugs);&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;
&lt;br&gt;
	&amp;nbsp;return $qa_content;&lt;/p&gt;


&lt;p&gt;
	
&lt;br&gt;
	/*
&lt;br&gt;
	&amp;nbsp;Omit PHP closing tag to help avoid accidental output
&lt;br&gt;
	*/&lt;/p&gt;


&lt;p&gt;
	&amp;lt;!-- RSPEAK_STOP --&amp;gt;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/16206/include-a-piece-of-code-on-every-question-details-page-ect</guid>
<pubDate>Tue, 26 Jun 2012 13:25:01 +0000</pubDate>
</item>
<item>
<title>Will script tags (facebook, google maps) work on custompages ?</title>
<link>https://www.question2answer.org/qa/14537/will-script-tags-facebook-google-maps-work-on-custompages</link>
<description>Does somebody know if script tags work on custom pages ?</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/14537/will-script-tags-facebook-google-maps-work-on-custompages</guid>
<pubDate>Thu, 26 Apr 2012 13:39:11 +0000</pubDate>
</item>
<item>
<title>Where can i add this js code?</title>
<link>https://www.question2answer.org/qa/14489/where-can-i-add-this-js-code</link>
<description>

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


&lt;div&gt;
	I want to add this code to the &amp;nbsp;answer page &amp;nbsp; before or after the &quot;answer form&quot;,so the user can shall the question to the others.&lt;/div&gt;


&lt;div&gt;
	-----------------------------------------------------------------------&lt;/div&gt;


&lt;div&gt;
	&amp;lt;!-- JiaThis Button BEGIN --&amp;gt;&lt;/div&gt;


&lt;div&gt;
	&amp;lt;div id=&quot;jiathis_style_32x32&quot;&amp;gt;&lt;/div&gt;


&lt;div&gt;
	&amp;lt;a class=&quot;jiathis_button_qzone&quot;&amp;gt;&amp;lt;/a&amp;gt;&lt;/div&gt;


&lt;div&gt;
	&amp;lt;a class=&quot;jiathis_button_tsina&quot;&amp;gt;&amp;lt;/a&amp;gt;&lt;/div&gt;


&lt;div&gt;
	&amp;lt;a class=&quot;jiathis_button_tqq&quot;&amp;gt;&amp;lt;/a&amp;gt;&lt;/div&gt;


&lt;div&gt;
	&amp;lt;a class=&quot;jiathis_button_renren&quot;&amp;gt;&amp;lt;/a&amp;gt;&lt;/div&gt;


&lt;div&gt;
	&amp;lt;a class=&quot;jiathis_button_kaixin001&quot;&amp;gt;&amp;lt;/a&amp;gt;&lt;/div&gt;


&lt;div&gt;
	&amp;lt;a href=&quot;&lt;a href=&quot;http://www.jiathis.com/share&quot;&quot; rel=&quot;nofollow&quot;&gt;http://www.jiathis.com/share&quot;&lt;/a&gt; class=&quot;jiathis jiathis_txt jtico jtico_jiathis&quot; target=&quot;_blank&quot;&amp;gt;&amp;lt;/a&amp;gt;&lt;/div&gt;


&lt;div&gt;
	&amp;lt;a class=&quot;jiathis_counter_style&quot;&amp;gt;&amp;lt;/a&amp;gt;&lt;/div&gt;


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


&lt;div&gt;
	&amp;lt;script type=&quot;text/javascript&quot; src=&quot;&lt;a href=&quot;http://v2.jiathis.com/code/jia.js&quot;&quot; rel=&quot;nofollow&quot;&gt;http://v2.jiathis.com/code/jia.js&quot;&lt;/a&gt; charset=&quot;utf-8&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/div&gt;


&lt;div&gt;
	&amp;lt;!-- JiaThis Button END --&amp;gt;&lt;/div&gt;


&lt;div&gt;
	-----------------------------------------------------------------------&lt;/div&gt;


&lt;div&gt;
	the code often add between &amp;nbsp;&amp;lt;body&amp;gt; &amp;lt;/bord&amp;gt;&lt;/div&gt;


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


&lt;div&gt;
	Where can i add this js code?&lt;/div&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/14489/where-can-i-add-this-js-code</guid>
<pubDate>Wed, 25 Apr 2012 01:17:17 +0000</pubDate>
</item>
</channel>
</rss>