dev.michaelgravel.com

textpattern ~ code ~ css

Oct 20 2007

Plugin: mg_comments_form

The plugin <txp:mg_comments_form /> allows you to change the class on the paragraph that appears after a comment is posted successfully.

Attributes

This plugin takes the same attributes as the stock comments_form tag ( found here ), with the following addition:

  • pclass: This is the CSS class that will be applied to the paragraph that appears after a comment has been posted successfully.

Examples

<txp:mg_comments_form pclass="success" />

Using the above will simply place the class “success” on the paragraph that appears after a comment is posted successfully. You can then use CSS to style the paragraph in any way you want.

Notes on Usage

Pretty straighforward. The added functionality is described above.

Credits

Based on base txp code with the modest additions described above.

Posted in text on October 20, 2007

   

No comments

Commenting disabled.

Text

Welcome to the Text archives. This is where I write about Textpattern, a lightweight, PHP-based content management system.

side image

Textpattern Plugins

I've made a few plugins for Textpattern that provide very modest additions to the software's existing functionality. Here they are: