<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[PunBB Forums — Templates]]></title>
		<link>https://punbb.informer.com/forums/topic/3352/templates/</link>
		<atom:link href="https://punbb.informer.com/forums/feed/rss/topic/3352/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Templates.]]></description>
		<lastBuildDate>Mon, 23 Feb 2004 04:19:14 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Templates]]></title>
			<link>https://punbb.informer.com/forums/post/10496/#p10496</link>
			<description><![CDATA[<p>At that level you can, but say I wanted to have the user post information (from, registered and posts) in another order you couldn&#039;t.</p><p>And also, you can&#039;t uze css to replace &#039;Home | User list ...&#039; with &#039;Home : User list ...&#039;.</p>]]></description>
			<author><![CDATA[null@example.com (0zone)]]></author>
			<pubDate>Mon, 23 Feb 2004 04:19:14 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/10496/#p10496</guid>
		</item>
		<item>
			<title><![CDATA[Re: Templates]]></title>
			<link>https://punbb.informer.com/forums/post/10495/#p10495</link>
			<description><![CDATA[<div class="quotebox"><cite>0zone wrote:</cite><blockquote><p>Thats all ok, excluding the css part.</p><p>CSS can style things, but it can&#039;t put things together. Its only capable of so much. You don&#039;t see designers using the same code over and over to get differant looking websites do you? No.</p></blockquote></div><p>Yes you do.<br /><a href="http://www.csszengarden.com/">http://www.csszengarden.com/</a><br />Same markup, dozens (or more) different sites.</p>]]></description>
			<author><![CDATA[null@example.com (Paul)]]></author>
			<pubDate>Mon, 23 Feb 2004 03:55:00 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/10495/#p10495</guid>
		</item>
		<item>
			<title><![CDATA[Re: Templates]]></title>
			<link>https://punbb.informer.com/forums/post/10494/#p10494</link>
			<description><![CDATA[<p>Thats all ok, excluding the css part.</p><p>CSS can style things, but it can&#039;t put things together. Its only capable of so much. You don&#039;t see designers using the same code over and over to get differant looking websites do you? No.</p>]]></description>
			<author><![CDATA[null@example.com (0zone)]]></author>
			<pubDate>Mon, 23 Feb 2004 03:49:05 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/10494/#p10494</guid>
		</item>
		<item>
			<title><![CDATA[Re: Templates]]></title>
			<link>https://punbb.informer.com/forums/post/10491/#p10491</link>
			<description><![CDATA[<div class="quotebox"><cite>0zone wrote:</cite><blockquote><p>I do save the templates to disk, but instead of including them each time they are needed I load them on their first request and then eval them. And yes eval is faster than including because include reads the file AND evals it.</p></blockquote></div><p>And how does that differ from reading the file manually and then evaling it?</p><p>Edit: *hits head* Now I see what you mean. That&#039;s true. However, your method doesn&#039;t at all take advantage of the benefits of PHP accelerators such as mmcache, PHPA and Zend Optimizer.</p><div class="quotebox"><cite>0zone wrote:</cite><blockquote><p>My board is not slow at all mind you, it gets an average of a 0.025 loadtime. And yes, preg_replaces are slow, but as they are only called once when the template is compiled it doesn&#039;t matter.</p></blockquote></div><p>I never said your board was slow. I just said using templates in that matter, or any matter for that matter (no pun intended), will be a lot slower than just outputting static markup.</p><p>Also, the average loadtime for your board doesn&#039;t tell me anything. 0.025 could mean it&#039;s blistering fast, but it could also mean it&#039;s incredibly slow. Heck, I can get huge boards like vBulletin or IPB to load that fast under the right circumstances. Loadtimes are only interesting when comparing them to other boards on the same hardware and with the same data. The variables that affect loadtimes are endless. What kind of hardware the board is running on, the versions of all used tools (Apache, PHP, MySQL etc.), whether a PHP accelerator is used or not, the number of users/topics/posts in the database, the number of board features enabled, what kind of concurrency was used when running the benchmarks (i.e. what value for -c when running apachebench), etc. etc. etc.</p><p>We could talk about this forever. The fact remains: PunBB will not have a template system in any forseable future. I have to draw the line somewhere if PunBB is to remain the <a href="http://punbb.org/about.php">&quot;faster, smaller and less graphic alternative&quot;</a>. PunBB 2.0 (whenever that may be) will most likely be styled completely with CSS and then a template system won&#039;t be needed.</p>]]></description>
			<author><![CDATA[null@example.com (Rickard)]]></author>
			<pubDate>Sun, 22 Feb 2004 23:58:00 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/10491/#p10491</guid>
		</item>
		<item>
			<title><![CDATA[Re: Templates]]></title>
			<link>https://punbb.informer.com/forums/post/10488/#p10488</link>
			<description><![CDATA[<p>I do save the templates to disk, but instead of including them each time they are needed I load them on their first request and then eval them. And yes eval is faster than including because include reads the file AND evals it.</p><p>My board is not slow at all mind you, it gets an average of a 0.025 loadtime. And yes, preg_replaces are slow, but as they are only called once when the template is compiled it doesn&#039;t matter.</p><p>EDIT: I will also be looking at a way to cut the number of preg_replaces down <img src="https://punbb.informer.com/forums/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></description>
			<author><![CDATA[null@example.com (0zone)]]></author>
			<pubDate>Sun, 22 Feb 2004 23:00:36 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/10488/#p10488</guid>
		</item>
		<item>
			<title><![CDATA[Re: Templates]]></title>
			<link>https://punbb.informer.com/forums/post/10467/#p10467</link>
			<description><![CDATA[<div class="quotebox"><cite>0zone wrote:</cite><blockquote><p>Rickard, thats not true, my template engine is only 20 lines long, its also fast and even supports if statements.</p></blockquote></div><p>It&#039;s not the functions for loading/compiling etc. I consider a large addition to the code, it&#039;s rewriting every single script so that they utilize the templates.</p><p>You&#039;re executing no less than 8 preg_replace&#039;s for every single template and doing disk IO to load/save. I wouldn&#039;t call that fast when comparing it to direct static output. Say a page is built up of 20 templates. That equals 160 calls to preg_replace and 20 disk reads. That code will be MUCH slower than direct static output.</p><p>If I were you, I would save the compiled templates to disk and then just use include/require instead of loading them into memory and using eval(). That way PHP &quot;accelerators&quot; such as mmcache and Zend Optimizer can cache the PHP bytecode for the templates and your pages will generate much faster.</p>]]></description>
			<author><![CDATA[null@example.com (Rickard)]]></author>
			<pubDate>Sun, 22 Feb 2004 13:11:10 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/10467/#p10467</guid>
		</item>
		<item>
			<title><![CDATA[Re: Templates]]></title>
			<link>https://punbb.informer.com/forums/post/10455/#p10455</link>
			<description><![CDATA[<p>I think your right Paul. Rickard, thats not true, my template engine is only 20 lines long, its also fast and even supports if statements.</p><p><a href="http://0zonedesign.hostcubed.com/smartbb/global.php">http://0zonedesign.hostcubed.com/smartbb/global.php</a></p><p>Look for &#039;protected function tpl_parse($template, $debug = false) {&#039;.</p>]]></description>
			<author><![CDATA[null@example.com (0zone)]]></author>
			<pubDate>Sun, 22 Feb 2004 00:41:51 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/10455/#p10455</guid>
		</item>
		<item>
			<title><![CDATA[Re: Templates]]></title>
			<link>https://punbb.informer.com/forums/post/10428/#p10428</link>
			<description><![CDATA[<p>Face it. Your only hope is that somebody else will feel the same as you do and come up with an alternative release of PunBB which includes templates.</p>]]></description>
			<author><![CDATA[null@example.com (Paul)]]></author>
			<pubDate>Sat, 21 Feb 2004 16:47:23 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/10428/#p10428</guid>
		</item>
		<item>
			<title><![CDATA[Re: Templates]]></title>
			<link>https://punbb.informer.com/forums/post/10427/#p10427</link>
			<description><![CDATA[<div class="quotebox"><cite>0zone wrote:</cite><blockquote><div class="quotebox"><cite>Rickard wrote:</cite><blockquote><div class="quotebox"><cite>0zone wrote:</cite><blockquote><p>Oh well :(</p></blockquote></div><p>If PunBB had a template system, attachments, private messaging, polls etc. it wouldn&#039;t be any different or any better than all the other BB&#039;s out there. It&#039;s scaled down for a purpose you know.</p></blockquote></div><p>But I&#039;m only asking that a basic template system be made so that I don&#039;t have to go through the source files and replace all the code that way.</p></blockquote></div><p>Yes, but such a template system would be a huge addition to the current codebase. Also, PunBB&#039;s lack of a template system is one of the things that make it fast.</p>]]></description>
			<author><![CDATA[null@example.com (Rickard)]]></author>
			<pubDate>Sat, 21 Feb 2004 16:46:28 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/10427/#p10427</guid>
		</item>
		<item>
			<title><![CDATA[Re: Templates]]></title>
			<link>https://punbb.informer.com/forums/post/10420/#p10420</link>
			<description><![CDATA[<div class="quotebox"><cite>Rickard wrote:</cite><blockquote><div class="quotebox"><cite>0zone wrote:</cite><blockquote><p>Oh well <img src="https://punbb.informer.com/forums/img/smilies/sad.png" width="15" height="15" alt="sad" /></p></blockquote></div><p>If PunBB had a template system, attachments, private messaging, polls etc. it wouldn&#039;t be any different or any better than all the other BB&#039;s out there. It&#039;s scaled down for a purpose you know.</p></blockquote></div><p>But I&#039;m only asking that a basic template system be made so that I don&#039;t have to go through the source files and replace all the code that way.</p>]]></description>
			<author><![CDATA[null@example.com (0zone)]]></author>
			<pubDate>Sat, 21 Feb 2004 14:38:43 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/10420/#p10420</guid>
		</item>
		<item>
			<title><![CDATA[Re: Templates]]></title>
			<link>https://punbb.informer.com/forums/post/10414/#p10414</link>
			<description><![CDATA[<p>If you are going to do a completely customized design then even if PunBB used templates you would still have to customize them. There is no difference between customizing the markup in the php files and customizing markup in templates until of course there is an upgrade.</p>]]></description>
			<author><![CDATA[null@example.com (Paul)]]></author>
			<pubDate>Sat, 21 Feb 2004 13:43:30 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/10414/#p10414</guid>
		</item>
		<item>
			<title><![CDATA[Re: Templates]]></title>
			<link>https://punbb.informer.com/forums/post/10412/#p10412</link>
			<description><![CDATA[<div class="quotebox"><cite>0zone wrote:</cite><blockquote><p>Oh well :(</p></blockquote></div><p>If PunBB had a template system, attachments, private messaging, polls etc. it wouldn&#039;t be any different or any better than all the other BB&#039;s out there. It&#039;s scaled down for a purpose you know.</p>]]></description>
			<author><![CDATA[null@example.com (Rickard)]]></author>
			<pubDate>Sat, 21 Feb 2004 13:29:53 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/10412/#p10412</guid>
		</item>
		<item>
			<title><![CDATA[Re: Templates]]></title>
			<link>https://punbb.informer.com/forums/post/10408/#p10408</link>
			<description><![CDATA[<p>Oh well <img src="https://punbb.informer.com/forums/img/smilies/sad.png" width="15" height="15" alt="sad" /></p>]]></description>
			<author><![CDATA[null@example.com (0zone)]]></author>
			<pubDate>Sat, 21 Feb 2004 12:39:55 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/10408/#p10408</guid>
		</item>
		<item>
			<title><![CDATA[Re: Templates]]></title>
			<link>https://punbb.informer.com/forums/post/10403/#p10403</link>
			<description><![CDATA[<p>He is refering to the folder include/template/. In there you will find a few .tpl-files that will allow you to incorporate PunBB into your website design. However, a full-blown template system with individual templates for each part of the forum just won&#039;t happen. I&#039;ve made a design choice not to include such a system and I&#039;m sticking to it.</p>]]></description>
			<author><![CDATA[null@example.com (Rickard)]]></author>
			<pubDate>Sat, 21 Feb 2004 10:10:27 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/10403/#p10403</guid>
		</item>
		<item>
			<title><![CDATA[Re: Templates]]></title>
			<link>https://punbb.informer.com/forums/post/10399/#p10399</link>
			<description><![CDATA[<p>There is no tremplates folder... <img src="https://punbb.informer.com/forums/img/smilies/hmm.png" width="15" height="15" alt="hmm" /></p>]]></description>
			<author><![CDATA[null@example.com (0zone)]]></author>
			<pubDate>Sat, 21 Feb 2004 07:11:44 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/10399/#p10399</guid>
		</item>
	</channel>
</rss>
