The smilies worked after I added the code, but videos don't work any more(I imagine voice posts won't work either). I imagine it's because it replaces
$e->print_text(); with: var string text = $e.text;
But when I try to replace $e.text; in the smiley code with $e->print_text(); it breaks the code.
Anyone know how to make these bits of code work happily together?
My code is here: