Free web design - CHAPTER 12 STYLING PHPBB 357 Defining blocks
CHAPTER 12 STYLING PHPBB 357 Defining blocks provokes a little nitpicking from the template engine. Block definitions must occur on their own line, and the code inside the HTML comment identifiers must be set off from each identifier by a space. Here is a great example of what not to do when defining blocks: . .
You’re logged in! Notice the problems with this example. Line 1 has the block delineation on the same line as other code; phpBB does not like this. Line 3 shows the END keyword is directly next to the opening HTML comment identifier, where it should be set off with one space. These kinds of errors are easy to make, but you need to be careful to avoid them, because they can cause problems, even to the point of malfunction. Limitations on Using Templates phpBB 2.0 templates have some limitations that you should be aware of before you start modifying or creating templates. Some of these limitations are due to the nature of its syntax; others are due to performance and reliability concerns. Because the phpBB templating system uses HTML comments to denote blocks of HTML code, it is generally a good idea to place a C++-style comment (//) before the text of your HTML comment, after the opening marking (