Indeed the bug came back, but we found solution - it will be included in next release.
For quicke fix please:
1. Open file /includes/vbenterprisetranslator_functions
2. Find function vbet_addScriptToTable:
Code:
function vbet_addScriptToTable($what) {
global $vbulletin;
if ($vbulletin->options['vbenterprisetranslator_vbseo_message'] && strpos($what[1], 'vbseo_jshtml[0]')) {
$scriptIndex = 0;
$position = 0;
$prevPosition = 0;
$scriptBuffer = '';
$script = $what[1];
$forumLanguage = $vbulletin->options['vbenterprisetranslator_forumlanguage'];
global $vbet_serie;
while (true) {
$position = strpos($script, 'vbseo_jshtml['.$scriptIndex.']', $prevPosition);
if (!$position) {
break;
}
$position = strpos($script, '<table', $position);
$end = strpos($script, '</table>', $position);
$toTranslate = substr($script, $position, $end + strlen('</table>') - $position);
$scriptBuffer .= substr($script, $prevPosition, $position).vbet_translateHTMLFromTo($toTranslate, $forumLanguage, $_REQUEST['language'], $vbet_serie);
++$scriptIndex;
$prevPosition = $end + strlen('</table>');
}
$what[1] = $scriptBuffer.substr($script, $prevPosition);
} else {
$what[1] = vbet_getReEncoded($what[1]);
}
return vbet_addToReplacementsBuffer($what);
}
3. Replace it by:
Code:
function vbet_addScriptToTable($what) {
global $vbulletin;
if ($vbulletin->options['vbenterprisetranslator_vbseo_message'] && strpos($what[1], 'vbseo_jshtml[0]')) {
$scriptIndex = 0;
$position = 0;
$prevPosition = 0;
$scriptBuffer = '';
$script = $what[1];
$forumLanguage = $vbulletin->options['vbenterprisetranslator_forumlanguage'];
global $vbet_serie;
while (true) {
$position = strpos($script, 'vbseo_jshtml['.$scriptIndex.']', $prevPosition);
if (!$position) {
break;
}
$position = strpos($script, '<ol>', $position);
$end = strpos($script, '</ol>', $position);
$toTranslate = substr($script, $position, $end + strlen('</ol>') - $position);
$scriptBuffer .= substr($script, $prevPosition, $position).vbet_translateHTMLFromTo($toTranslate, $forumLanguage, $_REQUEST['language'], $vbet_serie);
++$scriptIndex;
$prevPosition = $end + strlen('</ol>');
}
$what[1] = $scriptBuffer.substr($script, $prevPosition);
} else {
$what[1] = vbet_getReEncoded($what[1]);
}
return vbet_addToReplacementsBufferNoReencode($what);
}
function vbet_addToReplacementsBufferNoReencode($what) {
global $vbet_replacementsBuffer;
$vbet_replacementsBuffer[] = $what[1];
return '<vbet'.(count($vbet_replacementsBuffer)-1).'/>';
}