plugin:discussion
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:discussion [2017-11-01 20:41] – old revision restored (2017-09-23 09:57) Aleksandr | plugin:discussion [2024-02-06 08:11] (current) – [When I add a ~~DISCUSSION~~ to a page the toolbar for the editor for the main page text changes to the one for the discussion submission box with buttons like that for media removed. Is this expected behaviour?] Aleksandr | ||
---|---|---|---|
Line 6: | Line 6: | ||
email : michael@content-space.de | email : michael@content-space.de | ||
type : syntax, action, admin, helper | type : syntax, action, admin, helper | ||
- | lastupdate : 2017-08-24 | + | lastupdate : 2021-12-31 |
- | compatible : Detritus, Hrun, Ponder Stibbons, Elenor of Tsort, Frusterick Manners | + | compatible : Detritus, Hrun, Ponder Stibbons, Elenor of Tsort, Frusterick Manners, Greebo, Hogfather |
depends | depends | ||
conflicts | conflicts | ||
Line 19: | Line 19: | ||
===== Description ===== | ===== Description ===== | ||
- | The Discussion | + | The Discussion Plugin adds a discussion section after your wiki page for user comments. This is useful to separate page content and the discussion thereof and also, if you don't want to give normal users the right to edit the page but still want user contributed notes. |
A second component of this plugin shows a list of all pages in a namespace with a discussion section (called discussion threads) ordered by most recent comments. This allows you to create a very simple discussion forum in your wiki. | A second component of this plugin shows a list of all pages in a namespace with a discussion section (called discussion threads) ordered by most recent comments. This allows you to create a very simple discussion forum in your wiki. | ||
Line 41: | Line 41: | ||
* Edit: Registered users can edit their comments; admins can edit all comments. To remove a comment, just edit it, clear the text and save the empty comment -- like you would do with a wiki page. | * Edit: Registered users can edit their comments; admins can edit all comments. To remove a comment, just edit it, clear the text and save the empty comment -- like you would do with a wiki page. | ||
* Delete: Registered users and admin all comments.\\ // | * Delete: Registered users and admin all comments.\\ // | ||
- | * Hide / Show: Admins can deactivate and reactivate comments easily by this button. Hidden comments aren't shown to normal users and are displayed dimmed to admins. Registered users can only hide their own comments. | + | * Hide / Show: Admins can deactivate and reactivate comments easily by this button. Hidden comments aren't shown to normal users and are displayed dimmed to admins. Registered users can only hide their own comments. |
Of course, the whole DokuWiki [[: | Of course, the whole DokuWiki [[: | ||
Line 55: | Line 55: | ||
^ [flags] | pagelist flags delimited by ''&'', | ^ [flags] | pagelist flags delimited by ''&'', | ||
^ skipempty | Do not print discussions with no comments | optional | | ^ skipempty | Do not print discussions with no comments | optional | | ||
+ | ^ nonewthreadform | Do not show the //new thread form// form below the table | optional | | ||
Default a //new thread form// is shown below the list. See '' | Default a //new thread form// is shown below the list. See '' | ||
Line 64: | Line 64: | ||
^ '' | ^ '' | ||
- | ^ '' | + | ^ '' |
- | ^ '' | + | ^ '' |
^ '' | ^ '' | ||
^ '' | ^ '' | ||
Line 75: | Line 75: | ||
^ '' | ^ '' | ||
^ '' | ^ '' | ||
- | ^ '' | + | ^ '' |
^ '' | ^ '' | ||
^ '' | ^ '' | ||
Line 114: | Line 114: | ||
The plugin has built-in support for the [[plugin: | The plugin has built-in support for the [[plugin: | ||
- | ==== My dates are shown wrong. What can I do? ==== | ||
- | |||
- | You're probably not running the latest version of the plugin. Try to update to the latest version first. | ||
==== Is it possible to show the newest entry on top? ==== | ==== Is it possible to show the newest entry on top? ==== | ||
Line 126: | Line 123: | ||
If you enable the [[config: | If you enable the [[config: | ||
+ | ==== How can I subscribe to a RSS feed of all discussions or threads ==== | ||
+ | |||
+ | This is possible using the [[feed]] plugin, please see there how it works. | ||
+ | |||
+ | ==== No subscribe/ | ||
+ | |||
+ | The plugin disables subscription for logged-in users when the option " | ||
+ | |||
+ | |||
+ | ==== Howto rename all Discussion section titles? ==== | ||
+ | |||
+ | You can overwrite translated strings such as the default title with your own text. | ||
+ | <code php conf/ | ||
+ | |||
+ | <?php | ||
+ | /** | ||
+ | * Customization of the english language file | ||
+ | * Copy only the strings that needs to be modified | ||
+ | */ | ||
+ | |||
+ | $lang[' | ||
+ | </ | ||
==== Where are discussions saved? ==== | ==== Where are discussions saved? ==== | ||
Line 144: | Line 163: | ||
Alternative: | Alternative: | ||
- | ==== When I use the sidebar plugin the discussions disappear ===== | ||
- | This is a know problem with the sidebar plugin which needs to be fixed by it's author. If you're looking for working alternatives in the meanwhile I suggest to have a look at the [[plugin: | ||
==== Is it somehow possible to show all discussions on one page (like in the admin area)? ==== | ==== Is it somehow possible to show all discussions on one page (like in the admin area)? ==== | ||
Line 152: | Line 169: | ||
You can list all discussions with: | You can list all discussions with: | ||
{{threads> | {{threads> | ||
+ | |||
+ | Beware that hidden comments are not shown. Not even to administrators. | ||
+ | |||
+ | This example | ||
+ | {{threads>: | ||
+ | shows a list of pages inside __namespace_abc__ with | ||
+ | * all pages which have comments, skipping the empty ones caused by e.g. deletion. | ||
+ | * columns __Page__ including a link to the page, __Date__ and __Number of comments__ which is also a link to the comments section of the page. The usual __User__ column is omitted as indicated by //nouser//. | ||
+ | * headers for each column. | ||
+ | * no new thread form below the list. | ||
==== I can add tags to a discussion, but they don't seem to end up in the tag cloud, or being noticed by the tag plugin ==== | ==== I can add tags to a discussion, but they don't seem to end up in the tag cloud, or being noticed by the tag plugin ==== | ||
Line 157: | Line 184: | ||
Discussions aren't stored like regular wiki pages. This will not work. | Discussions aren't stored like regular wiki pages. This will not work. | ||
- | ==== How can I subscribe to a RSS feed of all discussions or threads ==== | ||
- | |||
- | This is possible using the [[feed]] plugin, please see there how it works. | ||
- | |||
- | ==== No subscribe/ | ||
- | |||
- | The plugin disables subscription for logged-in users when the option " | ||
==== Removing the shown IP of a guest comment and replacing it with ' | ==== Removing the shown IP of a guest comment and replacing it with ' | ||
Line 174: | Line 194: | ||
$comment[' | $comment[' | ||
+ | |||
- | ==== Is ist possible | + | ==== When I add a ~~DISCUSSION~~ |
- | + | I've [[https://github.com/dokufreaks/plugin-discussion/issues/316|detailed this issue]] but am unable to work around the problem that, with my wiki, I can't insert media on pages that also have discussions as the main page edit toolbar is replaced with the reduced toolbar for the discussions. | |
- | I'm not a developer of the plugin but I believe you can do this if you comment out the following lines 283-287 and 291: | + | |
- | + | ||
- | < | + | |
- | // if(empty($_REQUEST[' | + | |
- | // if(!mail_isvalid($_REQUEST[' | + | |
- | // msg($lang[' | + | |
- | // return; | + | |
- | // } else { | + | |
- | $comment[' | + | |
- | $comment[' | + | |
- | $comment[' | + | |
- | // } | + | |
- | </ | + | |
- | + | ||
- | and lines 983 - 988: | + | |
- | + | ||
- | < | + | |
- | < | + | |
- | <label class=" | + | |
- | < | + | |
- | <input type=" | + | |
- | </ | + | |
- | </ | + | |
| | ||
- | </ | ||
- | | ||
- | in action.php inside the plugins directory. Anonymous users won't be able to subscribe tho. Please correct me if I'm breaking some other function with this. Until now there hasn't been a problem tho. Andy | ||
- | |||
- | ==== Hello, how to increase the size of the input form of the comments? I mean the white rectangle is only one row. How can i make it do be two or more lines? ==== | ||
===== Issues and feature requests ===== | ===== Issues and feature requests ===== |
plugin/discussion.1509565281.txt.gz · Last modified: 2017-11-01 20:41 by Aleksandr