Typepad lancait le week-end dernier sa nouvelle version, 1.6 avec son lot de nouveautés dont l'intégration de Typekey, système vous permettant de vous identifier facilement lorsque vous commentez sur un blog et qui proposait lors de son lancement l'an dernier de lutter contre le spam de commentaire sous Movable Type.
Même si cette promesse n'est hélas pas toujours garantie elle a le mérite d'éviter qu'un blogeur se fasse passer pour un autre puisque votre identité est protégée par un mot de passe...
Si vous utilisez un habillage standard de Typepad vous n'avez qu'à republier vos blogs pour en bénéficier mais si vous avez un habillage avancé et personnalisé voici le code à intégrer dans votre gabarit 'individual archive'.
<P>Voici le code intégrant TypeKey :</P>
Voici le code intégrant TypeKey :
--
<!-- comment form -->
<MTEntryIfCommentsOpen>
<script type="text/javascript" src="<$MTStaticWebPath$>js/comments.js"></script>
<script type="text/javascript">hostName = '<$MTBlogHost$>';</script>
<form id="comment-form"
method="post" action="<$MTCGIPath$><$MTCommentScript$>">
<input type="hidden" name="entry_id" value="<$MTEntryID$>" />
<div class="comments-open">
<h2 class="comments-open-header"><$MTTrans phrase="Post a comment"$></h2>
<div class="comments-open-content">
<MTWeblogIfCommentsModerated>
<p class="comments-open-moderated">
<$MTTrans phrase="Comments are moderated, and will not appear on this weblog until the author has approved them."$>
</p>
</MTWeblogIfCommentsModerated>
<MTWeblogIfRegistrationEnabled>
<script type="text/javascript" src="<$MTCGIPath$><$MTCommentScript$>?__mode=check_login"></script>
<p id="comments-open-login" style="display: block;">
<MTWeblogIfRegistrationRequired>
<$MTTrans phrase="This weblog only allows comments from registered users."$>
<$MTTrans phrase="To comment, please"$>
<a href="<$MTEntrySignInURL$>"><$MTTrans phrase="Sign In"$></a>.
<MTElse>
<$MTTrans phrase="If you have a TypeKey or TypePad account, please"$>
<a href="<$MTEntrySignInURL$>"><$MTTrans phrase="Sign In"$></a>
</MTElse>
</MTWeblogIfRegistrationRequired>
</p>
<p id="comments-open-logout" style="display: none;">
<$MTTrans phrase="You are currently signed in as"$>
<span id="commenter-name">(nobody)</span>.
<a href="<$MTEntrySignOutURL$>"><$MTTrans phrase="Sign Out"$></a>
</p>
</MTWeblogIfRegistrationEnabled>
<MTWeblogIfRegistrationRequired>
<MTElse>
<div id="comments-open-data">
<p>
<label for="comment-author"><$MTTrans phrase="Name:"$></label>
<input id="comment-author" name="author" size="30" />
</p>
<p>
<label for="comment-email"><$MTTrans phrase="Email Address:"$></label>
<input id="comment-email" name="email" size="30" />
</p>
<p>
<label for="comment-url"><$MTTrans phrase="URL:"$></label>
<input id="comment-url" name="url" size="30" />
</p>
<p>
<label for="comment-bake-cookie"><input type="checkbox"
id="comment-bake-cookie" name="bakecookie" value="1" />
<$MTTrans phrase="Remember personal info?"$></label>
</p>
</div>
</MTElse>
</MTWeblogIfRegistrationRequired>
<p id="comments-open-text"
<MTWeblogIfRegistrationRequired>
style="display: none;"
</MTWeblogIfRegistrationRequired>
>
<label for="comment-text"><$MTTrans phrase="Comments:"$></label>
<textarea id="comment-text" name="text" rows="10" cols="30"></textarea>
</p>
</div>
<div id="comments-open-footer" class="comments-open-footer"<MTWeblogIfRegistrationRequired> style="display: none;"</MTWeblogIfRegistrationRequired>>
<input type="submit" name="preview" id="comment-preview" value=" <$MTTrans phrase="Preview"$> " />
<input type="submit" name="post" id="comment-post" value=" <$MTTrans phrase="_POST_VERB"$> " />
</div>
</div>
</form>
<MTWeblogIfRegistrationEnabled>
<script type="text/javascript">
commentSignIn();
</script>
</MTWeblogIfRegistrationEnabled>
<MTElse>
<p class="comments-closed">
<$MTTrans phrase="The comments to this entry are closed."$>
</p>
</MTElse>
</MTEntryIfCommentsOpen>
---
Tags: blog, typepad, typekey







