<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Question2Answer Q&amp;A - Recent questions tagged for</title>
<link>https://www.question2answer.org/qa/tag/for</link>
<description>Powered by Question2Answer</description>
<item>
<title>redirect For non-www to www</title>
<link>https://www.question2answer.org/qa/111689/redirect-for-non-www-to-www</link>
<description>redirect For non-www to www&lt;br /&gt;
&lt;br /&gt;
Via .htaccess&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;vps server&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;CYBERPANEL control panel&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;I ask those with experience to advise me... Thank you in advance</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/111689/redirect-for-non-www-to-www</guid>
<pubDate>Sat, 16 Dec 2023 20:05:17 +0000</pubDate>
</item>
<item>
<title>Include static text for all How To questions</title>
<link>https://www.question2answer.org/qa/105872/include-static-text-for-all-how-to-questions</link>
<description>Is there an addition, editor, or assistant program to automatically insert static text for all the questions that I will enter the site to facilitate and speed up the writing of many questions.</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/105872/include-static-text-for-all-how-to-questions</guid>
<pubDate>Fri, 20 Jan 2023 14:00:40 +0000</pubDate>
</item>
<item>
<title>Related Ads Plugin</title>
<link>https://www.question2answer.org/qa/48281/related-ads-plugin</link>
<description>

&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I am working on a plugin and I'm stuck.&lt;/p&gt;

&lt;p&gt;I want to remodel the related Questions Plugin to a Related Ads Plugin&lt;/p&gt;

&lt;p&gt;How it works is this.&lt;/p&gt;

&lt;p&gt;Admins Create a category called Ads or Any name&lt;/p&gt;

&lt;p&gt;Questions that are ads will be put under that category.&lt;/p&gt;

&lt;p&gt;When a normal question is viewed, A query will be done to select all questions that are related to the the question being viewed from the Ads Category.&lt;/p&gt;

&lt;p&gt;This works like a keyword ads system which will later be improved .&lt;/p&gt;

&lt;p&gt;My problem is,&lt;/p&gt;

&lt;p&gt;How do I modify the the related questions query seen in qa-db-selects.php&lt;/p&gt;

&lt;p&gt;to search for title words and tags related to a particular question but from a specific category say Ads?&lt;/p&gt;

&lt;p&gt;The full related questions function is below&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;em&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt; function qa_db_related_qs_selectspec($voteuserid, $questionid, $count=null)
&lt;br&gt;/*
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Return the selectspec to retrieve the most closely related questions to $questionid, with the corresponding vote
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;made by $voteuserid (if not null). Return $count (if null, a default is used) questions. This works by looking for
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;other questions which have title words, tag words or an (exact) category in common.
&lt;br&gt;*/
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$count=isset($count) ? min($count, QA_DB_RETRIEVE_QS_AS) : QA_DB_RETRIEVE_QS_AS;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$selectspec=qa_db_posts_basic_selectspec($voteuserid);&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$selectspec['columns'][]='score';&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;// added LOG(postid)/1000000 here to ensure ordering is deterministic even if several posts have same score&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;//Query to be modified is this&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;strong&gt; &amp;nbsp;$selectspec['source'].=&quot; JOIN (SELECT postid, SUM(score)+LOG(postid)/1000000 AS score FROM ((SELECT ^titlewords.postid, LOG(#/titlecount) AS score FROM ^titlewords JOIN ^words ON ^titlewords.wordid=^words.wordid JOIN ^titlewords AS source ON ^titlewords.wordid=source.wordid WHERE source.postid=# AND titlecount&amp;lt;#) UNION ALL (SELECT ^posttags.postid, 2*LOG(#/tagcount) AS score FROM ^posttags JOIN ^words ON ^posttags.wordid=^words.wordid JOIN ^posttags AS source ON ^posttags.wordid=source.wordid WHERE source.postid=# AND tagcount&amp;lt;#) UNION ALL (SELECT ^posts.postid, LOG(#/^categories.qcount) FROM ^posts JOIN ^categories ON ^posts.categoryid=^categories.categoryid AND ^posts.type='Q' WHERE ^categories.categoryid=(SELECT categoryid FROM ^posts WHERE postid=#) AND ^categories.qcount&amp;lt;#)) x WHERE postid!=# GROUP BY postid ORDER BY score DESC LIMIT #) y ON ^posts.postid=y.postid&quot;;&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;array_push($selectspec['arguments'], QA_IGNORED_WORDS_FREQ, $questionid, QA_IGNORED_WORDS_FREQ, QA_IGNORED_WORDS_FREQ,
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$questionid, QA_IGNORED_WORDS_FREQ, QA_IGNORED_WORDS_FREQ, $questionid, QA_IGNORED_WORDS_FREQ, $questionid, $count);&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$selectspec['sortdesc']='score';&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;return $selectspec;
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;
&lt;br&gt;Any help will be appreciated. Im now learning q2a system&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/48281/related-ads-plugin</guid>
<pubDate>Mon, 05 Oct 2015 12:05:10 +0000</pubDate>
</item>
<item>
<title>How to activate approval for posts?</title>
<link>https://www.question2answer.org/qa/30967/how-to-activate-approval-for-posts</link>
<description>I have just insatalled Q2A on my website and I want that whatever questions submitted on that must go to approval through a moderator or admin first before showing on the website. I couldn't find a way for this, as visitors are posting and those posts are automatically showing on the website. &lt;br /&gt;
&lt;br /&gt;
Is there a way that those first go to get approved?</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/30967/how-to-activate-approval-for-posts</guid>
<pubDate>Fri, 24 Jan 2014 14:43:32 +0000</pubDate>
</item>
<item>
<title>Who is interested in to buy 1500 Questions Database ?</title>
<link>https://www.question2answer.org/qa/22712/who-is-interested-in-to-buy-1500-questions-database</link>
<description>

&lt;p&gt;
	if there anyone want's to buy 1500 questions database send me private message...&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;color:#ff0000;&quot;&gt;&lt;span style=&quot;background-color:#ffff00;&quot;&gt;25 questions/per dollar&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	And if there any one wants any special category questions i will also provides.
&lt;br&gt;
	
&lt;br&gt;
	Just private message me&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/22712/who-is-interested-in-to-buy-1500-questions-database</guid>
<pubDate>Sun, 31 Mar 2013 03:55:32 +0000</pubDate>
</item>
<item>
<title>How can make Custom Page for un logged users ?</title>
<link>https://www.question2answer.org/qa/22571/how-can-make-custom-page-for-un-logged-users</link>
<description>how can create a custom page with advanced theme if user is logged in show website normally &lt;br /&gt;
&lt;br /&gt;
and if user is not logged in show the custom page without header, footer and sidebar&lt;br /&gt;
&lt;br /&gt;
(means blank page or it show only that contant which we want)</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/22571/how-can-make-custom-page-for-un-logged-users</guid>
<pubDate>Sat, 23 Mar 2013 13:09:16 +0000</pubDate>
</item>
<item>
<title>can i add the ability to charge for questions?</title>
<link>https://www.question2answer.org/qa/2334/can-i-add-the-ability-to-charge-for-questions</link>
<description>can this script be adapted to charge for individual questions either with paypal and/or credit card?</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/2334/can-i-add-the-ability-to-charge-for-questions</guid>
<pubDate>Sun, 08 Aug 2010 14:02:38 +0000</pubDate>
</item>
</channel>
</rss>