Tags:
create new tag
view all tags
For an "intro" to this idea, please read QuickCommentDiscussion...

I am trying to intercept and modify the topic text on the way to the save script. I have created a Plugin which allows the user to enter a meta tag called %QUICKPOST%. This tag then is rendered as a form with a single textarea and a submit button. The purpose of this approach is to allow quick posting of a comment, without needing to edit the entire topic.

This is the approach I'm taking:

  • User clicks on the QuickPost button, which calls the saveqp script
  • The saveqp script creates a string that is composed of
    • A separator
    • The User's QuickPost comments
    • The User's name and date
  • This string is inserted into the topic text, just before the %QUICKPOST% meta tag
  • The saveqp script redirects to the save script, yielding this error message: Inproper use of the save script (Yes, "Inproper" is spelled improperly smile )

I was very reluctant to try to include something in the bin dir, but it doesn't look like Plugins have the ability to do anything like that (I'd rather leave all the security checking, etc. in the hands of the save script, all I want to do is alter the topic text on the way to the save script running).

Am I doing this all wrong?

-- DavidWeller - 29 Nov 2001

No replies. Doesn't matter. I went ahead and did it anyway. You can find it under QuickPostPlugin

-- DavidWeller - 30 Nov 2001

This is quite neat - might encourage people to make comments on pages when they are not confident about editing the whole page (particularly for DocumentMode pages). My only suggestion is to rename the button to say Comment, since that's an easier name for this feature IMO - perhaps the button name could be a parameter, but I'd prefer Comment as the default...

-- RichardDonkin - 01 Dec 2001

The plugin API is not ready yet for writing topics, thus you had to create this workaround (that might break in a future TWiki release). Extending the API will be done over time. Also, putting the save functionality into a module should be done so that your script can use it, as well as as other improvements like SaveAndContinueWorkingFromPreview, SaveWithoutPreview.

-- PeterThoeny - 01 Dec 2001

Richard, I had originally considered "Comment". Does anybody else want to second the motion that I change the name to CommentPlugin? smile

-- DavidWeller - 03 Dec 2001

Consider it Seconded (though perhaps AddComment might better carry the idea of the plugins' function)

[ MattWilkie 03 Dec 2001 ]

Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2001-12-03 - MattWilkie
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.