PDA

View Full Version : Help on bbcode please


Moya
02-22-2006, 06:40 AM
Hello All,

I am trying to understand the bbcdoe parsing function and I couldn't get it to work

Here is my test 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



Above the test

inside the test next to test



and nothing happen.

What did I do wrong? Please help please

Thanks

Moya
02-23-2006, 07:06 AM
Anyone?????????????

Luggruff
02-23-2006, 06:59 PM
Don't really understand, explain more.. sounds like something that's allready in progress..

Moya
02-24-2006, 05:17 AM
Never mind I got it figured out

Adult SEO
11-14-2006, 01:20 PM
Hi!

Moya, could you please share how you did it?

I've been trying to figure it out also but am stuck on the converted BBcode not being available to edit in the Wysiwyg editor.

Best Regards,
Jan Jaap