Rah's Comment Form

Comment submitting with out comment preview, instead we use alternative spam protection: registration. Registration and login can be done with ign_password_protect and mem_self_register — with out these plugins, this plugin, rah_comment_form is “useless”, or it just doesn’t work. At least, in words of code, rah_comment_form requires ign_password_protect-plugin.

Download

Version 0.3 Jun 16, 2010
Other versions...

A cup of coffee
via PayPal

Intro and description

A Textpattern plugin used to remove the comment preview and allowing commenting only for the registered users. This plugin requires ign_password_protect (allows loging in) and also mem_self_register is kinda important to be able to automaticate the registeration. To be able to comment or see the commenting form, user must be logged in via ign_password_protect.

List of features

  • Removes comment preview.
  • Protection: only registered users can comment.
  • Comes with simple tag that outputs form – can also be used as container tag.

Requirements

Minimum requirements:

Recommended:

Installation and usage

The general behavior stands: paste plugin code to the plugin installer textarea and run the automatic setup. Then just activate the plugin and you are ready to use new tags that plugin includes like others.

Basically the plugin’s tags can only be used in individual article page, ‘cause those output commenting form. The tag, <txp:rah_comment_form />, would ideally be used instead of the stannard <txp:comments_form /> that is by default located inside comments_display form.

Attributes and tags

The plugin comes with two tags:

<txp:rah_comment_form />

This tag, <txp:rah_comment_form />, outputs the commenting form. The tag can be used as container or as a sinle tag when it uses premade XHTML code.

<txp:rah_comment_message />

Outputs comment message textarea. Can be used inside <txp:rah_comment_form /> when it is used as container tag. In example:

<txp:rah_comment_form><txp:rah_comment_message /></txp:rah_comment_form>

Examples

Example #1

Code: <txp:rah_comment_form />

Outputs:

<form id="rah_comment_form" action="" method="post">
	<ul>
		<li class="label"><label for="rah_message">Message</label></li>
		<li class="textarea"><textarea name="rah_comment_message" id="rah_message" rows="6" cols="20"></textarea></li>
		<li class="button"><button type="submit">Submit</button></li>
	</ul>
</form>

Example #2

<txp:rah_comment_form><txp:rah_comment_message /></txp:rah_comment_form>

Changelog

Version 0.3

  • Bug fix: Now uses the alternative container markup.
  • Bug fix: Changes form’s action based on permlink mode.

Version 0.2

  • Bug fix: Now updates comments_count in the textpattern-table.
    • Textpattern’s core in build tags do use it to check if article has comments.
  • Works on both: messy and clean URLs.

Version 0.1

  • First release.

Thanks to

Thanks to Manfre for making mem_self_register and thanks to igner for making ign_password_protect. Great plugins, dudes.