2010-05-19, 04:45 PM
Both the code for slash me and slash slap have hard coded colors. They should be given a class so that they can be altered for different layouts.
Minor change but I'm on a mission to make remove all hard-coded styles from MyBB. Can I suggest .fun class?
$message = preg_replace('#(>|^|\r|\n)/me ([^\r\n<]*)#i', "\\1<span style=\"color: red;\">* {$this->options['me_username']} \\2</span>", $message);
$message = preg_replace('#(>|^|\r|\n)/slap ([^\r\n<]*)#i', "\\1<span style=\"color: red;\">* {$this->options['me_username']} {$lang->slaps} \\2 {$lang->with_trout}</span>", $message);
}
Minor change but I'm on a mission to make remove all hard-coded styles from MyBB. Can I suggest .fun class?