Templating ... a simple guide
-
- Registered User
- Posts: 1546
- Joined: Wed Apr 09, 2003 8:44 pm
- Location: London, United Kingdom
Re: Templating ... a simple guide
2.2 will, but the phpBB Template Downloads section won't include templates that utilise php inside them.
Rob
Re: Templating ... a simple guide
It will, but only if php option is enabled. By default that option is disabled.metest12 wrote:Roberdin wrote:Of course, note that phpBB will not support running php in templates for obvious reasons.
2.2 will, as stated in the first post of this topic:
psoTFX wrote:PHP
A contentious decision has seen the ability to include PHP within the template introduced. This is achieved by enclosing the PHP within relevant tags:
Formerly known as CyberAlien.
Free phpBB styles | Premium responsive XenForo styles | Iconify - modern open source replacement for glyph fonts
Free phpBB styles | Premium responsive XenForo styles | Iconify - modern open source replacement for glyph fonts
Re: Templating ... a simple guide
We will not make available templates @ http://www.phpbb.com" target="_blank which include PHP.
Re: Templating ... a simple guide
Out of curiosity, why is Smarty not used as template system?psoTFX wrote:Conditionals/Control structures
The most significant addition to 2.2.x are conditions or control structures, "if something then do this else do that". The system deployed is very similar to Smarty.
Re: Templating ... a simple guide
It's enormous and behaves more like a general "parser" than template engine ... I also heavily dislike their block system.
Re: Templating ... a simple guide
Alright, looking in here I've not seen anything mentioning checking for blank strings. For me, using "IF [string] gt 0" seems to work, but the PM module isn't working so I have no clue whether or not it will do what I want when the string isn't empty...
I'm going to do some more testing now...
[edit]
Did some testing, it always evals False. Pso, how to check string lengths? I could use PHP but if the templating system already has a function then I would like to know it...
I'm going to do some more testing now...
[edit]
Did some testing, it always evals False. Pso, how to check string lengths? I could use PHP but if the templating system already has a function then I would like to know it...
Re: Templating ... a simple guide
<!-- IF U_INDEX -->Legoguy wrote:Alright, looking in here I've not seen anything mentioning checking for blank strings.
U_INDEX is set and equal to {U_INDEX}
<!-- ELSE -->
U_INDEX is empty or not set
<!-- ENDIF -->
Formerly known as CyberAlien.
Free phpBB styles | Premium responsive XenForo styles | Iconify - modern open source replacement for glyph fonts
Free phpBB styles | Premium responsive XenForo styles | Iconify - modern open source replacement for glyph fonts
Re: Templating ... a simple guide
It doesn't matter, you don't need variable includes in just the forum. I was trying to use them for parts of my own site or custom changes to the forum.Roberdin wrote:2.2 will, but the phpBB Template Downloads section won't include templates that utilise php inside them.
-
- Registered User
- Posts: 1546
- Joined: Wed Apr 09, 2003 8:44 pm
- Location: London, United Kingdom
Re: Templating ... a simple guide
I was referring to people who were planning to include php in general release templates.
Rob
- Lord Illicious
- Registered User
- Posts: 19
- Joined: Mon Nov 26, 2001 8:52 am
- Contact:
Re: Templating ... a simple guide
OH no my fav suffix TPL is replaced by the ol HTML.
Will feel more like site designing rather than forum theme designing.
Will feel more like site designing rather than forum theme designing.