I have my own mods that had similar issues and were fixed by using a different hook location. Specifically the bug was not parsing after AJAX. I would have listed all the locations you need to include events and such, but I'm sleepy right now.
Your replacement would have to be made on the $var['message'] rather than $output (where $var is the correct name - $post, $message, etc - it would be $eventinfo['event'] for calendars I think)
|