BBCode parser
Posted: Fri Nov 11, 2005 7:10 am
Hi,
Just spotted when replying to someone's thread, that if you reply with an uneven number of
Just spotted when replying to someone's thread, that if you reply with an uneven number of
Code: Select all
orCode: Select all
tags, none get parsed.
The exact example I found this with was two opening, one close:
[quote]Hi, please use PHP tags when posting PHP code (i.e. swap theCode: Select all
tags forCode: Select all
tags )
To use an objects properties/methods within a function, you must decalre the global object:
[php]<?php
function someFunction()
{
global $obj;
$obj->method();
}
?>[/php]
[/quote]
This isn't really a suggestion, more of a notification but maybe someone would like to look into the bbcode parser phpbb uses and perhaps submit a contribution if you are bored