This minor bug occurs when a post by a user with a translated username is reported to a moderator and posted to a thread. The HTML comments are shown because they are converted to HTML-safe characters prior to the global hook being run.
Before-
After-
Fix-
In functions_vbenterprisetranslator_hooks.php find:
PHP Code:
if (strpos($output,'<!--vBET_ENTA-->')) {
$output =& str_replace(array('<!--vBET_SNTA--><!--vBET_NRE-->',
'<!--vBET_ENTA-->'), '', $output);
Replace with:
PHP Code:
if (strpos($output,'<!--vBET_ENTA-->') || strpos($output,'<!--vBET_ENTA-->')) {
$output =& str_replace(array('<!--vBET_SNTA--><!--vBET_NRE-->',
'<!--vBET_ENTA-->','<!--vBET_SNTA-->','<!--vBET_ENTA-->'), '', $output);
There's probably a smarter fix that would allow these comments to be used i.e. in 'code' bbcode, but that's not a concern in my case.