To remove images you would need to change
Code:
$comment= $bbcode_parser->do_parse($longcomment, 1,1,1,1);
to
Code:
$comment= $bbcode_parser->do_parse($longcomment, 0,1,1,0);
I've not tested this but basically the first 0 turns off html and the last 0 turns off image code. Please try it and feedback.
VBSEO for avatars:
My avatars are in the format url/avatars/username.gif?datelinestamp
I can use this method, due to the fact that usernames are unique.
The code I use on the hack is
Code:
<img align=\"absmiddle\" src=\"{$website}/avatars/{$row['username']}.gif\" width=\"30\" height=\"30\"></img>
place is where you want the avatar to show