<?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>Tech Titbits &#187; phpBB</title>
	<atom:link href="http://techtitbits.com/category/phpbb/feed/" rel="self" type="application/rss+xml" />
	<link>http://techtitbits.com</link>
	<description>Titbits of technology, with extra sauce</description>
	<lastBuildDate>Tue, 16 Mar 2010 14:26:25 +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>Turn on Topic Reply Notification by default in phpBB</title>
		<link>http://techtitbits.com/2010/02/turn-on-topic-reply-notification-by-default-in-phpbb/</link>
		<comments>http://techtitbits.com/2010/02/turn-on-topic-reply-notification-by-default-in-phpbb/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 02:18:42 +0000</pubDate>
		<dc:creator>Soumik</dc:creator>
				<category><![CDATA[phpBB]]></category>
		<category><![CDATA[phpBB3]]></category>
		<category><![CDATA[topic reply notification]]></category>

		<guid isPermaLink="false">http://techtitbits.com/?p=353</guid>
		<description><![CDATA[In phpBB3, topic reply notification is set to &#8220;Off&#8221; by default. Unlike vBulletin, where you are automatically subscribed to threads which you reply to, in phpBB, you have to manually check &#8220;Notify me when a reply is posted&#8221; from the &#8220;Post reply&#8221; page to subscribe.
However, there is an easy file edit that will keep &#8220;Notify [...]


Related posts:<ol><li><a href='http://techtitbits.com/2009/06/changing-the-default-command-prompt-directory/' rel='bookmark' title='Permanent Link: Changing the default command prompt directory'>Changing the default command prompt directory</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>In phpBB3, topic reply notification is set to &#8220;Off&#8221; by default. Unlike vBulletin, where you are automatically subscribed to threads which you reply to, in phpBB, you have to manually check &#8220;Notify me when a reply is posted&#8221; from the &#8220;Post reply&#8221; page to subscribe.</p>
<p>However, there is an easy file edit that will keep &#8220;Notify me when a reply is posted&#8221; checked by default when posting a reply.</p>
<p>Open &#8216;includes/functions_user.php&#8217;:</p>
<p>Find :</p>
<pre class="brush: php;">      'user_notify'         =&gt; 0,</pre>
<p>Replace with :</p>
<pre class="brush: php;">      'user_notify'         =&gt; 1,</pre>
<p>After this edit, users will be automatically subscribed to threads while replying.</p>


<p>Related posts:<ol><li><a href='http://techtitbits.com/2009/06/changing-the-default-command-prompt-directory/' rel='bookmark' title='Permanent Link: Changing the default command prompt directory'>Changing the default command prompt directory</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://techtitbits.com/2010/02/turn-on-topic-reply-notification-by-default-in-phpbb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Essential custom BBCodes for phpBB</title>
		<link>http://techtitbits.com/2010/01/essential-custom-bbcodes-for-phpbb/</link>
		<comments>http://techtitbits.com/2010/01/essential-custom-bbcodes-for-phpbb/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 04:55:21 +0000</pubDate>
		<dc:creator>Soumik</dc:creator>
				<category><![CDATA[phpBB]]></category>
		<category><![CDATA[bbcode]]></category>
		<category><![CDATA[phpBB3]]></category>

		<guid isPermaLink="false">http://techtitbits.com/?p=323</guid>
		<description><![CDATA[phpBB comes with a multitude of BBCodes that perform various functions. While most of these are sufficient for day-to-day forum activity, power users who crave for mre functionality on their boards, need custom-made BBCodes to satisfy their needs. Here is a list of most commonly used bbcodes on phpBB boards.
Video sharing
YouTube
BBCode usage :
[youtube]http://{SIMPLETEXT1}.youtube.com/watch?v={SIMPLETEXT2}[/youtube]]
HTML replacement :
&#60;object [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>phpBB comes with a multitude of BBCodes that perform various functions. While most of these are sufficient for day-to-day forum activity, power users who crave for mre functionality on their boards, need custom-made BBCodes to satisfy their needs. Here is a list of most commonly used bbcodes on phpBB boards.</p>
<h4><span style="text-decoration: underline;">Video sharing</span></h4>
<p><strong>YouTube</strong></p>
<p>BBCode usage :</p>
<pre class="brush: plain;">[youtube]http://{SIMPLETEXT1}.youtube.com/watch?v={SIMPLETEXT2}[/youtube]]</pre>
<p>HTML replacement :</p>
<pre class="brush: xml;">&lt;object width=&quot;425&quot; height=&quot;355&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/{SIMPLETEXT2}&amp;hl=en&quot;&gt;&lt;/param&gt;&lt;param name=&quot;wmode&quot; value=&quot;transparent&quot;&gt;&lt;/param&gt;&lt;embed src=&quot;http://www.youtube.com/v/{SIMPLETEXT2}&amp;hl=en&quot; type=&quot;application/x-shockwave-flash&quot; wmode=&quot;transparent&quot; width=&quot;425&quot; height=&quot;355&quot;&gt;&lt;/embed&gt;&lt;/object&gt;</pre>
<p>Help line :</p>
<pre class="brush: plain;">Usage:[youtube]Video URL[/youtube]</pre>
<p><strong>Google Video<br />
</strong></p>
<p>BBCode usage :</p>
<pre class="brush: plain;">&lt;code&gt;[googlevideo]{NUMBER}[/googlevideo]&lt;/code&gt;</pre>
<p>HTML replacement :</p>
<pre class="brush: xml;">&lt;code&gt;&lt;object type=&quot;application/x-shockwave-flash&quot; data=&quot;http://video.google.com/googleplayer.swf?docId=-{NUMBER}&quot; width=&quot;400&quot; height=&quot;326&quot;&gt;
&lt;param name=&quot;movie&quot; value=&quot;http://video.google.com/googleplayer.swf?docId=-{NUMBER}&quot; /&gt;
&lt;param name=&quot;allowScriptAcess&quot; value=&quot;sameDomain&quot; /&gt;
&lt;param name=&quot;quality&quot; value=&quot;best&quot; /&gt;
&lt;param name=&quot;bgcolor&quot; value=&quot;#FFFFFF&quot; /&gt;
&lt;param name=&quot;scale&quot; value=&quot;noScale&quot; /&gt;
&lt;param name=&quot;salign&quot; value=&quot;TL&quot; /&gt;
&lt;param name=&quot;FlashVars&quot; value=&quot;playerMode=embedded&quot; /&gt;
&lt;/object&gt;&lt;/code&gt;</pre>
<p>Help line :</p>
<pre class="brush: plain;">&lt;code&gt;Enter the video ID number -- the video ID is a 18 digit number is after docid=- in the URL&lt;/code&gt;</pre>
<h4><span style="text-decoration: underline;">Text Alignment</span></h4>
<p><strong>Left</strong><br />
BBCode usage :</p>
<pre class="brush: plain;">[left]{TEXT}[/left]</pre>
<p>HTML replacement :</p>
<pre class="brush: xml;">&lt;div align=&quot;left&quot;&gt;{TEXT}&lt;/div&gt;</pre>
<p><strong>Right</strong><br />
BBCode usage :</p>
<pre class="brush: plain;">[right]{TEXT}[/right]</pre>
<p>HTML replacement :</p>
<pre class="brush: xml;">&lt;div align=&quot;right&quot;&gt;{TEXT}&lt;/div&gt;</pre>
<p><strong>Center</strong><br />
BBCode usage :</p>
<pre class="brush: plain;">[center]{TEXT}[/center]</pre>
<p>HTML replacement :</p>
<pre class="brush: xml;">&lt;div align=&quot;center&quot;&gt;{TEXT}&lt;/div&gt;</pre>
<h4><span style="text-decoration: underline;">Spoiler</span></h4>
<p>The spoiler BBCode can be used to hide spoilers from unsuspecting users. There are many ways to go about it, using Javascript or otherwise.</p>
<p><strong>Without Javascript :</strong><br />
This BBCode adds a black background color to the text between the tags, making it unreadable unless highlighted.<br />
Example :<br />
<span style="background: #000000;">This is a spoiler.</span><br />
BBCode usage :</p>
<pre class="brush: plain;">[spoiler]{TEXT}[/spoiler]</pre>
<p>HTML replacement :</p>
<pre class="brush: xml;">&lt;span style=&quot;background:#000000&quot;&gt;{TEXT}&lt;/span&gt;</pre>
<p><strong>Using Javascript :</strong><br />
This creates a &#8220;Show&#8221; button which expands to reveal the spoiler when clicked.<br />
Example :</p>
<blockquote>
<div style="margin: 20px; margin-top: 5px;">
<div class="quotetitle">
<p>Spoiler:</p>
<input style="margin: 0px; padding: 0px; width: 45px; font-size: 10px;" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';        this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }" type="button" value="Show" /></div>
<div class="quotecontent">
<div style="display: none;">This is a spoiler.</div>
</div>
</div>
</blockquote>
<p>BBCode usage :</p>
<pre class="brush: plain;">[spoiler2]{TEXT}[/spoiler2]</pre>
<p>HTML replacement :</p>
<pre class="brush: xml;">&lt;div style=&quot;margin:20px; margin-top:5px&quot;&gt;&lt;div class=&quot;quotetitle&quot;&gt;&lt;b&gt;Spoiler:&lt;/b&gt; &lt;input type=&quot;button&quot; value=&quot;Show&quot; style=&quot;width:45px;font-size:10px;margin:0px;padding:0px;&quot; onclick=&quot;if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';        this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }&quot; /&gt;&lt;/div&gt;&lt;div class=&quot;quotecontent&quot;&gt;&lt;div style=&quot;display: none;&quot;&gt;{TEXT}&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</pre>
<p><strong>Another version :</strong></p>
<p>This creates a spoiler which reveals itself on mousever.<br />
Example :</p>
<blockquote><p><span class="spoiler" style="color: #000000; background-color: #000000;" title="spoiler" onmouseover="this.style.color='#FFFFFF';" onmouseout="this.style.color=this.style.backgroundColor='#000000'">This is a spoiler.</span></p></blockquote>
<p>BBCode usage :</p>
<pre class="brush: plain;">[spoiler3]{TEXT}[/spoiler3]</pre>
<p>HTML replacement :</p>
<pre class="brush: xml;">&lt;span title=&quot;spoiler&quot; style=&quot;color: #000000; background-color: #000000;&quot; class=&quot;spoiler&quot; onmouseover=&quot;this.style.color='#FFFFFF';&quot; onmouseout=&quot;this.style.color=this.style.backgroundColor='#000000'&quot;&gt;{TEXT}&lt;/span&gt;</pre>
<h4><span style="text-decoration: underline;">Strikethrough</span></h4>
<p>Creates strike-through text.<br />
Example :</p>
<blockquote><p><span style="text-decoration: line-through;">Strike-through text.</span></p></blockquote>
<p>BBCode usage :</p>
<pre class="brush: plain;">[strike]{TEXT}[/strike]</pre>
<p>HTML replacement :</p>
<pre class="brush: xml;">&lt;span style=&quot;text-decoration: line-through;&quot;&gt;{TEXT}&lt;/span&gt;</pre>
<p><span style="text-decoration: underline;"><strong>Specify font</strong></span><br />
Specifies the font to be used in the text.<br />
Example :</p>
<blockquote><p><span style="font-family: Arial;">This is written in Arial.</span></p></blockquote>
<p>BBCode usage :</p>
<pre class="brush: plain;">[font={SIMPLETEXT}]{TEXT}[/font]</pre>
<p>HTML replacement :</p>
<pre class="brush: xml;">&lt;span style=&quot;font-family: {SIMPLETEXT};&quot;&gt;{TEXT}&lt;/span&gt;</pre>
<h4><span style="text-decoration: underline;">Pre tag</span></h4>
<p>Text enclosed by these tags will retain their formatting.</p>
<pre class="brush: plain;">[pre]{TEXT}[/pre]</pre>
<p>HTML replacement :</p>
<pre class="brush: xml;">&lt;pre&gt;{TEXT}&lt;/pre&gt;</pre>
<h4><span style="text-decoration: underline;">Background colour</span></h4>
<p>Changes the background to the specified colour.<br />
BBCode usage :</p>
<pre class="brush: plain;">[bgcolor={COLOR}]{TEXT}[/bgcolor]</pre>
<p>HTML replacement :</p>
<pre class="brush: xml;">&lt;code&gt;&lt;span style=&quot;background-color: {COLOR};&quot;&gt;{TEXT}&lt;/span&gt;&lt;/code&gt;</pre>
<h4><span style="text-decoration: underline;">Horizontal line</span></h4>
<p>Adds a horizontal line after text.</p>
<pre class="brush: plain;">[hr][/hr]</pre>
<p>HTML replacement :</p>
<pre class="brush: xml;">&lt;hr /&gt;</pre>
<h4><span style="text-decoration: underline;">Subscript</span></h4>
<p>For writing subscripted text.<br />
Example :</p>
<blockquote><p>Oleum &#8211; H<span style="vertical-align: sub;">2</span>S<span style="vertical-align: sub;">2</span>O<span style="vertical-align: sub;">7</span></p></blockquote>
<p>BBCode usage :</p>
<pre class="brush: plain;">[sub]{TEXT}[/sub]</pre>
<p>HTML replacement :</p>
<pre class="brush: xml;">&lt;span style=&quot;vertical-align: sub;&quot;&gt;{TEXT}&lt;/span&gt;</pre>
<h4><span style="text-decoration: underline;">Superscript</span></h4>
<p>For writing superscripted text.<br />
Example :</p>
<blockquote><p>(a+b)<span style="vertical-align: super;">2</span> = a<span style="vertical-align: super;">2</span>+b<span style="vertical-align: super;">2</span>+2ab</p></blockquote>
<p>BBCode usage :</p>
<pre class="brush: plain;">[super]{TEXT}[/super]</pre>
<p>HTML replacement :</p>
<pre class="brush: xml;">&lt;span style=&quot;vertical-align: super;&quot;&gt;{TEXT}&lt;/span&gt;</pre>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://techtitbits.com/2010/01/essential-custom-bbcodes-for-phpbb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add canonical links to phpBB</title>
		<link>http://techtitbits.com/2009/11/add-canonical-links-to-phpbb/</link>
		<comments>http://techtitbits.com/2009/11/add-canonical-links-to-phpbb/#comments</comments>
		<pubDate>Sat, 14 Nov 2009 11:21:12 +0000</pubDate>
		<dc:creator>Soumik</dc:creator>
				<category><![CDATA[SEO]]></category>
		<category><![CDATA[phpBB]]></category>
		<category><![CDATA[canonical URL]]></category>
		<category><![CDATA[phpBB3]]></category>

		<guid isPermaLink="false">http://techtitbits.com/?p=261</guid>
		<description><![CDATA[It&#8217;s old news that Google and other major search engines have added support for the &#60;link rel="canonical"&#62; tag to help cut down on duplicate indexing of web pages. While plugins for Wordpress, Drupal and Magneto E-Commerce have been released, there has been none such modification for phpBB, where it is, arguably, most needed.
phpBB administrators have [...]


Related posts:<ol><li><a href='http://techtitbits.com/2008/10/phpbb-redirect-broken-links-after-uninstalling-an-seo-mod/' rel='bookmark' title='Permanent Link: phpBB: Redirect broken links after uninstalling an SEO mod'>phpBB: Redirect broken links after uninstalling an SEO mod</a></li>
<li><a href='http://techtitbits.com/2009/04/prevent-duplicate-indexing-while-moving-threads-in-phpbb/' rel='bookmark' title='Permanent Link: Prevent duplicate indexing while moving threads in phpBB'>Prevent duplicate indexing while moving threads in phpBB</a></li>
<li><a href='http://techtitbits.com/2008/07/prevent-duplicate-indexing-of-phpbb3-threads-by-google/' rel='bookmark' title='Permanent Link: Prevent duplicate indexing of phpBB3 threads by Google'>Prevent duplicate indexing of phpBB3 threads by Google</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-268" title="phpbb-logo-green" src="http://techtitbits.com/wp-content/uploads/2009/11/phpbb-logo-green.jpg" alt="phpbb-logo-green" width="191" height="103" />It&#8217;s <a title="Official Google Webmaster Center Blog: Specify your canonical" href="http://googlewebmastercentral.blogspot.com/2009/02/specify-your-canonical.html" target="_blank">old news</a> that Google and other major search engines have added support for the <code>&lt;link rel="canonical"&gt;</code> tag to help cut down on duplicate indexing of web pages. While <a title="Canonical URL links" href="http://yoast.com/canonical-url-links/" target="_blank">plugins for Wordpress, Drupal and Magneto E-Commerce</a> have been released, there has been none such modification for phpBB, where it is, arguably, most needed.</p>
<p>phpBB administrators have used <a title="Prevent duplicate indexing of phpBB3 threads by Google" href="http://techtitbits.com/2008/07/prevent-duplicate-indexing-of-phpbb3-threads-by-google/" target="_blank">various</a> <a title="Handyman's SEO Mod" href="http://www.phpbb.com/community/viewtopic.php?f=69&amp;t=691165" target="_blank">methods</a> to cut down on this duplicate indexing issue, but adding a canonical URL seems to be the most subtly effective way. Google honours this tag very strongly, and upon finding it in a web page, it should only index the canonical page.</p>
<p>In the view of all this, I have put together a mod for phpBB3 to add the canonical links to phpBB board pages. The Canonical URL mod adds these lines to the phpBB pages :</p>
<p>In the index page :</p>
<pre class="brush: xml;">&lt;link rel=&quot;canonical&quot; href=&quot;http://www.example.com/&quot; /&gt;</pre>
<p>In the forum pages :</p>
<pre class="brush: xml;">&lt;link rel=&quot;canonical&quot; href=&quot;http://www.example.com/viewforum.php?f=1&quot; /&gt;</pre>
<p>In the topic pages :</p>
<pre class="brush: xml;">&lt;link rel=&quot;canonical&quot; href=&quot;http://www.example.com/viewforum.php?f=1&amp;t=1&quot; /&gt;</pre>
<p>For global threads<a href="#note">*</a> :</p>
<pre class="brush: xml;">&lt;link rel=&quot;canonical&quot; href=&quot;http://www.example.com/viewforum.php?t=1&quot; /&gt;</pre>
<p><strong>phpBB.com support thread :</strong></p>
<p><a title="phpBB.com support thread" href="http://www.phpbb.com/community/viewtopic.php?f=69&amp;t=1880545" target="_blank">http://www.phpbb.com/community/viewtopic.php?f=69&amp;t=1880545</a></p>
<p><a id="download"></a><strong>Download modification :</strong></p>
<p><a href="http://techtitbits.com/mods/canonical_url/download/"><img class="size-full wp-image-281 alignnone" title="download" src="http://techtitbits.com/wp-content/uploads/2009/11/download.jpg" alt="download" width="200" height="50" /></a></p>
<p><a id="note"></a><strong>Note :</strong></p>
<p>Normally, global threads will have canonical URLs like this :</p>
<pre class="brush: xml;">&lt;link rel=&quot;canonical&quot; href=&quot;http://www.example.com/viewforum.php?t=1&quot; /&gt;</pre>
<p>If you want the global threads to have canonical URLs with an &#8220;f=Y&#8221; query string, you just need to make a little change to the code. After installing the mod, open viewtopic.php.<br />
Find :</p>
<pre class="brush: php;">   'U_CANONICAL'    =&gt; generate_board_url() . &quot;/viewtopic.$phpEx?&quot; . (($topic_data['topic_type'] == POST_GLOBAL) ? '' : &quot;f=$forum_id&amp;amp;&quot;) . &quot;t=$topic_id&quot; . (($start) ? &quot;&amp;amp;start=$start&quot; : ''),</pre>
<p>In-line Find :</p>
<pre class="brush: plain;">? ''</pre>
<p>Replace with :</p>
<pre class="brush: php;">? &quot;f=Y&amp;amp;&quot;</pre>
<p>Replace &#8216;Y&#8217; with the forum id of the forum you want your global threads to belong to.</p>


<p>Related posts:<ol><li><a href='http://techtitbits.com/2008/10/phpbb-redirect-broken-links-after-uninstalling-an-seo-mod/' rel='bookmark' title='Permanent Link: phpBB: Redirect broken links after uninstalling an SEO mod'>phpBB: Redirect broken links after uninstalling an SEO mod</a></li>
<li><a href='http://techtitbits.com/2009/04/prevent-duplicate-indexing-while-moving-threads-in-phpbb/' rel='bookmark' title='Permanent Link: Prevent duplicate indexing while moving threads in phpBB'>Prevent duplicate indexing while moving threads in phpBB</a></li>
<li><a href='http://techtitbits.com/2008/07/prevent-duplicate-indexing-of-phpbb3-threads-by-google/' rel='bookmark' title='Permanent Link: Prevent duplicate indexing of phpBB3 threads by Google'>Prevent duplicate indexing of phpBB3 threads by Google</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://techtitbits.com/2009/11/add-canonical-links-to-phpbb/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Prevent duplicate indexing while moving threads in phpBB</title>
		<link>http://techtitbits.com/2009/04/prevent-duplicate-indexing-while-moving-threads-in-phpbb/</link>
		<comments>http://techtitbits.com/2009/04/prevent-duplicate-indexing-while-moving-threads-in-phpbb/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 16:48:32 +0000</pubDate>
		<dc:creator>Soumik</dc:creator>
				<category><![CDATA[SEO]]></category>
		<category><![CDATA[phpBB]]></category>
		<category><![CDATA[duplicate indexing]]></category>
		<category><![CDATA[moving topic]]></category>
		<category><![CDATA[phpBB3]]></category>

		<guid isPermaLink="false">http://techtitbits.com/2009/04/prevent-duplicate-indexing-while-moving-threads-in-phpbb/</guid>
		<description><![CDATA[Moving a thread from one forum to another cause duplicate indexing issues in phpBB3. In such cases, both the old URL and the new URL return a &#8220;200 Found&#8221; header response, even though the thread doesn&#8217;t exist in the old forum. Ideally, the old URL should 301 redirect to the new URL. In this post [...]


Related posts:<ol><li><a href='http://techtitbits.com/2008/07/prevent-duplicate-indexing-of-phpbb3-threads-by-google/' rel='bookmark' title='Permanent Link: Prevent duplicate indexing of phpBB3 threads by Google'>Prevent duplicate indexing of phpBB3 threads by Google</a></li>
<li><a href='http://techtitbits.com/2008/10/phpbb-redirect-broken-links-after-uninstalling-an-seo-mod/' rel='bookmark' title='Permanent Link: phpBB: Redirect broken links after uninstalling an SEO mod'>phpBB: Redirect broken links after uninstalling an SEO mod</a></li>
<li><a href='http://techtitbits.com/2009/11/add-canonical-links-to-phpbb/' rel='bookmark' title='Permanent Link: Add canonical links to phpBB'>Add canonical links to phpBB</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div id="attachment_192" class="wp-caption aligncenter" style="width: 400px"><img class="size-full wp-image-192" title="Moving phpBB topic/thread" src="http://techtitbits.com/wp-content/uploads/2009/04/moving_phpbb_topic.jpg" alt="Moving phpBB topic/thread" width="390" height="125" /><p class="wp-caption-text">Moving phpBB topic/thread</p></div>
<p>Moving a thread from one forum to another cause duplicate indexing issues in phpBB3. In such cases, both the old URL and the new URL return a &#8220;200 Found&#8221; header response, even though the thread doesn&#8217;t exist in the old forum. Ideally, the old URL should 301 redirect to the new URL. In this post we&#8217;ll learn how to do this.</p>
<p>phpBB uses query strings like <code>f=X&amp;t=Y</code> to determine which thread to serve, where &#8216;X&#8217; is the forum id and &#8216;Y&#8217; is the thread id. In a &#8220;view topic&#8221; URL, the <code>f=X</code> part of the query string serves no purpose except to note which forum the user is browsing and accordingly reflect it in the &#8220;Who is online&#8221; page. In fact, threads can be accessed using any &#8216;f=X&#8217; value, even using non-existant forum ids. This isn&#8217;t much of a problem in normal situation, as the threads are linked using their corresponding forum ids, but the duplicate indexing problem arises when a thread(s) is moved from on forum to another.</p>
<p>Since we need to change query strings here, neither <code>Redirect</code> nor <code>RedirectMatch</code> will work as they don&#8217;t take query strings into account. We need to use <code>RedirectCond</code> using <code>QUERY_STRING</code> and a RewriteRule directive to externally rewrite the URL. We will will also send a &#8220;301 Permanently Moved&#8221; response header so that the spiders know the page has been moved. Let us suppose that a thread with thread id 5 is being moved from forum with forum id 1 to forum with id 2. Therefore, the old URL :</p>
<pre class="brush: plain;">http://domain.com/viewtopic.php?f=1&amp;t=5</pre>
<p>And the new URL :</p>
<pre class="brush: plain;">http://domain.com/viewtopic.php?f=2&amp;t=5</pre>
<p>We need to redirect the first URL to the second. Add these codes to your .htaccess file :</p>
<pre class="brush: plain;">RewriteEngine On # Skip this if you have already turned on the rewriting engine
RewriteCond %{QUERY_STRING} ^f=1\&amp;t=5$
RewriteRule ^viewtopic\.php$ /viewtopic.php?f=2&amp;t=5 [R=301,L]

RewriteCond %{QUERY_STRING} ^f=1\&amp;t=5\&amp;start=([0-9]*)$
RewriteRule ^viewtopic\.php$ /viewtopic.php?f=2&amp;t=5&amp;start=%1 [R=301,L]</pre>
<p>Skip the first line if you have already turned on the rewriting engine in your .htaccess file. The second RewriteRule redirects the other pages of the thread (with URL like <code>viewtopic.php?f=X&amp;t=Y&amp;start=10</code>). For each thread moved, we need to add these directives in the .htaccess file, changing the forum ids and topic id&#8217;s as necessary.</p>
<p>This method seems tedious and cumbersome, but this is the only method I could devise as of now. If anyone has a better method, you are welcome to leave a comment.</p>


<p>Related posts:<ol><li><a href='http://techtitbits.com/2008/07/prevent-duplicate-indexing-of-phpbb3-threads-by-google/' rel='bookmark' title='Permanent Link: Prevent duplicate indexing of phpBB3 threads by Google'>Prevent duplicate indexing of phpBB3 threads by Google</a></li>
<li><a href='http://techtitbits.com/2008/10/phpbb-redirect-broken-links-after-uninstalling-an-seo-mod/' rel='bookmark' title='Permanent Link: phpBB: Redirect broken links after uninstalling an SEO mod'>phpBB: Redirect broken links after uninstalling an SEO mod</a></li>
<li><a href='http://techtitbits.com/2009/11/add-canonical-links-to-phpbb/' rel='bookmark' title='Permanent Link: Add canonical links to phpBB'>Add canonical links to phpBB</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://techtitbits.com/2009/04/prevent-duplicate-indexing-while-moving-threads-in-phpbb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add keywords and description to phpBB&#8217;s index page without installing a mod</title>
		<link>http://techtitbits.com/2009/04/add-keywords-and-description-to-phpbbs-index-page-without-installing-a-mod/</link>
		<comments>http://techtitbits.com/2009/04/add-keywords-and-description-to-phpbbs-index-page-without-installing-a-mod/#comments</comments>
		<pubDate>Sat, 18 Apr 2009 09:15:41 +0000</pubDate>
		<dc:creator>Soumik</dc:creator>
				<category><![CDATA[SEO]]></category>
		<category><![CDATA[phpBB]]></category>
		<category><![CDATA[description]]></category>
		<category><![CDATA[keyword]]></category>
		<category><![CDATA[meta]]></category>

		<guid isPermaLink="false">http://techtitbits.com/?p=145</guid>
		<description><![CDATA[In these days of intelligent search engines, meta keywords and descriptions do not play a major role in SEO. Crawlers are more interested in the contents of the page rather than it&#8217;s keywords and descriptions. However, some people might still want to add keywords and descriptions to their pages, seeing that search engines like Yahoo [...]


Related posts:<ol><li><a href='http://techtitbits.com/2009/11/add-canonical-links-to-phpbb/' rel='bookmark' title='Permanent Link: Add canonical links to phpBB'>Add canonical links to phpBB</a></li>
<li><a href='http://techtitbits.com/2009/02/error-phpbb-debug-php-notice-in-file-includes-functions-php/' rel='bookmark' title='Permanent Link: Error: [phpBB Debug] PHP Notice: in file /includes/functions.php on line 3526: Undefined index: HIDDEN_USERS_ZERO_TOTAL_AND'>Error: [phpBB Debug] PHP Notice: in file /includes/functions.php on line 3526: Undefined index: HIDDEN_USERS_ZERO_TOTAL_AND</a></li>
<li><a href='http://techtitbits.com/2010/02/turn-on-topic-reply-notification-by-default-in-phpbb/' rel='bookmark' title='Permanent Link: Turn on Topic Reply Notification by default in phpBB'>Turn on Topic Reply Notification by default in phpBB</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>In these days of intelligent search engines, meta keywords and descriptions do not play a major role in SEO. Crawlers are more interested in the contents of the page rather than it&#8217;s keywords and descriptions. However, some people might still want to add keywords and descriptions to their pages, seeing that search engines like Yahoo still put some weightage on them.</p>
<p>A vanilla phpBB installation does contain keyword and description meta element, but they do not have any content. Here&#8217;s an easy to add meta keywords and description to phpBB&#8217;s index page without installing and/or maintaining any kind of a mod.</p>
<ul>
<li>Go to <code>/styles/prosilver/template/</code> and open the <code>overall_header.html</code> file with your favourite text editor. Click Edit &gt; Select all, or just press &#8216;Ctrl +A&#8217;. After that, copy the selected code by clicking Edit &gt; Copy or by pressing &#8216;Ctrl + V&#8217;.</li>
<li>Create a new HTML file in the same directory and name it <code>index_header.html</code>.</li>
<li>Open the newly created file and paste the contents of the clipboard in it.</li>
<li>In <code>index_header.html</code>, find :
<pre class="brush: xml;">&lt;meta name=&quot;keywords&quot; content=&quot;&quot; /&gt;</pre>
<p>Replace with :</p>
<pre class="brush: xml;">&lt;meta name=&quot;keywords&quot; content=&quot;keyword1, keyword2, keyword3&quot; /&gt;</pre>
<p>Find :</p>
<pre class="brush: xml;">&lt;meta name=&quot;description&quot; content=&quot;&quot; /&gt;</pre>
<p>Replace with :</p>
<pre class="brush: xml;">&lt;meta name=&quot;description&quot; content=&quot;Here goes the description&quot; /&gt;</pre>
</li>
<li>Open <code>/styles/prosilver/template/index_body.html</code>.</li>
<li>Find :
<pre class="brush: xml;">&lt;!-- INCLUDE overall_header.html --&gt;</pre>
</li>
<li>Replace with :</li>
<pre class="brush: xml;">&lt;!-- INCLUDE index_header.html --&gt;</pre>
</ul>
<p>From now on remember to update index_header.html when you make changes to overall_header.html, or else, the changes won&#8217;t show up in the index page.</p>


<p>Related posts:<ol><li><a href='http://techtitbits.com/2009/11/add-canonical-links-to-phpbb/' rel='bookmark' title='Permanent Link: Add canonical links to phpBB'>Add canonical links to phpBB</a></li>
<li><a href='http://techtitbits.com/2009/02/error-phpbb-debug-php-notice-in-file-includes-functions-php/' rel='bookmark' title='Permanent Link: Error: [phpBB Debug] PHP Notice: in file /includes/functions.php on line 3526: Undefined index: HIDDEN_USERS_ZERO_TOTAL_AND'>Error: [phpBB Debug] PHP Notice: in file /includes/functions.php on line 3526: Undefined index: HIDDEN_USERS_ZERO_TOTAL_AND</a></li>
<li><a href='http://techtitbits.com/2010/02/turn-on-topic-reply-notification-by-default-in-phpbb/' rel='bookmark' title='Permanent Link: Turn on Topic Reply Notification by default in phpBB'>Turn on Topic Reply Notification by default in phpBB</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://techtitbits.com/2009/04/add-keywords-and-description-to-phpbbs-index-page-without-installing-a-mod/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Error: [phpBB Debug] PHP Notice: in file /includes/functions.php on line 3526: Undefined index: HIDDEN_USERS_ZERO_TOTAL_AND</title>
		<link>http://techtitbits.com/2009/02/error-phpbb-debug-php-notice-in-file-includes-functions-php/</link>
		<comments>http://techtitbits.com/2009/02/error-phpbb-debug-php-notice-in-file-includes-functions-php/#comments</comments>
		<pubDate>Sat, 21 Feb 2009 17:04:58 +0000</pubDate>
		<dc:creator>Soumik</dc:creator>
				<category><![CDATA[phpBB]]></category>
		<category><![CDATA[language pack]]></category>
		<category><![CDATA[outdated language pack]]></category>
		<category><![CDATA[phpBB3]]></category>

		<guid isPermaLink="false">http://techtitbits.com/?p=127</guid>
		<description><![CDATA[After updating phpBB to v3.0.4, this error suddenly popped up after changing the language to something other than English :
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3526: Undefined index: HIDDEN_USERS_ZERO_TOTAL_AND
It means that the language pack is outdated and &#8220;HIDDEN_USERS_ZERO_TOTAL_AND&#8221; isn&#8217;t defined in the common.php file in the corresponding language directory.
The solution is to [...]


Related posts:<ol><li><a href='http://techtitbits.com/2009/04/add-keywords-and-description-to-phpbbs-index-page-without-installing-a-mod/' rel='bookmark' title='Permanent Link: Add keywords and description to phpBB&#8217;s index page without installing a mod'>Add keywords and description to phpBB&#8217;s index page without installing a mod</a></li>
<li><a href='http://techtitbits.com/2010/02/turn-on-topic-reply-notification-by-default-in-phpbb/' rel='bookmark' title='Permanent Link: Turn on Topic Reply Notification by default in phpBB'>Turn on Topic Reply Notification by default in phpBB</a></li>
<li><a href='http://techtitbits.com/2008/10/phpbb-redirect-broken-links-after-uninstalling-an-seo-mod/' rel='bookmark' title='Permanent Link: phpBB: Redirect broken links after uninstalling an SEO mod'>phpBB: Redirect broken links after uninstalling an SEO mod</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>After updating phpBB to v3.0.4, this error suddenly popped up after changing the language to something other than English :</p>
<blockquote><p>[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3526: Undefined index: HIDDEN_USERS_ZERO_TOTAL_AND</p></blockquote>
<p>It means that the language pack is outdated and &#8220;HIDDEN_USERS_ZERO_TOTAL_AND&#8221; isn&#8217;t defined in the common.php file in the corresponding language directory.</p>
<p>The solution is to install the updated language pack for the current version from the <a title="phpBB language pack directory" href="http://www.phpbb.com/languages/" target="_blank">language pack directory</a>, or if the language hasn&#8217;t been updated yet, wait for the maintainer to update it; or better still, update the language pack yourself!</p>


<p>Related posts:<ol><li><a href='http://techtitbits.com/2009/04/add-keywords-and-description-to-phpbbs-index-page-without-installing-a-mod/' rel='bookmark' title='Permanent Link: Add keywords and description to phpBB&#8217;s index page without installing a mod'>Add keywords and description to phpBB&#8217;s index page without installing a mod</a></li>
<li><a href='http://techtitbits.com/2010/02/turn-on-topic-reply-notification-by-default-in-phpbb/' rel='bookmark' title='Permanent Link: Turn on Topic Reply Notification by default in phpBB'>Turn on Topic Reply Notification by default in phpBB</a></li>
<li><a href='http://techtitbits.com/2008/10/phpbb-redirect-broken-links-after-uninstalling-an-seo-mod/' rel='bookmark' title='Permanent Link: phpBB: Redirect broken links after uninstalling an SEO mod'>phpBB: Redirect broken links after uninstalling an SEO mod</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://techtitbits.com/2009/02/error-phpbb-debug-php-notice-in-file-includes-functions-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>phpBB: Redirect broken links after uninstalling an SEO mod</title>
		<link>http://techtitbits.com/2008/10/phpbb-redirect-broken-links-after-uninstalling-an-seo-mod/</link>
		<comments>http://techtitbits.com/2008/10/phpbb-redirect-broken-links-after-uninstalling-an-seo-mod/#comments</comments>
		<pubDate>Thu, 09 Oct 2008 13:11:19 +0000</pubDate>
		<dc:creator>Soumik</dc:creator>
				<category><![CDATA[Htaccess]]></category>
		<category><![CDATA[phpBB]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[phpBB3]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[SEO mod]]></category>
		<category><![CDATA[SERP]]></category>

		<guid isPermaLink="false">http://techtitbits.com/?p=84</guid>
		<description><![CDATA[SEO mods beautify your URLs and make them more spider friendly. But what happens when you uninstall an SEO mod? These SEOed URLs becomes broken and return an error code of &#8216;404 Not Found&#8217;. And these obsolete links can be very harmful for your Search Engine Results Page(SERP) rankings.
I&#8217;ve got emails from concerned phpBB forum [...]


Related posts:<ol><li><a href='http://techtitbits.com/2009/11/add-canonical-links-to-phpbb/' rel='bookmark' title='Permanent Link: Add canonical links to phpBB'>Add canonical links to phpBB</a></li>
<li><a href='http://techtitbits.com/2009/04/prevent-duplicate-indexing-while-moving-threads-in-phpbb/' rel='bookmark' title='Permanent Link: Prevent duplicate indexing while moving threads in phpBB'>Prevent duplicate indexing while moving threads in phpBB</a></li>
<li><a href='http://techtitbits.com/2008/07/prevent-duplicate-indexing-of-phpbb3-threads-by-google/' rel='bookmark' title='Permanent Link: Prevent duplicate indexing of phpBB3 threads by Google'>Prevent duplicate indexing of phpBB3 threads by Google</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>SEO mods beautify your URLs and make them more spider friendly. But what happens when you uninstall an SEO mod? These SEOed URLs becomes broken and return an error code of &#8216;404 Not Found&#8217;. And these obsolete links can be very harmful for your Search Engine Results Page(<abbr title="Search Engine Results Page">SERP</abbr>) rankings.</p>
<p>I&#8217;ve got emails from concerned phpBB forum administrators saying that their position in the <abbr title="Search Engine Results Page">SERP</abbr>s have taken a dip after they had uninstalled their SEO mods and used my <a title="Prevent duplicate indexing of phpBB3 threads by Google" href="http://techtitbits.com/2008/07/prevent-duplicate-indexing-of-phpbb3-threads-by-google/" target="_blank">phpBB robots.txt duplicate indexing fix</a>. What they need to do is redirect these broken links to the vanilla phpBB links. Using some simple rewrite rules, we can redirect those broken links to their proper place. And we&#8217;ll return a &#8216;301 Permanently Moved&#8217; header so that the threads eventually recover their pagerank and <abbr title="Search Engine Results Page">SERP positions.</abbr><br />
I&#8217;ll be using dcz&#8217;s <a title="Advanced phpBB3 SEO mod Rewrite" href="http://www.phpbb-seo.com/boards/advanced-seo-url/advanced-phpbb3-seo-url-vt1219.html">Advanced phpBB3 SEO mod Rewrite</a> as an example. This rewrites the URLs as follows :</p>
<pre class="brush: plain;">viewforum.php?f=XX =&gt; any-keywords-fXX.html
viewforum.php?f=XX&amp;start=YY =&gt; any-keywords-fXX-YY.html
viewtopic.php?f=XX&amp;t=YY =&gt; any-keywords-fXX/topic-title-tYY.html
viewtopic.php?f=XX&amp;t=YY&amp;start=ZZ =&gt; any-keywords-fXX/topic-title-tYY-ZZ.html
viewtopic.php?p=XX =&gt; postXX.html
memberlist.php?mode=viewprofile&amp;u=XX =&gt; memberXX.html</pre>
<p>To redirect the broken/obsolete URLs, you need to add the following piece of code to your .htaccess file at the root of the forum :</p>
<pre class="brush: plain;">Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteRule ^[^/\.]+-f([0-9]+)\.html?$ /viewforum.php?f=$1 [R=301,L]
RewriteRule ^[^/\.]+-f([0-9]+)-([0-9]+)\.html?$ /viewforum.php?f=$1&amp;start=$2 [R=301,L]
RewriteRule ^[^/\.]+-f([0-9]+)/[^/\.]+-t([0-9]+)\.html?$ /viewtopic.php?f=$1&amp;t=$2 [R=301,L]
RewriteRule ^[^/\.]+-f([0-9]+)/[^/\.]+-t([0-9]+)-([0-9]+)\.html?$ /viewtopic.php?f=$1&amp;t=$2&amp;start=$3 [R=301,L]
RewriteRule ^post([0-9]+)\.html?$ /viewtopic.php?p=$1 [R=301,L]
RewriteRule ^member([0-9]+)\.html?$ /memberlist.php?mode=viewprofile&amp;u=$1 [R=301,L]</pre>
<p>These rules will ensure that those SEOed URLs are 301 redirected to the proper phpBB vanilla URLs, and you&#8217;ll eventually recover your pagerank and SERP position.</p>
<p>If you have a problem or you need mod_rewrite rules for another variant of an SEO mod, leave a comment and I&#8217;ll help you.</p>


<p>Related posts:<ol><li><a href='http://techtitbits.com/2009/11/add-canonical-links-to-phpbb/' rel='bookmark' title='Permanent Link: Add canonical links to phpBB'>Add canonical links to phpBB</a></li>
<li><a href='http://techtitbits.com/2009/04/prevent-duplicate-indexing-while-moving-threads-in-phpbb/' rel='bookmark' title='Permanent Link: Prevent duplicate indexing while moving threads in phpBB'>Prevent duplicate indexing while moving threads in phpBB</a></li>
<li><a href='http://techtitbits.com/2008/07/prevent-duplicate-indexing-of-phpbb3-threads-by-google/' rel='bookmark' title='Permanent Link: Prevent duplicate indexing of phpBB3 threads by Google'>Prevent duplicate indexing of phpBB3 threads by Google</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://techtitbits.com/2008/10/phpbb-redirect-broken-links-after-uninstalling-an-seo-mod/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Prevent duplicate indexing of phpBB3 threads by Google</title>
		<link>http://techtitbits.com/2008/07/prevent-duplicate-indexing-of-phpbb3-threads-by-google/</link>
		<comments>http://techtitbits.com/2008/07/prevent-duplicate-indexing-of-phpbb3-threads-by-google/#comments</comments>
		<pubDate>Sun, 06 Jul 2008 08:12:59 +0000</pubDate>
		<dc:creator>Soumik</dc:creator>
				<category><![CDATA[SEO]]></category>
		<category><![CDATA[phpBB]]></category>
		<category><![CDATA[duplicate indexing]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[robots.txt]]></category>

		<guid isPermaLink="false">http://techtitbits.com/?p=4</guid>
		<description><![CDATA[In a default phpBB3 installation(without an SEO mod), the same thread can be accessed through many URLs. For example, the thread Favourite Animorphs fanfiction can be accessed through these different URLs :


http://animorphsfanforum.com/viewtopic.php?f=5&#38;t=60
http://animorphsfanforum.com/viewtopic.php?f=5&#38;p=659
http://animorphsfanforum.com/viewtopic.php?f=5&#38;t=60&#38;p=659
http://animorphsfanforum.com/viewtopic.php?f=5&#38;t=60&#38;p=659#p659
http://animorphsfanforum.com/viewtopic.php?t=60
http://animorphsfanforum.com/viewtopic.php?p=659
http://animorphsfanforum.com/viewtopic.php?f=5&#38;t=60&#38;st=0&#38;sk=t&#38;sd=a
http://animorphsfanforum.com/viewtopic.php?f=5&#38;t=60&#38;st=0&#38;sk=t&#38;sd=a#p659


The agressive Googlebot might pick almost all of those links and it might lead to potential ranking problems in SERPs.
One way to resove this [...]


Related posts:<ol><li><a href='http://techtitbits.com/2009/04/prevent-duplicate-indexing-while-moving-threads-in-phpbb/' rel='bookmark' title='Permanent Link: Prevent duplicate indexing while moving threads in phpBB'>Prevent duplicate indexing while moving threads in phpBB</a></li>
<li><a href='http://techtitbits.com/2009/11/add-canonical-links-to-phpbb/' rel='bookmark' title='Permanent Link: Add canonical links to phpBB'>Add canonical links to phpBB</a></li>
<li><a href='http://techtitbits.com/2008/10/phpbb-redirect-broken-links-after-uninstalling-an-seo-mod/' rel='bookmark' title='Permanent Link: phpBB: Redirect broken links after uninstalling an SEO mod'>phpBB: Redirect broken links after uninstalling an SEO mod</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>In a default phpBB3 installation(without an SEO mod), the same thread can be accessed through many URLs. For example, the thread <a title="Favourite Animorphs fanfiction" href="http://animorphsfanforum.com/viewtopic.php?f=5&amp;t=60" target="_blank">Favourite Animorphs fanfiction</a> can be accessed through these different URLs :</p>
<blockquote>
<ul>
<li>http://animorphsfanforum.com/viewtopic.php?f=5&amp;t=60</li>
<li>http://animorphsfanforum.com/viewtopic.php?f=5&amp;p=659</li>
<li>http://animorphsfanforum.com/viewtopic.php?f=5&amp;t=60&amp;p=659</li>
<li>http://animorphsfanforum.com/viewtopic.php?f=5&amp;t=60&amp;p=659#p659</li>
<li>http://animorphsfanforum.com/viewtopic.php?t=60</li>
<li>http://animorphsfanforum.com/viewtopic.php?p=659</li>
<li>http://animorphsfanforum.com/viewtopic.php?f=5&amp;t=60&amp;st=0&amp;sk=t&amp;sd=a</li>
<li>http://animorphsfanforum.com/viewtopic.php?f=5&amp;t=60&amp;st=0&amp;sk=t&amp;sd=a#p659</li>
</ul>
</blockquote>
<p>The agressive Googlebot might pick almost all of those links and it might lead to potential ranking problems in <abbr title="Search Engine Results Page">SERP</abbr>s.</p>
<p>One way to resove this duplicate indexing is to install an SEO mod like <a title="PhpBB-SEO.com SEO mod" href="http://www.phpbb-seo.com/boards/phpbb-seo-toolkit/phpbb-seo-mod-rewrites-vt66.html">PhpBB-SEO.com SEO mod</a> or <a title="Handyman's SEO mod" href="http://www.phpbb.com/community/viewtopic.php?f=69&amp;t=691165" target="_blank">Handyman&#8217;s SEO mod</a>. But, installing and updating a mod with each phpBB3 update and/or mod update might get harrowing and burdensome. An alternative, albeit easier way to prevent duplicate indexing is to add these lines to your robots.txt :</p>
<p><code>User-agent: *<br />
Disallow: /viewtopic.php?p=<br />
Disallow: /viewtopic.php?=&amp;p=<br />
Disallow: /viewtopic.php?t=<br />
Disallow: /viewtopic.php?start=<br />
Disallow: /*&amp;view=previous<br />
Disallow: /*&amp;view=next<br />
Disallow: /*&amp;sid=<br />
Disallow: /*&amp;p=<br />
Disallow: /*&amp;sd=a<br />
Disallow: /*&amp;start=0<br />
</code></p>
<p>This will forbid all bots following robots.txt directives to crawl the redundant URLs. Your threads will only be accessible to the bots through the URL <code>http://www.domain.com/viewtopic.php?f=X&amp;t=X</code>.</p>
<p>Note(1): If you display Google Adsense ads in your forum pages, you might need to allow the Google Adsense bot(Mediapartners-Google) to access the &#8216;forbidden&#8217; URLs, so that it can crawl the pages and display relevant ads. So, you need to add these &#8216;extra&#8217; lines to your robots.txt :</p>
<p><code>User-agent: Mediapartners-Google<br />
Disallow:</code></p>
<p>This will allow the Mediapartners-Google bot to access the forbidden URLs.</p>
<p>Note(2): If your forum is on a subdirectory(say /forum/) rather than the root, append &#8220;/forum&#8221; to the robots.txt directives. It should look like this :</p>
<p><code>User-agent: *<br />
Disallow: /forum/viewtopic.php?p=<br />
Disallow: /forum/viewtopic.php?=&amp;p=<br />
Disallow: /forum/viewtopic.php?t=<br />
Disallow: /forum/viewtopic.php?start=<br />
Disallow: /forum/*&amp;view=previous<br />
Disallow: /forum/*&amp;view=next<br />
Disallow: /forum/*&amp;sid=<br />
Disallow: /forum/*&amp;p=<br />
Disallow: /forum/*&amp;sd=a<br />
Disallow: /forum/*&amp;start=0</code></p>
<p>If you face any problems, leave your comments and I&#8217;ll look into it.</p>


<p>Related posts:<ol><li><a href='http://techtitbits.com/2009/04/prevent-duplicate-indexing-while-moving-threads-in-phpbb/' rel='bookmark' title='Permanent Link: Prevent duplicate indexing while moving threads in phpBB'>Prevent duplicate indexing while moving threads in phpBB</a></li>
<li><a href='http://techtitbits.com/2009/11/add-canonical-links-to-phpbb/' rel='bookmark' title='Permanent Link: Add canonical links to phpBB'>Add canonical links to phpBB</a></li>
<li><a href='http://techtitbits.com/2008/10/phpbb-redirect-broken-links-after-uninstalling-an-seo-mod/' rel='bookmark' title='Permanent Link: phpBB: Redirect broken links after uninstalling an SEO mod'>phpBB: Redirect broken links after uninstalling an SEO mod</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://techtitbits.com/2008/07/prevent-duplicate-indexing-of-phpbb3-threads-by-google/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>
