Cywiro. Ar gyfer ateb cyflym os gwelwch yn dda:
1. Golygu ffeil / inclues / vbenterprisetranslator_functions_bbcode.html
2. Dod o hyd i:
PHP Code:
if ($endShorted && $endShorted < $end) {
$end = $endShorted + 3;
$toParse = substr($title,$start,$end - $start).'[/langtitle]';
3. LLE'R gan:
PHP Code:
if ($endShorted && $endShorted < $end) {
$nextStart = strpos($title, '[langtitle=', $endShorted);
if (!$nextStart || $nextStart > $end) {
$toParse = substr($title,$start,$end - $start);
} else {
$end = $endShorted + 3;
$toParse = substr($title,$start,$end - $start).'[/langtitle]';
}