Configuring MT-Approval: Templates

If you are going to use any JavaScript, whether it is the redirection or the fields that require it, you may need to specify the Comment Spam JavaScripttemplate name here.

On the system-level settings, you need to type in the template name, because you don't have templates to work with (the MT-Approval plugin was created prior to global templates), while if you use the blog-level settings, you can select from a drop-down list.

If you don't want to create a new template, then you can simply add the JavaScript routines to your own templates:

function getByID(n, d) {
    if (!d) d = document;
    if (d.getElementById)
        return d.getElementById(n);
    else if (d.all)
        return d.all[n];
}
function setDate (id) {
    var f = getByID(id);
    f.value = new Date().getTime()/1000.0;
    return true;
}
// set comment form action
document.comments_form.action = "<$MTCGIPath$><$MTCommentScript$>";

On the blog-level settings screen, you also have the option to install a JavaScript template if you'd like. This will create a new template for you, so if you don't want to add a new template, please keep that in mind!

The Comment Spam Message template is used to send a message to folks who don't have JavaScript, and while you don't have to use the template or the field here, it is considered good form - just in case someone wanders by and doesn't have JavaScript turned on, but they would like to leave a comment. This tells them how to do so.

If you're stuck for words, you may want to use something like:

You are seeing this error because your browser does not support JavaScript, or because JavaScript is not currently enabled. If your browser supports JavaScript, simply turn it back on and submit your comment again. You will then be able to comment normally. We are sorry for any inconvenience this may cause.

This should go into an index template, and once created (saved), you will be able to select this template from the drop-down list in the blog-level settings.

Return to configuring the MT-Approval plugin.

Recent Entries

MT-Notifier 6.0.0
Change license to Artistic You read that right. Effective immediately, MT-Notifier has returned to its roots, and there is…
MT-Notifier 5.0.1
Add newline to mt-notifier-queue.cgi Update Plugin.pm with comment and entry checking code Update template capitalization…
MT-Notifier 5.0.0
Added ability to store templates in database Added template tag context to allow use of MT tags Changed code…