<?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>Welcome to the phpBB Doctor Blog</title>
	<atom:link href="http://www.phpbbdoctor.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phpbbdoctor.com/blog</link>
	<description>Your premium source for custom modification services for phpBB</description>
	<lastBuildDate>Wed, 11 Jan 2012 21:30:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>phpBB3 MODs Domain Names Available</title>
		<link>http://www.phpbbdoctor.com/blog/2012/01/11/phpbb3-mods-domain-names-available/</link>
		<comments>http://www.phpbbdoctor.com/blog/2012/01/11/phpbb3-mods-domain-names-available/#comments</comments>
		<pubDate>Wed, 11 Jan 2012 21:30:29 +0000</pubDate>
		<dc:creator>Dave Rathbun</dc:creator>
				<category><![CDATA[phpBB]]></category>

		<guid isPermaLink="false">http://www.phpbbdoctor.com/blog/?p=366</guid>
		<description><![CDATA[I have posted a topic on phpbb.com letting folks know I&#8217;m not going to renew my phpBB3 MODs-related domains. If you&#8217;re interested, hop on over to phpbb.com and send me a PM to let me know.
First come, first served.
]]></description>
			<content:encoded><![CDATA[<p>I have posted a topic on phpbb.com letting folks know I&#8217;m <a href="http://www.phpbb.com/community/viewtopic.php?f=71&#038;t=2148048">not going to renew my phpBB3 MODs-related domains</a>. If you&#8217;re interested, hop on over to phpbb.com and send me a PM to let me know.</p>
<p>First come, first served.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpbbdoctor.com/blog/2012/01/11/phpbb3-mods-domain-names-available/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Passwords Matter</title>
		<link>http://www.phpbbdoctor.com/blog/2012/01/10/passwords-matter/</link>
		<comments>http://www.phpbbdoctor.com/blog/2012/01/10/passwords-matter/#comments</comments>
		<pubDate>Tue, 10 Jan 2012 17:53:00 +0000</pubDate>
		<dc:creator>Dave Rathbun</dc:creator>
				<category><![CDATA[phpBB Doctor]]></category>

		<guid isPermaLink="false">http://www.phpbbdoctor.com/blog/?p=300</guid>
		<description><![CDATA[Way back in 2009 phpbb.com was hacked via an exposure in the phplist mailing list software. (Just to be very clear, there was no exploit found in the phpBB code used to run the site, only this supplementary program used to run the email notification system.) One of the results of the hack of phpbb.com [...]]]></description>
			<content:encoded><![CDATA[<p>Way back in 2009 phpbb.com was hacked via an exposure in the phplist mailing list software. (Just to be very clear, there was no exploit found in the phpBB code used to run the site, only this supplementary program used to run the email notification system.) One of the results of the hack of phpbb.com was that several thousand user passwords were exposed and posted on the Internet. They were exposed, frankly, because they were too simple, and that&#8217;s not phpBB&#8217;s fault. <span id="more-300"></span></p>
<h3>Pet Names Don&#8217;t Make Good Passwords</h3>
<p>People often struggle with remembering passwords. Yes, there are programs that can help you with that, but are they really that much more secure than writing things down on a piece of paper? Here&#8217;s one take from one of my favorite web comic authors:</p>
<p><img src="http://imgs.xkcd.com/comics/password_strength.png" /></p>
<p>The bottom line is that a password is supposed to protect an account from unauthorized access. It&#8217;s not supposed to prevent authorized access, but for infrequently used resources it can do that as well. <img src='http://www.phpbbdoctor.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </p>
<h3>Password Storage</h3>
<p>One indicator of concern to me is whether a web site can send you your existing password when you forget it. That means they&#8217;re likely using an encryption process rather than a hashing algorithm to store passwords. And that means anyone with access to the decryption key can read every password in the system. phpBB2 uses a hashing algorithm which means as a board owner / administrator I can safely say to any of my users that I cannot tell them what their password is. I can assign them a new one, and of course there is a self-service option available to phpBB2 users that will do just that, but I cannot tell them what their existing password is. In a default phpBB2 installation a user password is hashed and stored as a 32 character string. Similar passwords will generate very dissimilar hash strings, so there is no way for someone to easily guess what a password might be simply based on the results of the hash. For example, here are a few similar input values and the resulting MD5 hash outputs:</p>
<pre>test     098f6bcd4621d373cade4e832627b4f6
Test     0cbc6611f5540bd0809a388dc95a615b
tset     751ec45015a704a39dc403001c963e97
test1    5a105e8b9d40e1329780d62ea2265d8a</pre>
<p>Despite the similarity of the input values they all have very different hash values. That means that similar hash values are going to have very different input values as well. Also, because a hash is generated by a one-way function there is no way to recreate the input value based on the hash. (There are some cases where two different input values could generate the same output hash; that&#8217;s allowed.) </p>
<p>If that&#8217;s the case, then how can I tell if a user has entered the correct password when they log in? It&#8217;s actually really simple. When a user logs in, phpBB takes the password provided on the form, hashes it, and then compares the resulting hash value to the hash stored in the database. As long as the input values are the same (entering &#8220;test&#8221; as my password will always generate 098f6bcd4621d373cade4e832627b4f6 as the hash value) then the password matches and the user is logged in.</p>
<p>How, then, were hackers able to decipher the passwords stored in the phpBB.com database if there is no way to reverse a hash process? They didn&#8217;t. <img src='http://www.phpbbdoctor.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Instead they used a lookup table (also called a <a href="http://en.wikipedia.org/wiki/Rainbow_table">rainbow table</a>) to match up known hash values with their source value. Imagine taking a dictionary and running every word in it through the hashing process. When you&#8217;re done, you have a list of hashes and their source. By matching password hash values against the list of known entries the hackers were able to figure out what a number of phpBB.com user passwords were.</p>
<p>To help defeat this sort of process, phpBB3 now uses a <a href="http://en.wikipedia.org/wiki/Salted_hash">salted hash</a> which provides even more security. I imagine someone has back-ported this to phpBB2 as a MOD but I have not had time to look for one yet. But the fact is if a secure password is used (a combination of words and numbers, or as the cartoon above suggests several words run together) the odds of the password appearing in a rainbow table are extremely slim, and even the simple hashing algorithm used in phpBB2 is essentially safe. Even changing the case of one letter helps, as shown in these two hash examples from earlier: </p>
<pre>test     098f6bcd4621d373cade4e832627b4f6
Test     0cbc6611f5540bd0809a388dc95a615b</pre>
<p>Changing the &#8220;t&#8221; to a &#8220;T&#8221; changes the hash. It might be even better to change something other than the first letter, for example changing the &#8220;e&#8221; to an &#8220;E&#8221; as in tEst. That&#8217;s a very easy word to remember and it&#8217;s not likely to show up on any rainbow table, unless a hacker wants to run every possible combination of upper and lower case letters for every possible dictionary word. <img src='http://www.phpbbdoctor.com/blog/wp-includes/images/smilies/icon_eek.gif' alt=':shock:' class='wp-smiley' />  Ultimately it would be better to use a combination of letters (mixed case), numbers, and even symbols where allowed.</p>
<p>So how important is it that phpBB3 uses a salted algorithm for passwords? If people were smart about what passwords they use then it really would not matter so much. <img src='http://www.phpbbdoctor.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  But as shown in some of the related links at the end of this post, people are not very smart about the passwords they pick. In that case, the salting process is quite beneficial.</p>
<h3>Social Engineering</h3>
<p>Which brings me to my final issue for this post: people can be fond of certain passwords and often use (reuse) them on more than one site. If you use the same password for a phpBB board that you use for your banking system, then change it. Change it now. For one thing, most phpBB board owners do not use a secure protocol (such as HTTPS rather than HTTP) for their sites. That means the password is exposed during the transmission of the form data. Ultimately no matter how a password is stored or how complex the password might be, if people can be tricked into giving up their passwords by phishing emails, web site plugins, and other techniques, that&#8217;s a problem. If a hacker manages to grab the password for one site, they may then be able to use it on other sites. I have made a practice of using a unique password on every service I sign up for in order to prevent this for a very long time. But once again, xkcd.com says it better:</p>
<p><img src="http://imgs.xkcd.com/comics/password_reuse.png" /></p>
<p><strong>Related Links</strong></p>
<ul>
<li><a href="http://www.darkreading.com/blog/archives/2009/02/phpbb_password.html">phpBB Password Analysis</a></li>
<li><a href="http://www.whatsmypass.com/the-top-500-worst-passwords-of-all-time">500 Worst Passwords</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.phpbbdoctor.com/blog/2012/01/10/passwords-matter/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Celebrating The Holidays</title>
		<link>http://www.phpbbdoctor.com/blog/2011/12/14/celebrating-the-holidays/</link>
		<comments>http://www.phpbbdoctor.com/blog/2011/12/14/celebrating-the-holidays/#comments</comments>
		<pubDate>Wed, 14 Dec 2011 15:28:13 +0000</pubDate>
		<dc:creator>Dave Rathbun</dc:creator>
				<category><![CDATA[MOD Writing]]></category>

		<guid isPermaLink="false">http://www.phpbbdoctor.com/blog/?p=365</guid>
		<description><![CDATA[I&#8217;ve seen several phpBB boards over the years that swap out the regular graphic objects for holiday objects at certain times of the year. At phpbb.com they have previously done this for Halloween as well as the year-end holidays. I&#8217;ve done the same thing for my biggest board &#8220;BOB&#8221; by replacing the regular logo:

with one [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve seen several phpBB boards over the years that swap out the regular graphic objects for holiday objects at certain times of the year. At phpbb.com they have previously done this for Halloween as well as the year-end holidays. I&#8217;ve done the same thing for my biggest board &#8220;BOB&#8221; by replacing the regular logo:</p>
<p><img src="http://www.forumtopics.com/busobj/menu/bob.png" /></p>
<p>with one of several holiday logos:</p>
<p><img src="http://www.forumtopics.com/busobj/menu/bob_snow.png" /> <img src="http://www.forumtopics.com/busobj/menu/bob_orn.png" /> <img src="http://www.forumtopics.com/busobj/menu/bob_wrap.png" /></p>
<p>And of course this:</p>
<p><img src="http://www.forumtopics.com/busobj/menu/bob_hat.png" /></p>
<p>During the American Thanksgiving week we used this:</p>
<p><img src="http://www.forumtopics.com/busobj/menu/bob_turkey.png" /></p>
<p>Over at the phpBB2 Refugees site we&#8217;ve swapped our normal refugee tent for one with a more holiday feel for the last several weeks:</p>
<p><img src="http://phpbb2refugees.com/menu/holiday.gif" /></p>
<p>Right now this is a manual process, which means I have to remember to edit the php code to invoke the new logo (or alternately use ftp to upload a replacement logo with the same name over the current one). Manual process? for Dave? <img src='http://www.phpbbdoctor.com/blog/wp-includes/images/smilies/icon_lol.gif' alt=':lol:' class='wp-smiley' /> </p>
<p>I&#8217;m setting up a database table with dates and alternate logo names, and will set up a cron job that every night at midnight checks to see if holiday logos are needed for the following day or not. On BOB we rotate among several logos, so there could be more than one logo at any given time. The logo information is then written to a cache file where it will be used for the following 24 hours.</p>
<p>Easy as pie.</p>
<p>Holiday pie. <img src='http://www.phpbbdoctor.com/blog/wp-includes/images/smilies/icon_cool.gif' alt='8-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpbbdoctor.com/blog/2011/12/14/celebrating-the-holidays/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>It&#8217;s About Trust, Not Technology</title>
		<link>http://www.phpbbdoctor.com/blog/2011/12/05/its-about-trust-not-technology/</link>
		<comments>http://www.phpbbdoctor.com/blog/2011/12/05/its-about-trust-not-technology/#comments</comments>
		<pubDate>Mon, 05 Dec 2011 19:17:22 +0000</pubDate>
		<dc:creator>Dave Rathbun</dc:creator>
				<category><![CDATA[Board Management]]></category>

		<guid isPermaLink="false">http://www.phpbbdoctor.com/blog/?p=363</guid>
		<description><![CDATA[I read this morning a topic in the MOD Authors forum at phpbb.com where the topic poster was trying to figure out a way to encrypt / decrypt private message text. The technical challenge was easily overcome, as someone posted some code that allows the board owner to do exactly that.
The problem is, it accomplishes [...]]]></description>
			<content:encoded><![CDATA[<p>I read this morning a topic in the MOD Authors forum at phpbb.com where the topic poster was trying to <a href="http://www.phpbb.com/community/viewtopic.php?f=71&#038;t=2145235">figure out a way to encrypt / decrypt private message text</a>. The technical challenge was easily overcome, as someone posted some code that allows the board owner to do exactly that.</p>
<p>The problem is, it accomplishes nothing. <img src='http://www.phpbbdoctor.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Private messages are often a hot topic for board owners, probably because of the privacy implications of the name &#8220;private&#8221; message. As most board owners probably know, private messages are not truly private. Anyone with database access can read the private message text. Anyone with access to a backup SQL dump can do the same. But who has this type of access, and what can be done to prevent it? <span id="more-363"></span></p>
<h3>Board Owner Access</h3>
<p>In many cases, only one person owns and manages a web site that includes a phpBB board. In this case, that person is likely to have the administrator passwords for the phpBB board, the SQL database password, and ftp or even shell access to the server itself. Even if that person does not start out knowing the SQL database password, they can get it easily enough by downloading the config.php file and getting it from there. Now suppose that private messages are encrypted  as suggested in the topic listed above. Is the data safe?</p>
<p>No, I&#8217;m afraid not. The data in the database is encrypted, but by definition the information has to be able to be unscrambled for the PM recipient to be able to see it. All the board owner has to do is download the php code to obtain the encryption key and then use it to decrypt the data. It turns out it&#8217;s not the fact that the data is encrypted or not, because the board owner has access to the data and the tools required to decrypt it. The board owner can still read private messages, it just takes longer.</p>
<h3>Encryption Versus Hashing</h3>
<p>Passwords are hashed, not encrypted. This means that even though the board owner can see what the hash string is in the field in the database, there is no way to de-hash the data. By definition a hashing algorithm is one-way. But if the private message text is hashed, then there would be no way to get the original text back! That&#8217;s why as a board owner I can change a password to something new, but I cannot tell you what your original password was.</p>
<p>The point is, hashing is secure. My password is relatively safe. Encryption by definition has to be reversible, and there is really no way to eliminate all avenues of accessing that information as long as access to the raw data is possible. </p>
<h3>It&#8217;s About Trust Not Technology</h3>
<p>Even in a more complex environment where there is more than one person with access to and permissions to manage a web site there is only so much that can be done to compartmentalize the issue. Someone, at least one person, is going to have access to the server. Even if it takes two or more people (one to get into the database, the other to decrypt the data) private messages are still not so private.</p>
<p>It all comes down to trust. If I don&#8217;t want someone to read what I wrote, I don&#8217;t write it down. I have to trust that a board administrator is not going to go about reading private messages, or that they&#8217;re not going to edit my post to make it look like I&#8217;m saying something that I didn&#8217;t, or that they&#8217;re not going to install a key-logger that captures my password as it&#8217;s entered on the login screen, or that they&#8217;re not going to try to &#8230; well, it goes on from there. Adding encryption to private messages doesn&#8217;t fix the issue.</p>
<p>And here&#8217;s one more loophole. I mentioned above that password information is hashed and therefore I cannot log in as &#8220;you&#8221; because I cannot determine your password. But I can do this:</p>
<ul>
<li>Log in to the SQL database and retrieve the hash for my password</li>
<li>Also retrieve the hash for your password and save it</li>
<li>Update your account so that your hash value is equal to mine. No I &#8220;know&#8221; your password because it&#8217;s the same as mine.</li>
<li>I log in and do whatever I want to do as &#8220;you&#8221; because I have effectively stolen your identity</li>
<li>When done, I reset your password hash back to the original value so you can log in again, and you have no idea that anything has happened</li>
</ul>
<p>Not very nice, but certainly possible. You just have to trust me not to do these things.</p>
<p>It&#8217;s for this and other reasons I have removed the PM feature from the boards that I manage. By removing the illusion of privacy implied by the name &#8220;private message&#8221; I don&#8217;t have to deal with this. <img src='http://www.phpbbdoctor.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpbbdoctor.com/blog/2011/12/05/its-about-trust-not-technology/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>phpBB3 subSilver2 Posting Form Ported to phpBB2</title>
		<link>http://www.phpbbdoctor.com/blog/2011/11/10/phpbb3-subsilver2-posting-form-ported-to-phpbb2/</link>
		<comments>http://www.phpbbdoctor.com/blog/2011/11/10/phpbb3-subsilver2-posting-form-ported-to-phpbb2/#comments</comments>
		<pubDate>Thu, 10 Nov 2011 05:53:17 +0000</pubDate>
		<dc:creator>Dave Rathbun</dc:creator>
				<category><![CDATA[MOD Writing]]></category>

		<guid isPermaLink="false">http://www.phpbbdoctor.com/blog/?p=362</guid>
		<description><![CDATA[One of the biggest complaints I&#8217;ve had with running my boards on phpBB2 is that the javascript used for BBCode and smilies insertion during the posting process offers poor (if any) support for modern browsers. Rather than reinvent the wheel, I spent some time to port parts of the subSilver2 template from phpBB3 back to [...]]]></description>
			<content:encoded><![CDATA[<p>One of the biggest complaints I&#8217;ve had with running my boards on phpBB2 is that the javascript used for BBCode and smilies insertion during the posting process offers poor (if any) support for modern browsers. Rather than reinvent the wheel, I spent some time to port parts of the subSilver2 template from phpBB3 back to phpBB2. While testing is not completely done, it seems to have been a success. I copied editor.js straight out; I don&#8217;t think I made any changes to that file but I will go back and verify that before I post a MOD. There were some minor changes made to posting_body.tpl and posting_smilies.tpl to call the new functions. For example in phpBB2 to insert a smilie we called the <code>emoticon()</code> function and now it&#8217;s calling <code>insert_text()</code> just like the BBCode insertion process.</p>
<p>I used the same function to update my canned messages MOD as well.</p>
<p>Oh, and I updated the color picker just a bit. The original color picker used values of 00, 40, 80, and two more to create an array of colors that was 5&#215;5x5. I changed it to the old &#8220;Netscape Safe&#8221; color palette and used 00, 33, 66, 99, CC, and FF and created a 6&#215;6x6 grid instead.</p>
<p>I have the new posting form activated on two different boards for the moment. As long as I don&#8217;t find too many issues I will write it up as a MOD.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpbbdoctor.com/blog/2011/11/10/phpbb3-subsilver2-posting-form-ported-to-phpbb2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Another phpBB2 MOD: Cross Post / Double Post Prevention</title>
		<link>http://www.phpbbdoctor.com/blog/2011/11/03/another-phpbb2-mod-cross-post-double-post-prevention/</link>
		<comments>http://www.phpbbdoctor.com/blog/2011/11/03/another-phpbb2-mod-cross-post-double-post-prevention/#comments</comments>
		<pubDate>Thu, 03 Nov 2011 16:03:43 +0000</pubDate>
		<dc:creator>Dave Rathbun</dc:creator>
				<category><![CDATA[Anti-spam]]></category>
		<category><![CDATA[MOD Writing]]></category>

		<guid isPermaLink="false">http://www.phpbbdoctor.com/blog/?p=361</guid>
		<description><![CDATA[As I was working through some code last night I found another &#8220;in progress&#8221; MOD that I wanted to add to the list of MODs in progress that I published yesterday. Over the years I&#8217;ve seen cases where someone from the other side of the planet has a dicey Internet connection and they end up [...]]]></description>
			<content:encoded><![CDATA[<p>As I was working through some code last night I found another &#8220;in progress&#8221; MOD that I wanted to add to the list of <a href="http://www.phpbbdoctor.com/blog/2011/11/02/new-phpbb2-modifications-coming/">MODs in progress that I published yesterday</a>. Over the years I&#8217;ve seen cases where someone from the other side of the planet has a dicey Internet connection and they end up submitting the same post twice because their browser submit times out. Or someone might post the same question in more than one forum, thinking that they&#8217;ll get more attention. Or a spammer might hit multiple forums with the same post multiple times. <img src='http://www.phpbbdoctor.com/blog/wp-includes/images/smilies/icon_mad.gif' alt=':mad:' class='wp-smiley' /> </p>
<p>I think I&#8217;ve managed to come up with something that definitely helps solve the first two scenarios and as a bonus helps the spammer problem as well. I call this my &#8220;Cross Post / Double Post&#8221; MOD, and it&#8217;s being tested on my beta board now.</p>
<p>The MOD design has so far turned out to be fairly simple. I tie into the flood control process and retrieve the post text for the last three posts by the user. From there I take the current post text and compare it to the prior posts. The first check is a straight equality check, meaning I check for the exact same post text. This will catch the &#8220;copy/paste&#8221; folks with very little overhead. If the post text is not identical, then next I use a function called <code>similar_text()</code>. (<a href="http://us.php.net/manual/en/function.similar-text.php">similar text</a> reference at php.net) This function takes three arguments. The first two are the two strings to compare, and the third is a variable to store the results of the comparison, which is a number from 0 to 100. The result code should essentially be treated as a percentage. If the two posts are 95% similar then I check to see if the original post already in the database is in the same forum as the new post being attempted. If the forums are the same, then a &#8220;Double post&#8221; exception is triggered. If the forums are different, then a &#8220;Cross post&#8221; exception is triggered instead.</p>
<p>The number of posts (3) and percentage of similarity (95) are both controlled via the board configuration screen, so it&#8217;s quite flexible. Setting the percentage threshold to zero (0) is the same as turning the comparison process off.</p>
<p>This MOD is being tested on my &#8220;beta release&#8221; board right now. The first version of the MOD did not use the <code>similar_text()</code> function mentioned above. I attempted to use the <code>soundex()</code> function instead. However it seemed that the <code>soundex()</code> function did not look at enough text, so posts that were clearly different were still being reported as being the same. Switching functions solved that issue.</p>
<p>I&#8217;m now wondering if I need to deal with setting different threshold values for different forums. I hate to do that, as it drastically increases the complexity of the code. But for example there are many forum &#8220;games&#8221; that people play in an &#8220;off topic&#8221; type of forum. Some of those games look very repetitive, and would potentially trigger the CP/DP exception handling. Then again, the current logic looks across all forums, so as long as the person is active in more areas than just the off-topic games area it might be okay. I don&#8217;t want this feature to get in the way of normal use, but I do want to help out the moderator team by capturing / rejecting double post and cross post events.</p>
<p>Stay tuned for details as we start user testing this week. <img src='http://www.phpbbdoctor.com/blog/wp-includes/images/smilies/icon_cool.gif' alt='8-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpbbdoctor.com/blog/2011/11/03/another-phpbb2-mod-cross-post-double-post-prevention/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>New phpBB2 Modifications</title>
		<link>http://www.phpbbdoctor.com/blog/2011/11/02/new-phpbb2-modifications-coming/</link>
		<comments>http://www.phpbbdoctor.com/blog/2011/11/02/new-phpbb2-modifications-coming/#comments</comments>
		<pubDate>Wed, 02 Nov 2011 17:22:16 +0000</pubDate>
		<dc:creator>Dave Rathbun</dc:creator>
				<category><![CDATA[MOD Writing]]></category>
		<category><![CDATA[Performance Tuning]]></category>
		<category><![CDATA[phpBB]]></category>

		<guid isPermaLink="false">http://www.phpbbdoctor.com/blog/?p=360</guid>
		<description><![CDATA[What has Dave been working on lately? Not blog posts, obviously.   Here are the headlines&#8230;

Full-Text Search
I created a full-text index on the post subject and text over a year ago to see if maintaining that index would cause any performance issues. I&#8217;m happy to say that I have not seen any challenges from [...]]]></description>
			<content:encoded><![CDATA[<p>What has Dave been working on lately? Not blog posts, obviously. <img src='http://www.phpbbdoctor.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Here are the headlines&#8230;</p>
<ol>
<li>Full-Text Search<br />
I created a full-text index on the post subject and text over a year ago to see if maintaining that index would cause any performance issues. I&#8217;m happy to say that I have not seen any challenges from inserts / updates with this index in place. I&#8217;m going to be altering the search screen to allow the <a href="http://dev.mysql.com/doc/refman/5.0/en/fulltext-boolean.html">full syntax offered by MySQL</a> on this type of index and hope to release that in a few months. Some of the challenges I have not yet decided how to solve are things like limiting forums &#8211; either by security or user preference &#8211; and other criteria that can be entered on the standard search screen.
</li>
<li>Capture Post Revisions<br />
I&#8217;ve also added some code to capture post revisions. We&#8217;ve had a couple of folks that come back to our board and edit their post, removing all of the text and leaving only something like &#8220;&#8230;&#8221; instead. This destroys the continuity of the topic, and as a result we&#8217;re going to now track post revisions by capturing the post text history. If needed a moderator will be able to review and then restore a prior post, and ultimately lock that post from further editing. As with the full text search I have done fairly extensive testing on how this is implemented in order to ensure that performance does not suffer, and I&#8217;ll have a few blog posts about that process. This MOD is completed and I expect to roll it out onto the main board in a few weeks. (FWIW, I <a href="http://www.phpbbdoctor.com/blog/2009/11/02/storing-post-revisions-post-locking/">first talked about this post several years ago</a>, and am just now finally getting it completed.)
</li>
<li>Moderator Posts<br />
I&#8217;ve added a new field to the post table that allows a moderator to designate whether it&#8217;s a moderator post or a user post. For example, moderators can certainly participate in a normal board conversation as a regular person. But they may also add posts in their role as a moderator. This new feature will format those posts differently so they stand out, will automatically remove the &#8220;personal&#8221; aspects of a post such as signatures, and does not increment a moderator post count for this type of post. It is intended to be a way for moderators to be able to separate out their moderator posts from their board participation posts. This MOD is also completed and expected to be released shortly.
</li>
<li>Including External Content<br />
I&#8217;ve added some cron jobs that parse RSS feeds from several blogs owned by board members. Their blog posts are automatically set up as part of their signature (as &#8220;Latest Blog Posts&#8221;) and updated once an hour. For bloggers that our community wants to recognize, this is a great way for them to get additional exposure without having to manually update their signature every time they publish a new blog post. This part of the MOD is already in use on our board. Only board admins can currently enter blogger information, as we want to go through a review process and certify blogs rather than allowing just anybody to link to an external site. This was done by altering the administrator user edit form and leaving the regular user profile form alone.</p>
<p>As an extension to this, I&#8217;m also pulling in the content from the blog post and storing that in a hidden forum. As the blog posts are added to the forum they are obviously added to the full-text index because they&#8217;re part of the same table. I am also adding these posts to the standard phpBB2 search tables at the same time. That way if someone searches for term &#8220;X&#8221; and that&#8217;s found in an external blog post, they&#8217;ll see a link in their search results. The blog address is stored on the topic table and a different icon is used to show the user that they&#8217;re leaving our board and heading to an external site. I have all of the main work done; the last requirement is altering search.php so that it offers the ability to include / exclude external content and then react to that setting accordingly. I hope to get this completed in the next few weeks.
</li>
<li>Social Media Profile Links<br />
I&#8217;ve added Facebook, Twitter, and LinkedIn fields to user profiles. These are displayed along with the other profile links, using smaller 18&#215;18 pixel logos. I&#8217;m planning on going back and redoing the other profile links to use the same form factor but that part hasn&#8217;t been done yet. Here are the images I&#8217;ve made, using logos or other material provided by each service provider. <img src="http://www.forumtopics.com/busobj/templates/bob/images/icon_twitter.png" /> <img src="http://www.forumtopics.com/busobj/templates/bob/images/icon_facebook.png" /> <img src="http://www.forumtopics.com/busobj/templates/bob/images/icon_linkedin.png" />
</ol>
<p>One thing that many of these MODs have in common is my concern for performance. We&#8217;re over 750K posts now, and still running extremely well on a server that is hosting several dozen sites, although none of them as active as our big board. Every time I touch the code performance is a primary goal. Another MOD that I&#8217;ve been planning is to port the phpBB3 posting form back to phpBB2 since it does a better job of supporting modern browsers as well as proving some additional formatting features. I haven&#8217;t even started on that yet, but I think it would be good. Now that I&#8217;ve personally switched to Chrome as my standard browser I&#8217;m noticing some interesting quirks. <img src='http://www.phpbbdoctor.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>So that&#8217;s what I&#8217;ve been up to for the past few months. <img src='http://www.phpbbdoctor.com/blog/wp-includes/images/smilies/icon_cool.gif' alt='8-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpbbdoctor.com/blog/2011/11/02/new-phpbb2-modifications-coming/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oh, The Irony&#8230;</title>
		<link>http://www.phpbbdoctor.com/blog/2011/06/14/oh-the-irony/</link>
		<comments>http://www.phpbbdoctor.com/blog/2011/06/14/oh-the-irony/#comments</comments>
		<pubDate>Tue, 14 Jun 2011 14:23:49 +0000</pubDate>
		<dc:creator>Dave Rathbun</dc:creator>
				<category><![CDATA[Anti-spam]]></category>
		<category><![CDATA[Board Management]]></category>

		<guid isPermaLink="false">http://www.phpbbdoctor.com/blog/?p=358</guid>
		<description><![CDATA[One of my other blogs had been hit and hit hard by spammer comments advertising headphones. This morning I noticed this one here on this blog: 
That’s specifically aimed at human-powered paid-to-comment spam. I would rather already have excellent-quality comments than the next quantity of comments.tour headphones Sadly, I’m nonetheless getting an awful lot of [...]]]></description>
			<content:encoded><![CDATA[<p>One of my other blogs had been hit and hit hard by spammer comments advertising headphones. This morning I noticed this one here on this blog: </p>
<blockquote><p>That’s specifically aimed at human-powered paid-to-comment spam. I would rather already have excellent-quality comments than the next quantity of comments.tour headphones Sadly, I’m nonetheless getting an awful lot of spam comments (what’s up, Akismet?), so I think it’s time to install some additional defense layers.</p></blockquote>
<p>The words &#8220;tour headphones&#8221; were a link, of course. Subtle, it was not. <img src='http://www.phpbbdoctor.com/blog/wp-includes/images/smilies/icon_lol.gif' alt=':lol:' class='wp-smiley' />  But I found it extremely ironic and ultimately amusing that the comment itself talked about spam. If you pick a few phrases from that comment you&#8217;ll find the exact same thing on other blogs / boards as well, or at least I did when I searched.</p>
<p>I&#8217;ve decided to contact the headphone manufacturer directly and let them know that I will never buy their products. Ever. Might not change anything, but it will make me feel better.</p>
<p>Oh, and I added specific code to my anti-spam process to look for this particular type of link. <img src='http://www.phpbbdoctor.com/blog/wp-includes/images/smilies/icon_cool.gif' alt='8-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpbbdoctor.com/blog/2011/06/14/oh-the-irony/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mobile Application Versus Mobile Template</title>
		<link>http://www.phpbbdoctor.com/blog/2011/06/09/mobile-application-versus-mobile-template/</link>
		<comments>http://www.phpbbdoctor.com/blog/2011/06/09/mobile-application-versus-mobile-template/#comments</comments>
		<pubDate>Thu, 09 Jun 2011 15:58:33 +0000</pubDate>
		<dc:creator>Dave Rathbun</dc:creator>
				<category><![CDATA[Board Management]]></category>

		<guid isPermaLink="false">http://www.phpbbdoctor.com/blog/?p=356</guid>
		<description><![CDATA[I have had a couple of requests now for Tapatalk or something similar on my board. The Tapatalk application does not currently support phpBB2, but iPhone / Android support is becoming more of an interest to folks. Tapatalk is not a template or theme, it&#8217;s an application designed to interact with a discussion board (they [...]]]></description>
			<content:encoded><![CDATA[<p>I have had a couple of requests now for Tapatalk or something similar on my board. The Tapatalk application does not currently support phpBB2, but iPhone / Android support is becoming more of an interest to folks. Tapatalk is not a template or theme, it&#8217;s an application designed to interact with a discussion board (they support phpBB3 as well as several others).</p>
<p>I have to admit that I find this to be a far more intriguing idea than a mobile template. The folks behind Tapatalk offer a free API  that would allow developers to extend the app to different forum systems. It would be interesting to see if anyone is currently working on phpBB2.</p>
<p><a href="http://www.tapatalk.com/">Tapatalk</a></p>
<p>I&#8217;m registering on their &#8220;Forum owner&#8221; area and will see what things look like.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpbbdoctor.com/blog/2011/06/09/mobile-application-versus-mobile-template/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How Time Flies&#8230;</title>
		<link>http://www.phpbbdoctor.com/blog/2011/05/02/how-time-flies/</link>
		<comments>http://www.phpbbdoctor.com/blog/2011/05/02/how-time-flies/#comments</comments>
		<pubDate>Mon, 02 May 2011 14:39:57 +0000</pubDate>
		<dc:creator>Dave Rathbun</dc:creator>
				<category><![CDATA[blog]]></category>

		<guid isPermaLink="false">http://www.phpbbdoctor.com/blog/?p=354</guid>
		<description><![CDATA[Wow. Just. Wow. It&#8217;s been so long since I&#8217;ve posted here, I&#8217;m wondering if it will echo when I publish this?  
Things have been really busy in real life, which I suppose goes without saying. I have two boys that are growing up and going through cub scouts and sports and school and everything [...]]]></description>
			<content:encoded><![CDATA[<p>Wow. Just. Wow. It&#8217;s been so long since I&#8217;ve posted here, I&#8217;m wondering if it will echo when I publish this? <img src='http://www.phpbbdoctor.com/blog/wp-includes/images/smilies/icon_lol.gif' alt=':lol:' class='wp-smiley' /> </p>
<p>Things have been really busy in real life, which I suppose goes without saying. I have two boys that are growing up and going through cub scouts and sports and school and everything else.</p>
<p>Yet, here I am. I am back to reconsider whether I need to upgrade from phpBB2 to phpBB3 for my main board (which as I write this is very close to collecting it&#8217;s 700,000th post, and is running almost one million page views a week). I am back to see if I can figure out how to integrate FB &#8220;likes&#8221; into my board, and how to allow folks to add Linked-In to their profile. That last one, at least, should be easy.</p>
<p>Things have been humming along quite nicely, although the spam frequency has started to go up. Seems that my Checkbox Challenge is either less of a deterrent, or human spamming is on the rise. For that, I guess I need to look at my server logs and see how long those folks are taking to get through the registration process. Fortunately there is still no answer for the Spammer Hammer, which makes it easy for my moderator team to quickly and easily eradicate all traces of the spammer from the board.</p>
<p>And gmail? Is it still the number one source of spam attempts? It would be interesting to check. I have not looked at those statistics in months (years?).</p>
<p>And I missed Libertyvasion. <img src='http://www.phpbbdoctor.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' />  I had intended to go, but all of a sudden August was here and I had not made any plans, so I stayed home. I have watched some of the sessions posted to Youtube, and it did look fun. I will hopefully be ready for the next one. Anyone know when / where that will be? <img src='http://www.phpbbdoctor.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpbbdoctor.com/blog/2011/05/02/how-time-flies/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

