IntelliJ Community . CommentPlugin

 
CommentPlugin 

HOME INDEX SEARCH CHANGES GO  

post development notes in CommentPluginDev?

CommentPlugin

The CommentPlugin gives the ability to quickly post comments in forward/reverse chronological order. Simply entering text and clicking on the Comment button will have your comments added before or after the form, including your name and date.

Syntax Rules

There are only five options with the Comment meta tag:

  • rows: Any number > 0 will set the rows of the text area (default is 5)
  • cols: Any number > 10 will set the columns of the textarea (default is 70)
  • mode: The word "after" tells Comment to put the posted data after the form in reverse chronological order (default = "normal" chronological order)
  • button: This lets you change the text of the submit button (default is "Add Comment")
  • id: This gives a unique name for a COMMENT, in case you have more than one COMMENT tag in a topic (mandatory with > 1 COMMENT)

CommentPlugin Settings

  • Description:
    • Set SHORTDESCRIPTION = Allows users to quickly edit a topic without going through the edit/preview/save cycle

  • Default number of rows in a COMMENT
    • Set ROWS = 5
  • Default number of columns in a COMMENT
    • Set COLS = 70

  • Default "submit button" text for COMMENT
    • Set BUTTONNAME = Add Comment

  • Default signature line

  • Default label for "mode" in a COMMENT
    • Set PREFIXMODENAME = before
    • Set PREFIXLABEL = Your post will appear before this form in chronological order (newest at bottom)
    • Set POSTFIXMODENAME = after
    • Set POSTFIXLABEL = Your post will appear after this form in reverse chronological order (newest at top)

Plugin Installation Instructions

TWO WARNINGS

  • WARNING 1: Anybody can refactor Comments, just like any other topic. CommentPlugin knows nothing about what you've done once you have posted your comments.
  • WARNING 2 (Installation warning): Because Plugins have no capability to handle form post-processing (from what I can see), I was left with no recourse but to create a savecomment script in the bin directory. I will be delighted if one of the more seasoned developers could help fix this, but for now I guess it's in the "hack" category.

  • Download the ZIP file from the Plugin web (see below)
  • Unzip CommentPlugin.zip in your twiki installation directory. Content:
File: Description:
data/TWiki/CommentPlugin.txt Plugin topic
data/TWiki/CommentPlugin.txt,v Plugin topic repository
lib/TWiki/Plugins/CommentPlugin.pm Plugin Perl module
bin/savecomment Plugin save script (HACK)
  • Check this topic here if the installation was successful
  • Test if the plugin is correctly installed:

If installed correctly, you should see a 4 "Comment" form fields below here, not the meta tag. Feel free to use this sequence of comments as a way to test the "behaviour" of multiple comments with multiple modes. But please test it in ano ther topic, preferably in the Test Web smile :



Your post will appear before this form in chronological order (newest at bottom)


Your post will appear after this form in reverse chronological order (newest at top)



Your post will appear before this form in chronological order (newest at bottom)


Your post will appear after this form in reverse chronological order (newest at top)

Plugin Info

Plugin Author: DavidWeller?
Plugin Version: 30 Nov 2001
Change History: 30 Nov 2001: Initial version
4 Dec 2001: 1.01 release, changed name to CommentPlugin, added $button var, changed textarea WRAP setting to "soft"
24 Feb 2002 added a few more user requests, made "English" text configurable
5 March 2002 Bug fixes
CPAN Dependencies: None
Other Dependencies: None
Perl Version: 5.0
Plugin Home: http://TWiki.org/cgi-bin/view/Plugins/CommentPlugin
Feedback: http://TWiki.org/cgi-bin/view/Plugins/CommentPluginDev

Related Topics: TWikiPreferences, TWikiPlugins

-- DavidWeller? - 05 Mar 2002

e d i t a t t a c h r e f - b y d i f f s m o r e
Have ideas, requests, problems regarding this site? Send feedback.
Copyright © 2000-2003 by the contributing authors. All materials at intellij.org are the property of the contributing authors.