Сьогодн╕: 12-бер-2010 На сайт╕ працю╓ система Орфо. В╕дм╕тьте текст та натисн╕ть Ctrl-Enter Пошук на Google:
Linux.org.ua
укра╖н╕зац╕я в╕льного ПЗ
новини перекладачам правопис
словник розсилки форум
Домашня | Запрошу╓мо | Ре╓страц╕я | Зм╕ни | ╤ндекс | Пошук | Перейти до 


Розд╕ли:

╤нш╕ матер╕али цього сайту:
*Служба новин @ linux.org.ua
*Укра╖н╕зац╕я програмного забезпечення
*Засоби для перекладач╕в
*Перев╕рка правопису
*Переклад з рос╕йсько╖ на укра╖нську
*Проект англо-укра╖нського словника техн╕чних терм╕н╕в
*Документац╕я
*Поштов╕ розсилки
*Форум
*Рекомендован╕ посилання
*Команда

linux.org.ua

post development notes in Comment Plugin Dev?

Comment Plugin

The Comment Plugin 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)

Comment Plugin 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" class="comments

  • Default "submit button" text for COMMENT
    • Set BUTTONNAME = Додати коментар

  • Default signature line
    • Set SIGNATURE = -- Main.guest - 12-бер-2010

  • Default label for "mode" in a COMMENT
    • Set PREFIXMODENAME = before
    • Set PREFIXLABEL = Ваше пов╕домлення з'явиться перед ц╕╓ю формою у хронолог╕чному порядку (нов╕ш╕ унизу)
    • Set POSTFIXMODENAME = after
    • Set POSTFIXLABEL = Ваше пов╕домлення з'явиться п╕сля ц╕╓╖ форми у зворотньому порядку (нов╕ш╕ зверху)

Plugin Installation Instructions

TWO WARNINGS

  • WARNING 1: Anybody can refactor Comments, just like any other topic. Comment Plugin 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 посм╕шка :


dfdfdsfjsdafj

-- Main.guest - 05-лис-2003


Ваше пов╕домлення з'явиться перед ц╕╓ю формою у хронолог╕чному порядку (нов╕ш╕ унизу)


Ваше пов╕домлення з'явиться п╕сля ц╕╓╖ форми у зворотньому порядку (нов╕ш╕ зверху)



Ваше пов╕домлення з'явиться перед ц╕╓ю формою у хронолог╕чному порядку (нов╕ш╕ унизу)


Ваше пов╕домлення з'явиться п╕сля ц╕╓╖ форми у зворотньому порядку (нов╕ш╕ зверху)

Plugin Info

Plugin Author: David Weller?
Plugin Version: 30 Nov 2001
Change History: 30 Nov 2001: Initial version
4 Dec 2001: 1.01 release, changed name to Comment Plugin, 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: TWiki Preferences, TWiki Plugins

-- David Weller? - 05 Mar 2002

| Редагувати | Долучити | Для друку | Зм╕ни | Б╕льше |

Тема TWiki.CommentPlugin; Верс╕я : r1.1 - 13-чер-2004 18:28 GMT - Main.guest