rah_comment_form

Published under current TXP projects

Comment submiting with out comment preview, instead we use alternative spam protection: registeration. Registeration 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. Atleast, in words of code, rah_comment_form requires ign_password_protect-plugin.

Download rah_comment_form v0.2

Image: rah_comment_form

Image: rah_comment_form

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

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.2

Version 0.1

Thanks to

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