Well I've narrowed it down to being a problem with replacing
This Code:
PHP Code:
while ($var=$DB_site->fetch_array($vars)) {
if ($var['findword']!="") {
$newtext=str_replace($var['findword'],$var['replaceword'],$newtext);
}
}
With This Code:
PHP Code:
while ($var=$DB_site->fetch_array($vars) and $i++) {
if ($var['findword']!="") {
$findwords[$i]=$var['findword'];
$replacewords[$i]=$var['replaceword'];
}
}
$newtext=str_replace($findwords,$replacewords,$newtext);
In particualr, removing this line:
PHP Code:
$newtext=str_replace($var['findword'],$var['replaceword'],$newtext);
Which stops all my replacements working and I get what was in that screen shot.
The worst thing is I know this hack works as many other people use it!!