An idea for the Quote Issue:
Hook: bbcode_create
PHP Code:
$this->tag_list['option']['quote']['callback'] = 'handle_external';
$this->tag_list['option']['quote']['external_callback'] = 'me_quote_handler';
$this->tag_list['no_option']['quote']['callback'] = 'handle_external';
$this->tag_list['no_option']['quote']['external_callback'] = 'me_quote_handler';
if (!function_exists('me_quote_handler'))
{
function me_quote_handler(&$parser, $message, $username)
{
if ($username)
{
$message = preg_replace('#^(([ \t]|\[[a-z]+[^\]]*\])*)/me[ \t](.*)$#Uim', '<b><font color=red>* ' . $username . ' $3</font></b>', $message);
}
else
{
$message = preg_replace('#^(([ \t]|\[[a-z]+[^\]]*\])*)/me[ \t](.*)$#Uim', '& #47;me $3', $message);
}
return $parser->handle_bbcode_quote($message, $username);
}
}