TweezerMan, I have posted
a patch package to fix various MT3 bugs including this bug report. At present, all instructions in my post are written in Japanese. Sorry for inconvenience. The patch package itself is available from
here.
To workaround the problem of this bug report, my patch package employs a simpler solution than yours, I guess. Basically I use a brief JavaScript code and don't modify original MT/Template/Context.pm as far as I can.
The outline of my solution is as follows.
First, I prepared the following code:
CODE
function fillCommentFields (f, email, author, url, text) {
if (f.email != undefined)
f.email.value = email;
if (f.author != undefined)
f.author.value = author;
if (f.url != undefined)
f.url.value = url;
if (f.text != undefined)
f.text.value = text;
if (getCookie("mtcmtauth") || getCookie("mtcmthome")) {
f.bakecookie[0].checked = true;
} else {
f.bakecookie[1].checked = true;
}
}
And, put the following code after every use of MTCommentFields.
CODE
<script language="javascript" type="text/javascript">
<!--
if (document.comments_form)
fillCommentFields(document.comments_form,
'<$MTCommentPreviewEmail encode_js="1"$>',
'<$MTCommentPreviewAuthor encode_js="1"$>',
'<$MTCommentPreviewURL encode_js="1"$>',
'<$MTCommentPreviewBody convert_breaks="0" encode_js="1"$>');
//-->
</script>
Is it simple, isn't it?