<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>

<channel>
	<title>Wordpress websites</title>
	<atom:link href="http://phpamigos.com/feed" rel="self" type="application/rss+xml" />
	<link>http://phpamigos.com</link>
	<description></description>
	<pubDate>Sat, 11 Apr 2009 23:59:14 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to prevent spam comments</title>
		<link>http://phpamigos.com/how-to-prevent-spam-comments</link>
		<comments>http://phpamigos.com/how-to-prevent-spam-comments#comments</comments>
		<pubDate>Sat, 11 Apr 2009 23:36:35 +0000</pubDate>
		<dc:creator>Navin</dc:creator>
		
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://phpamigos.com/how-to-prevent-spam-comments</guid>
		<description><![CDATA[<p>Since the installation of this <a href="http://phpmyamigos.com">Wordpress website</a>, I haven't even gotten one spam comment. The solution I came up with for this problem was quite easy.
</p>
<p>Just install this plugin:
</p>
<ul>
<li><a href="http://wordpress.org/extend/plugins/quiz">Quiz</a>
		</li>
</ul>
<p>This plugin will let you add custom (meant to be&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>Since the installation of this <a href="http://phpmyamigos.com">Wordpress website</a>, I haven't even gotten one spam comment. The solution I came up with for this problem was quite easy.
</p>
<p>Just install this plugin:
</p>
<ul>
<li><a href="http://wordpress.org/extend/plugins/quiz">Quiz</a>
		</li>
</ul>
<p>This plugin will let you add custom (meant to be <strong>as anti-spam</strong>) questions for every post you make. You can add a default question that all posts will get, or add a custom one per post. This <strong>will reduce</strong> your spam comments dramatically, because most spammers are using bots to spam <a href="http://phpmyamigos.com">Wordpress blogs</a>, using this plugin will prevent that from happening.
</p>
<p>Another good thing about this plugin is, that it <strong>will reduce</strong> the CPU usage your blog might be 'causing on any shared hosting account. </p>
]]></content:encoded>
			<wfw:commentRss>http://phpamigos.com/how-to-prevent-spam-comments/feed</wfw:commentRss>
		</item>
		<item>
		<title>How to install Piwik on Simple Machine Forums</title>
		<link>http://phpamigos.com/how-to-install-piwik-on-simple-machine-forums</link>
		<comments>http://phpamigos.com/how-to-install-piwik-on-simple-machine-forums#comments</comments>
		<pubDate>Tue, 24 Mar 2009 01:20:29 +0000</pubDate>
		<dc:creator>Navin</dc:creator>
		
		<category><![CDATA[Analytics]]></category>

		<category><![CDATA[Piwik]]></category>

		<category><![CDATA[Simple Machine Forums]]></category>

		<guid isPermaLink="false">http://phpamigos.com/?p=15</guid>
		<description><![CDATA[<p></p>
<p>A while back I was having some problems installing <a href="http://piwik.org">Piwik</a> on <a href="http://www.simplemachines.org">Simple Machine Forums</a> (<a href="http://www.simplemachines.org">SMF</a>), but I found a cool way how to add the code in any SMF installation.</p>
<p>For those who are unfamiliar with Piwik, here's a small description:</p>
<blockquote><p><strong>Piwik is a&#8230;</strong></p></blockquote>]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter" title="Piwik" src="http://phpamigos.com/images/piwik.jpg" alt="" width="570" height="130" /></p>
<p>A while back I was having some problems installing <a href="http://piwik.org">Piwik</a> on <a href="http://www.simplemachines.org">Simple Machine Forums</a> (<a href="http://www.simplemachines.org">SMF</a>), but I found a cool way how to add the code in any SMF installation.</p>
<p>For those who are unfamiliar with Piwik, here's a small description:</p>
<blockquote><p><strong>Piwik is a downloadable, open source (GPL licensed) web analytics software program. It provides you with detailed reports on your website visitors: the search engines and keywords they used, the language they speak, your popular pages… and so much more.<br />
</strong></p></blockquote>
<p>I hope this small tutorial will be very useful to you on <strong>installing Piwik</strong> on <strong>Simple Machine Forums (SMF)</strong>.</p>
<p>Just follow this steps:</p>
<ul>
<li>Create an HTML file, called e.g. <strong>piwik.html</strong></li>
<li>Go to your Piwik installation,<strong> get the code</strong> and <strong>copy it into your newly created HTML file</strong> (the code is similar to what you see below, but <strong>please</strong> do generate your own, the code below might be <strong>outdated</strong>)
<pre class="javascript">&nbsp;
&lt;a href=<span style="color: #3366CC;">&quot;http://piwik.org&quot;</span> title=<span style="color: #3366CC;">&quot;Web analytics&quot;</span> onclick=<span style="color: #3366CC;">&quot;window.open(this.href);return(false);&quot;</span>&gt;
&nbsp;
&lt;script type=<span style="color: #3366CC;">&quot;text/javascript&quot;</span>&gt;
&nbsp;
<span style="color: #003366; font-weight: bold;">var</span> pkBaseURL = <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;https:&quot;</span> == document.<span style="color: #006600;">location</span>.<span style="color: #006600;">protocol</span><span style="color: #66cc66;">&#41;</span> ? <span style="color: #3366CC;">&quot;https://SUBDOMAIN.DOMAIN.com/&quot;</span> : <span style="color: #3366CC;">&quot;http://SUBDOMAIN.DOMAIN.com/&quot;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
document.<span style="color: #000066; font-weight: bold;">write</span><span style="color: #66cc66;">&#40;</span>unescape<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;%3Cscript src='&quot;</span> + pkBaseURL + <span style="color: #3366CC;">&quot;piwik.js' type='text/javascript'%3E%3C/script%3E&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
&lt;/script&gt;
&nbsp;
&lt;script type=<span style="color: #3366CC;">&quot;text/javascript&quot;</span>&gt;
&nbsp;
&lt;!--
&nbsp;
piwik_action_name = <span style="color: #3366CC;">''</span>;
&nbsp;
piwik_idsite = <span style="color: #CC0000;">1</span>;
&nbsp;
piwik_url = pkBaseURL + <span style="color: #3366CC;">&quot;piwik.php&quot;</span>;
&nbsp;
piwik_log<span style="color: #66cc66;">&#40;</span>piwik_action_name, piwik_idsite, piwik_url<span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #009900; font-style: italic;">//--&gt;</span>
&nbsp;
&lt;/script&gt;&lt;object&gt;
&nbsp;
&lt;noscript&gt;
&nbsp;
Web analytics &lt;img src=<span style="color: #3366CC;">&quot;http://SUBDOMAIN.DOMAIN.com/piwik.php&quot;</span> style=<span style="color: #3366CC;">&quot;border:0&quot;</span> alt=<span style="color: #3366CC;">&quot;piwik&quot;</span>/&gt;
&nbsp;
&lt;<span style="color: #0066FF;">/noscript&gt;&lt;/object&gt;&lt;/</span>a&gt;
&nbsp;</pre>
<li>Upload this into <strong>Sources</strong>, you can find this folder in the root of your installation. If you installed your website in a folder called "forum", this folder will be at <strong>forum/Sources</strong>.</li>
<li>Now go into the theme folder that you are using, and open the file <strong>index.template.php</strong>. If you installed your website in a folder called "forum", the exact location of this file would then be <strong>forum/Themes/</strong>your-theme<strong>/index.template.php</strong>.</li>
<li>Search for:</li>
<pre class="php">&nbsp;
<a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a> <span style="color: #ff0000;">'
&nbsp;
&lt;/body&gt;
&nbsp;
&lt;/html&gt;'</span>;</pre>
<p>Replace with:</p>
<pre class="php"><span style="color: #808080; font-style: italic;">// Add in Piwik</span>
<span style="color: #b1b100;">require_once</span> <span style="color: #ff0000;">'piwik.html'</span>;
&nbsp;
<a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a> <span style="color: #ff0000;">'
&nbsp;
&lt;/body&gt;
&nbsp;
&lt;/html&gt;'</span>;</pre>
<li>Close and upload!</li>
</ul>
<p>If you look into the source of your webpage (any webpage) of your website, you will be seeing your <strong>Piwik analytics code</strong>.</p>
<p>Good luck!</p>
]]></content:encoded>
			<wfw:commentRss>http://phpamigos.com/how-to-install-piwik-on-simple-machine-forums/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
