<?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>GFMorris.org &#187; phpBB Modifications</title>
	<atom:link href="http://gfmorris.org/categories/phpbb-modifications/feed/" rel="self" type="application/rss+xml" />
	<link>http://gfmorris.org</link>
	<description>Smart Guy, Dumb Code</description>
	<lastBuildDate>Mon, 31 Oct 2011 22:58:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Ridding Yourself of Shadow Topics in phpBB</title>
		<link>http://gfmorris.org/archives/2005/04/24/ridding-yourself-of-shadow-topics-in-phpbb/</link>
		<comments>http://gfmorris.org/archives/2005/04/24/ridding-yourself-of-shadow-topics-in-phpbb/#comments</comments>
		<pubDate>Mon, 25 Apr 2005 01:45:21 +0000</pubDate>
		<dc:creator>Geof F. Morris</dc:creator>
				<category><![CDATA[phpBB Modifications]]></category>

		<guid isPermaLink="false">http://gfmorris.org/archives/2005/04/24/ridding-yourself-of-shadow-topics-in-phpbb/</guid>
		<description><![CDATA[I&#8217;ll eventually write this into a modification, but phpBB moderators and administrators know that, when you move a topic, you&#8217;re given the option to create a &#8220;shadow topic&#8221;, one which will point users to the new topic. What&#8217;s not apparent &#8230; <a href="http://gfmorris.org/archives/2005/04/24/ridding-yourself-of-shadow-topics-in-phpbb/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ll eventually write this into a modification, but phpBB moderators and administrators know that, when you move a topic, you&#8217;re given the option to create a &#8220;shadow topic&#8221;, one which will point users to the new topic.  What&#8217;s not apparent is how to delete these shadow topics or how to have them expire.</p>
<p>It&#8217;s actually pretty simple: in phpbb_topics, there&#8217;s a field called &#8220;topic_moved_id&#8221;.  When you move a topic <strong>and</strong> specify that a shadow topic be created, a new topic is added to the database.  This topic then owns all the posts associated with the old topic, which becomes the &#8220;shadow topic&#8221;.  The &#8220;topic_moved_id&#8221; field exists simply to let phpBB know the association between the topic and its shadow.</p>
<p>To remove the fields, all you have to is delete any topic_id that has a non-null topic_moved_id field.  Now, the easiest way to do this would be <code>DELETE FROM phpbb_topics WHERE topic_moved_id > 0;</code>, but that deletes all the shadow topics.  That&#8217;s decidedly not cool; I decided to leave the last 7-ish days of shadow topics.</p>
<p>So, I pulled up my <a href="http://www.onlineconversion.com/unix_time.htm">handy-dandy UNIX timestamp converter</a>, fed in 04 17 2005 00 00 00, and got 1113696000 as a timestamp.  Working from there, the SQL query gets only marginally harder: <code>DELETE FROM phpbb_topics WHERE topic_moved_id > 0 AND topic_time < 1113696000;</code>.  I executed that, and 748 shadow topics were gone from <a href="http://rocksmyfaceoff.net/forum/">The Rumor Forum</a>.</p>
<p>To turn this into a worthwhile phpBB modification, I just need to mimic how to put this in the Administration Panel in 2.0.x.  I've got a couple modifications already installed that I can mimic, but for now, it's worth just posting this go-by for anyone else to use.</code></p>
]]></content:encoded>
			<wfw:commentRss>http://gfmorris.org/archives/2005/04/24/ridding-yourself-of-shadow-topics-in-phpbb/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Allow Mods to See Invisible Compliance</title>
		<link>http://gfmorris.org/archives/2005/04/01/allow-mods-to-see-invisible-compliance/</link>
		<comments>http://gfmorris.org/archives/2005/04/01/allow-mods-to-see-invisible-compliance/#comments</comments>
		<pubDate>Fri, 01 Apr 2005 16:28:54 +0000</pubDate>
		<dc:creator>Geof F. Morris</dc:creator>
				<category><![CDATA[phpBB Modifications]]></category>

		<guid isPermaLink="false">http://gfmorris.org/archives/2005/04/01/allow-mods-to-see-invisible-compliance/</guid>
		<description><![CDATA[As a note, I checked the compliance of my Allow Moderators to See Invisible mod with phpBB v2.0.13 last night, and it still works with an out-of-the-box installation.]]></description>
			<content:encoded><![CDATA[<p>As a note, I checked the compliance of my <a href="http://gfmorris.org/archives/2003/12/16/allow-moderators-to-see-invisible/">Allow Moderators to See Invisible</a> mod with phpBB v2.0.13 last night, and it still works with an out-of-the-box installation.</p>
]]></content:encoded>
			<wfw:commentRss>http://gfmorris.org/archives/2005/04/01/allow-mods-to-see-invisible-compliance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Allow Moderators to See Invisible</title>
		<link>http://gfmorris.org/archives/2003/12/16/allow-moderators-to-see-invisible/</link>
		<comments>http://gfmorris.org/archives/2003/12/16/allow-moderators-to-see-invisible/#comments</comments>
		<pubDate>Tue, 16 Dec 2003 19:09:41 +0000</pubDate>
		<dc:creator>Geof F. Morris</dc:creator>
				<category><![CDATA[phpBB Modifications]]></category>

		<guid isPermaLink="false">http://gfmorris.org/archives/2003/12/16/allow-moderators-to-see-invisible/</guid>
		<description><![CDATA[An actual released bit of code! This is a quick modification that I hacked up for phpBB, my WebBBS of choice. The modification allows moderators to see invisible users. I have some ideas for extending this a bit, but other &#8230; <a href="http://gfmorris.org/archives/2003/12/16/allow-moderators-to-see-invisible/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>An actual released bit of code!  This is a quick modification that I hacked up for <a href=http://phpbb.com/>phpBB</a>, my WebBBS of choice.  The modification <a href=http://www.phpbb.com/phpBB/viewtopic.php?t=156668>allows moderators to see invisible users</a>.</p>
<p>I have some ideas for extending this a bit, but other projects are clamoring for attention.</p>
]]></content:encoded>
			<wfw:commentRss>http://gfmorris.org/archives/2003/12/16/allow-moderators-to-see-invisible/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

