Hello Scream,
Here is the fix for the phantom Preview on/off problem. It was caused by a couple of issues but I think this fixes it.
At line 144 (below "// Find out if they preview or not" comment) it should be:
if ($Preview == "on") {
$previewon = "selected";
}
else {
$previewoff = "selected";
}
Then at line 292 where we set the preview off selection, it should be:
<option value = "" $previewoff>$lang[TEXT_OFF]</option>
We have to set it to null because in many other places where $Preview is
checked the statement
"if ( ($Preview == "on") || ($Preview) ) {"
is used. So we can't put anything in there if it is off. Search for $Preview
in all the files and you can see that it is used in different ways, sometimes
"if ( ($Preview == "on")"
and other times just
"if ( ($Preview)".
Anyway I think this ought to fix the problem the Edit Profile issue.
PS On a side note, I noticed when I previewed this message I didn't get a blank line after the closing pre command. Interesting. I had to put the blank line within the pre markup.