TypeKISS

| | Comments (0)

TypeKISS, to replace the JavaScript for commenter greeting with Server Side Includes

Download TypeKISS 1.1 (14 November 2005)

TypeKISS provides template tags to replace the JavaScript code for greeting authenticated commenters with Apache Server Side Includes (SSI) code. ("TypeKISS" is "TypeKey Included Server Side.")

If you use PHP instead, try Neil Turner's PHP-TypeKey.

Changes since 1.0

1.1: use correct display name when previewing by using MTCommentAuthor instead of MTCommenterName. This was especially obnoxious when used with OpenID Comments for MT.

Using TypeKISS

To install, drop the above file as typekiss.pl into your plugins directory, then modify your template to call it. For example:

<MTIfSignedIn>
    <p>Thanks for signing in, <MTSignedInName>.
    (<a href="<MTRemoteSignOutLink static="1">">sign out</a>)</p>
<MTElse>
    <p><a href="<MTRemoteSignInLink static="1">">Sign in with TypeKey.</a></p>
    <!-- name and email form fields -->
</MTElse></MTIfSignedIn>

Note that your web server must be configured to run SSI in your published blog pages.

The provided tags are:

MTIfSignedIn
A conditional container tag, this includes the contained template code if the viewer has signed in to comment.
MTSignedInName
Shows the name of the signed-in commenter.

Known issues

  • Special characters in names, including spaces, are not correctly shown when displayed with SSI (ie, on the published pages). The characters are correctly shown when previewing.

Leave a comment

About this Entry

This page contains a single entry by markpasc published on November 14, 2005 1:20 PM.

CatEntries was the previous entry in this blog.

EntryContents is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Categories

Tag Cloud