<?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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Eddie On Everything &#187; phpbb3 administration</title>
	<atom:link href="http://www.eddieoneverything.com/tag/phpbb3-administration/feed" rel="self" type="application/rss+xml" />
	<link>http://www.eddieoneverything.com</link>
	<description>Tips &#38; tricks on things that interest me</description>
	<lastBuildDate>Wed, 11 Jan 2012 08:29:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to Make phpbb3 Forum Links Automatically rel=&#8221;nofollow&#8221;</title>
		<link>http://www.eddieoneverything.com/articles/how-to-make-phpbb3-forum-links-automatically-relnofollow.php</link>
		<comments>http://www.eddieoneverything.com/articles/how-to-make-phpbb3-forum-links-automatically-relnofollow.php#comments</comments>
		<pubDate>Fri, 30 Apr 2010 14:55:09 +0000</pubDate>
		<dc:creator>eddie</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[nofollow]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[phpbb]]></category>
		<category><![CDATA[phpbb3]]></category>
		<category><![CDATA[phpbb3 administration]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[search engine ranking]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[serp]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[spam links]]></category>

		<guid isPermaLink="false">http://www.eddieoneverything.com/?p=1161</guid>
		<description><![CDATA[I use phpbb3 for this site&#8217;s discussion area.  It&#8217;s not a particularly popular section of the website, but it does attract one type of commenter &#8211; spammers.
Spammers like to create posts that link to their own site.  They do this for two reasons &#8211; one is to drive traffic directly to their site. [...]]]></description>
			<content:encoded><![CDATA[<p>I use phpbb3 for this site&#8217;s discussion area.  It&#8217;s not a particularly popular section of the website, but it does attract one type of commenter &#8211; spammers.</p>
<p>Spammers like to create posts that link to their own site.  They do this for two reasons &#8211; one is to drive traffic directly to their site.  The other is to increase their Search Engine Results Page ranking (SERP) by adding links to their site.</p>
<p>Search engines use many metrics in determining the position of a page in their search results.  One of those is the number of other websites linking in.  Because of this, there is a great incentive to create links to one&#8217;s own site through spammy comments.  This can have a negative impact on the search engine ranking of my own pages, because a site with a lot of spammy links gets categorized as a spammy site by the search engines, and starts to appear lower on the results pages.</p>
<p>I want to continue to let users post useful links, as I think linking can add to a discussion.  But I also don&#8217;t want to spend a lot of time editing these posts to keep them spam-free.  For that reason, I&#8217;ve modified phpbb3 to include a &#8221; &#8216;rel=&#8217;nofollow&#8217; &#8221; directive on links posted by users, which tells search engines that they shouldn&#8217;t use the fact that my site links to theirs to increase their search engine ranking.</p>
<p>To do so, I had to edit the viewtopic.php file, located in the main phpbb3 directory.  </p>
<p>To make the links on your phpbb3 forum automatically have the &#8220;nofollow&#8221; directive, just search for the following lines, and add preg_replace line, which is #1396 in my example:</p>
<pre name="code" class="php">
   1388    // Second parse bbcode here
   1389    if ($row['bbcode_bitfield'])
   1390    {
   1391       $bbcode->bbcode_second_pass($message, $row['bbcode_uid'], $row['bbcode_bitfield']);
   1392    }
   1393
   1394    $message = bbcode_nl2br($message);
   1395    $message = smiley_text($message);
 1396    $message = preg_replace('/(class="postlink")/','class="postlink" rel="nofollow" target="_blank"',$message);
   1397
</pre>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://www.eddieoneverything.com/articles/validating-an-email-address-with-phps-filter_var-isnt-perfect.php" title="Validating an Email Address with PHP&rsquo;s filter_var isn&rsquo;t perfect">Validating an Email Address with PHP&rsquo;s filter_var isn&rsquo;t perfect</a></li><li><a href="http://www.eddieoneverything.com/articles/open-source-mybb-has-become-my-forum-of-choice.php" title="Open Source MyBB has become my forum of choice">Open Source MyBB has become my forum of choice</a></li><li><a href="http://www.eddieoneverything.com/programming/getting-phps-print_r-function-to-return-a-string.php" title="Getting PHP&#8217;s print_r Function To Return A String">Getting PHP&#8217;s print_r Function To Return A String</a></li><li><a href="http://www.eddieoneverything.com/programming/php-programming-us-state-list-functions-state-abbreviation-to-state-name-function.php" title="PHP Programming: U.S. State list functions / State abbreviation to State name function">PHP Programming: U.S. State list functions / State abbreviation to State name function</a></li><li><a href="http://www.eddieoneverything.com/articles/how-to-scan-a-computer-for-open-ports.php" title="How to Scan a Computer for Open Ports">How to Scan a Computer for Open Ports</a></li><li><a href="http://www.eddieoneverything.com/articles/the-zen-of-taco-bell-programming-using-unix-tools-to-prevent-reinventing-the-wheel.php" title="The Zen of Taco Bell Programming &#8211; Using Unix Tools to Prevent Reinventing the Wheel">The Zen of Taco Bell Programming &#8211; Using Unix Tools to Prevent Reinventing the Wheel</a></li><li><a href="http://www.eddieoneverything.com/articles/stop-redplum-coupons-from-clogging-up-your-mailbox.php" title="Stop RedPlum Coupons from Clogging Up Your Mailbox">Stop RedPlum Coupons from Clogging Up Your Mailbox</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.eddieoneverything.com/articles/how-to-make-phpbb3-forum-links-automatically-relnofollow.php/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

