Re: nospam plugin
Steven Armstrong <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
btw: you can use the following template variables in your comment-form.<flavour> template: $cmt_title $cmt_author $cmt_email $cmt_url $cmt_body $cmt_nospam_error You can use them to re-populate the form if the nospam-number didn't match so that the user doesn't have to start all over. If the comment was accepted they are cleared out again. Attached a copy of my comment-form.html template as an example. You can see how it's supposed to work and look like on my website [1]. hth cheers Steven [1] http://www.c-area.ch/weblog/
comment-form.html
(text/html, 1.6 KB)
<div class="blosxomCommentForm"> <form name="comments_form" method="post" action="$base_url/$file_path?cmt=1#comments"> <input type="hidden" name="secretToken" value="pleaseDontSpam" /> <input type="hidden" name="cmt" value="1" /> <input name="parent" type="hidden" value="$file_path" /> <input name="title" type="hidden" value="$title" /> <label for="author" title="Enter your Name">Name:</label> <input name="author" id="author" type="text" value="$cmt_author" maxlength="50" /><br /> <label for="email" title="Please provide your email. It will not be shared with anyone.">Email:</label> <input name="email" id="email" type="text" value="$cmt_email" maxlength="75" /><br /> <label for="url" title="Full qualified url, e.g.: http://www.example.com">URL:</label> <input name="url" id="url" type="text" value="$cmt_url" maxlength="100" /><br /> <div> <label for="nospam" title="Human verification code">Secret Number:</label> <img src="$base_url/nospam.png" alt="Secret Number Image" title="Type this number into the field on the right" /> <input name="nospam" id="nospam" type="text" value="" maxlength="5" style="width:5em" /> <div style="color:red; top:-5px; display:inline;">$cmt_nospam_error</div> </div> <label for="body">Comment:</label> <textarea cols="50" name="body" id="body" rows="12">$cmt_body</textarea><br /> <input name="Submit" type="submit" value="Submit" style="width:auto; margin-right:0px;" /> <input name="preview" type="submit" value="Preview" style="width:auto" /> </form> </div> </div><!-- /blosxomComments -->