Hello All,
I am trying to understand the bbcdoe parsing function and I couldn't get it to work
Here is my test code
PHP Code:
<hookname>bbcode_create</hookname>
<phpcode><![CDATA[
$this->tag_list['option']['test'] = array(
'callback' => 'handle_external',
'strip_empty' => true,
'stop_parse' => true,
'disable_smilies' => true,
'disable_wordwrap' => true,
'strip_space_after' => 1,
'external_callback' => 'handle_test_bbcode'
);
$this->tag_list['no_option']['test'] = array(
'callback' => 'handle_external',
'strip_empty' => true,
'stop_parse' => true,
'disable_smilies' => true,
'disable_wordwrap' => true,
'strip_space_after' => 1,
'external_callback' => 'handle_test_bbcode'
if (!function_exists('handle_test_bbcode'))
{
{
function handle_test_bbcode( &$parser, $text )
{
$parser->options['cachable'] = false;
return 'success';
}
}
]]></phpcode>
I create a new bbcode call test
Then I create a new thread with the following content
Code:
Above the test
[test] inside the test[/test] next to test
and nothing happen.
What did I do wrong? Please help please
Thanks