<?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>Time Recursion &#187; design</title>
	<atom:link href="http://www.timerecursion.com/tag/design/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.timerecursion.com</link>
	<description></description>
	<lastBuildDate>Mon, 23 Aug 2010 20:35:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>The joys of upgrading from phpBB2 to 3</title>
		<link>http://www.timerecursion.com/maelstrom/the-joys-of-upgrading-from-phpbb2-to-3/</link>
		<comments>http://www.timerecursion.com/maelstrom/the-joys-of-upgrading-from-phpbb2-to-3/#comments</comments>
		<pubDate>Mon, 23 Feb 2009 22:03:16 +0000</pubDate>
		<dc:creator>Primož</dc:creator>
				<category><![CDATA[Maelstrom]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[food]]></category>
		<category><![CDATA[hacker]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[joy oh joy]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[phpBB]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[templating]]></category>

		<guid isPermaLink="false">http://www.timerecursion.com/?p=162</guid>
		<description><![CDATA[It&#8217;s more than one year from the official release of phpBB3 and there are still many forums running the older version, no matter the fact, that the beta versions of the third major release have been available for about three years already. And so, after a period of reasoning the pros and the cons of [...]]]></description>
			<content:encoded><![CDATA[<p>
<a href="http://www.timerecursion.com/wp-content/gallery/general/phpbb_logo.jpg" title="" class="shutterset_singlepic35" >
	<img class="ngg-singlepic ngg-left" src="http://www.timerecursion.com/wp-content/gallery/cache/35_watermark_200x152_phpbb_logo.jpg" alt="phpbb_logo" title="phpbb_logo" />
</a>
It&#8217;s more than one year from the official release of phpBB3 and there are still many forums running the older version, no matter the fact, that the beta versions of the third major release have been available for about three years already. And so, after a period of reasoning the pros and the cons of the upgrade, the time for switching to the new version came also for a forum I help to run, and with that a picnic basket of complications. Why a picnic basket? Because it usually looks very nice and inviting, and it holds an unimaginable quantity of various food, that is usually so different that it doesn&#8217;t go together well.</p>
<p>And so we strike right at the core of the issue at hand. The forum has a layout, that is optimised to work with both a joomla front-end and the phpBB2 forum itself, which is littered with php code for various modules, scripts and hacks. To sum it up, it&#8217;s not really a nice piece of code, that you can expect to work with everything you want.<span id="more-162"></span></p>
<p>The first big disappointment I was struck with, was the complete rewrite of the styling mechanisms in phpBB3. It doesn&#8217;t support php styles anymore! Just plain html! Now how on Earth am I supposed to make this design to work if I can&#8217;t use php? A little further research shows that I can&#8217;t forcefully hack the styling mechanism and bypass the style selection so easily, but I do find out that there exist special php and includephp tags with which I can insert php into my styles. Hooray! My mission is not impossible after all. But this requires additional settings which lower the safety of the whole forum setup, which I figure outweighs the inability to have all of the modules displayed on the forums. So I start with the hectic editing of about 30 files that define the appearance of the forum.</p>
<p>The next disappointment that was literally shoved up my face, was the complete lack of any documentation that would cover all of the special template variables that can be used in styling. How could they miss something as important as that? There did exist a complete collection, made by some enthusiast, but it was unfortunately removed some time ago. On the bright side, I found a collection of template variables that are used for private messaging, which are located on <a href="http://www.easytutorials.org/phpbb3_tpl_privmsg.html" target="_blank">easytutorials.org</a>:</p>
<blockquote><p><em>S_NEW_PM</em>. This flag is set when user has a new private message. It is intended to be used for one time notification only, so once user changes page it disappears. Value is ether &#8220;1&#8243; or &#8220;0&#8243;.</p>
<p><em>S_USER_NEW_PRIVMSG</em>. This variable shows number of new private messages. Unlike S_NEW_PM it always shows number of new messages, not once.</p>
<p><em>S_USER_UNREAD_PRIVMSG</em>. This variable shows number of unread private messages. Private messages are treated as unread if they are unread, but not new to current session.</p>
<p><em>PRIVATE_MESSAGE_INFO_UNREAD</em>. This is a string that shows &#8220;X unread message(s)&#8221; (lang variables <em>UNREAD_PM</em> or <em>UNREAD_PMS</em>). It is empty if there are no unread messages.</p>
<p><em>PRIVATE_MESSAGE_INFO</em>: This is a string that shows private messages status. If there are no new messages it shows &#8220;0 new messages&#8221; (lang variable <em>NO_NEW_PM</em>). If there are new private messages it shows &#8220;X new message(s)&#8221; (lang variables <em>NEW_PM</em> or <em>NEW_PMS</em>)</p>
<p><em>U_POPUP_PM / UA_POPUP_PM</em>: url of private message notification pop-up. It is used in javascript that shows new pm notification. Difference between <em>U_</em> and<em> UA_</em> versions is &amp;amp;: in <em>U_</em> its &amp;amp;, in <em>UA_</em> its &amp;</p>
<p><em>U_PRIVATEMSGS</em>: url to private messages ucp module.</p>
<p><em>U_RETURN_INBOX</em> / <em>UA_RETURN_INBOX</em>: urls to inbox in usercp pm module. Difference between <em>U_</em> and <em>UA_</em> versions is &amp;amp; in url: for for <em>U_</em> its &amp;amp, for <em>UA_</em> its &amp;</p>
<p><em>S_DISPLAY_PM</em>: set if private messages should be displayed.</p>
<p><em>S_USER_PM_POPUP</em>: set if pm pop-up should be displayed.</p></blockquote>
<p>But all this didn&#8217;t solve the problems. The most ironic part of all of this is that the php and includephp tags don&#8217;t seem to work correctly all the time. Or maybe they execute the included code just partially. And that&#8217;s a big problem, because I still can&#8217;t figure how to define global variables into my template. I really don&#8217;t want to resort to manually defining them for each snippet of the code that needs them. This just sucks.</p>
<p>But, there are some positive aspects as-well. The transition from the phpBB2 to phpBB3 seems to work very smoothly, if we exclude the specific styling problems. The database conversion works fine, and the admin and moderation control panels are more intuitive and helpful than the old ones.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.timerecursion.com/maelstrom/the-joys-of-upgrading-from-phpbb2-to-3/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
