includes/class_bbcode.php
They way I do it is
1) put a function anywhere in the file
PHP Code:
function handle_bbcode_mything($text, $display='') {
//display is the tag options, text is whats in the tag
}
2) modify fetch_tag_list
PHP Code:
$tag_list['option']['mything'] = array(
'callback' => 'handle_bbcode_mything',
'strip_empty' => true or false,
'strip_space_after' => number of space to strip,
);
$tag_list['nooption']['mything'] = array(
note the option /no option is whethere there is any display value, ie is yor tag [mything]stuff[/mything] or [mything=some option]stuff[/mything]