rah_commentquoting_js
Published under current TXP projects
Allows to quote comment-messages by using JavaScript, based on bbCode. Idea got from MiniBB forumsoftware, which uses this kind of quotingsystem.
Image: rah_commentquoting_js
Intro and description
The plugin, rah_quote comes with simple quoting system that allows you and the users quote comments by simply clicking a link. Quoting works with Javascript.
List of features
- Simple install – no need to upload javascript files, only install the plugin.
- Uses Textile to format the comments: returns valid (X)HTML.
- Nice and clean quoting method: select some text, click a link and quote is inserted to comment write textarea.
Requirements
- Textpattern 4.0.3+ with “Allow more Textile markup in comments?”-option to turned on.
Installation and usage
- Install the plugin via TXP’s backend.
- Make sure that “Allow more Textile markup in comments?”-option is turned on in Textpattern Advanced Preferences. Located: TXP / Admin / Preferences / Advanced
- Put tags where they should be:
<txp:rah_commentquoting_head />to inside site’s<head>-tags and<txp:rah_commentquoting_link />to your comments form. First one calls JavaScript and second builds Quote-link.
Attributes and tags
<txp:rah_commentquoting_head />
Put tag inside site’s <head>-tags. Calls required Javascript automatically when nessassary.
<txp:rah_commentquoting_link />
Use inside the comments-form. It outputs “Quote”-link for quoting selected text.
Attributes: label. Define the text that is used for the quote link. Default: label="Quote".
Changelog
Version 0.2
- Moved individual Javascript-files directly to the PHP-script.
- Renamed tag
<txp:rah_commentquoting_js />to<txp:rah_commentquoting_link />. - Improved speed and code generally.
- Fixed globals.
Version 0.1
- First release.