PDA

View Full Version : Hooking in my modification


ralle89
12-26-2006, 03:01 PM
Hello vbulletin people.

I have made my own syntax highlighters and I wanted to use them as vbcodes.

I made some code and hooked it on the 'bbcode_create' hook.

This is the code I attached:

$this->tag_list['option']['trigger'] = array(
'callback' => 'handle_external',
'strip_empty' => true,
'stop_parse' => true,
'disable_smilies' => true,
'disable_wordwrap' => true,
'strip_space_after' => 1,
'external_callback' => 'handle_trigger'
);
$this->tag_list['option']['jass'] = array(
'callback' => 'handle_external',
'strip_empty' => true,
'stop_parse' => true,
'disable_smilies' => true,
'disable_wordwrap' => true,
'strip_space_after' => 1,
'external_callback' => 'handle_jass'
);
I ofcourse made the functions 'handle_jass' and 'handle_trigger' too but this was the code I made..

The functions works fine but this code wont colorize my strings when saying something and something.