| 1 |
<!-- $Id: README.txt,v 1.2 2007/12/17 02:27:54 Raiden-San Exp $ --> |
<!-- $Id: README.txt,v 1.7 2008/06/14 12:10:04 Raiden Exp $ --> |
| 2 |
COMMENT_REVISIONS.MODULE |
COMMENT_REVISIONS.MODULE |
| 3 |
|
|
| 4 |
|
|
| 5 |
Overview |
<h3>Overview</h3> |
|
-------- |
|
|
With GB Comment Revisions you get a revision |
|
|
system for comments, like Drupal already offers for nodes. |
|
| 6 |
|
|
| 7 |
Features |
With GB Comment Revisions you get a revision system for comments, like Drupal already offers for nodes. |
| 8 |
-------- |
|
| 9 |
|
<h3>Features</h3> |
| 10 |
- Creation of revisions for comments |
- Creation of revisions for comments |
| 11 |
- Automatic creation of revisions on edit without action by user |
- Automatic creation of revisions on edit without action by user |
| 12 |
- Maximum amount of allowed revisions |
- Maximum amount of allowed revisions |
| 13 |
- Listed view of revisions for a comment |
- Listed view of revisions for a comment |
| 14 |
|
|
| 15 |
Requirements |
<h3>Requirements</h3> |
|
------------ |
|
| 16 |
comment.module |
comment.module |
| 17 |
|
|
| 18 |
|
|
| 19 |
Installation |
<h3>Installation</h3> |
|
---------- |
|
| 20 |
1. Copy comment_revisions folder to sites/all/modules |
1. Copy comment_revisions folder to sites/all/modules |
| 21 |
2. Enable comment_revisions module |
2. Enable comment_revisions module |
| 22 |
3. Edit settings |
3. Edit settings |
| 23 |
|
|
| 24 |
|
|
| 25 |
The Setup |
<h3>The Setup</h3> |
|
--------- |
|
| 26 |
After installing the Comment Revisions module, you can edit the settings here: |
After installing the Comment Revisions module, you can edit the settings here: |
| 27 |
<a href="admin/settings/commentrevisions"> |
<a href="admin/settings/commentrevisions"> |
| 28 |
Administer -> Site Configuration -> GB Comment Revisions |
Administer -> Site Configuration -> GB Comment Revisions |
| 29 |
</a> |
</a> |
| 30 |
|
|
| 31 |
You can set the following options: |
<u>You can set the following options:</u> |
| 32 |
- Enable automatic creation of revisions |
- Enable automatic creation of revisions |
| 33 |
Use this to activate the automatic creation of revisions. Now everytime a User |
Use this to activate the automatic creation of revisions. Now everytime a User with the role 'force revision' edits his own comment, a revision is created. |
|
with the role 'force revision' edits his own comment, a revision is created. |
|
| 34 |
- Maximum number of automatic revisions |
- Maximum number of automatic revisions |
| 35 |
When you enabled the automatic creation of revisions, set this to your needs. |
When you enabled the automatic creation of revisions, set this to your needs. The revisions will be deleted when limit is reached. This way you only have the |
| 36 |
The revisions will be deleted when limit is reached. This way you only have the |
newest revisions. I.e. if you set this to 5, only the 5 newest revisions will be stored in the database |
|
newest revisions. I.e. if you set this to 5, only the 5 newest revisions will be |
|
|
stored in the database |
|
| 37 |
- Maximum number of administrator revisions |
- Maximum number of administrator revisions |
| 38 |
Same as above, only for users with the 'create revisions' and only if it's not |
Same as above, only for users with the 'create revisions' and only if it's not the comment of the user. If 0, these users can create an infinite amount of revisions for a comment (use with care). |
|
the comment of the user. If 0, these users can create an infinite amount of |
|
|
revisions for a comment (use with care). |
|
| 39 |
|
|
| 40 |
After you're satisfied with your settings, click on 'Save Settings'. |
After you're satisfied with your settings, click on 'Save Settings'. |
| 41 |
Your revision system for comments is now up and running. |
Your revision system for comments is now up and running. |
| 42 |
|
|
| 43 |
|
|
| 44 |
Role types |
<h3>Role types</h3> |
|
--------- |
|
| 45 |
Comment Revisions offers the following roles. |
Comment Revisions offers the following roles. |
| 46 |
1. administer comment revisions |
1. administer comment revisions |
| 47 |
This is the one who can control the settings page |
This is the one who can control the settings page |
| 59 |
6. view revisions |
6. view revisions |
| 60 |
This role is needed for users to view revisions (of all comments!) |
This role is needed for users to view revisions (of all comments!) |
| 61 |
7. view own revisions |
7. view own revisions |
| 62 |
Can view his own revisions of his own comments |
Can view his own revisions of his own comments. |
| 63 |
|
If a User has both, view own and view revisions, the view revision permission will supercede. |
| 64 |
8. force revision |
8. force revision |
| 65 |
Users are forced to create a revision by editing a comment |
Users are forced to create a revision by editing a comment |
| 66 |
9. except from froced |
9. except from froced |
| 67 |
If all authenticated users are forced to create revisions automaticly |
If all authenticated users are forced to create revisions automaticly |
| 68 |
you can use this role to exclude users from this. |
you can use this role to exclude users from this. |
| 69 |
|
|
| 70 |
|
Here are some suggestions: |
| 71 |
|
In a Forum you want users to post comments. Nothing more. But you want to see what they had typed, before editing (Please regard your local law!). Then, the user who is allowed to write posts in a forum should get the "force revisions" permission. The moderators should be able to see those revisions for control. Therefore they also need to edit posts, they should be able to create revisions in order to keep the unchanged version. As a result, the moderators need the "View revisions", "Create revisions", "Revert revisions" and maybe "Delete revisions". |
| 72 |
|
|
| 73 |
|
If you do not want to have automatic generation, but still want to use the features for some special cases, you can use the "Willful create own" permission. This user will be able to create revisions for his own comments only, even if automatic generation is turned off. |
| 74 |
|
|
| 75 |
|
If you have automatic generation enabled, and want to allow some special users to be out of this generation system, maybe because you trust them, you can use the "Except from forced" permission. If a user with this permission edits a comment, a revision will not be created, even if automatic generation is turned on. This permission does not depend on the permissions "Create revisions" or "Willful create own". |
| 76 |
|
|
| 77 |
|
|
| 78 |
How to use |
<h3>How to use</h3> |
| 79 |
---------- |
After enabling 'Enable automatic creation of user revisions' a revision of a users comment will be created after editing. If he hasn't got any other roles, only the administrator and allowed users (Role: 'View revisions') can see that there are revisions by the "View Revisions" link in the comments link section. Clicking on that reveals a list of all created revisions for this particular comment. |
| 80 |
After enabling 'Enable automatic creation of user revisions' a revision |
Having the right roles a user is now able to revert to another revision or to delete a revision. |
|
of a users comment will be created after editing. |
|
|
If he hasn't got any other roles, only the administrator and allowed users |
|
|
(Role: 'View revisions') can see that there are revisions by the "View |
|
|
Revisions" link in the comments link section. |
|
|
Clicking on that reveals a list of all created revisions for this particular |
|
|
comment. |
|
|
Having the right roles a user is now able to revert to another revision, |
|
|
or to delete a revision. |
|
| 81 |
|
|
| 82 |
ATTENTION: Whenever you delete a comment, all of its revisions get deleted too. |
ATTENTION: Whenever you delete a comment, all of its revisions get deleted too. |
| 83 |
|
|
| 84 |
|
|
| 85 |
Credits |
<h3>Credits</h3> |
| 86 |
------- |
Thanks to everyone who ever posted something at drupal.org or other support sites. Also thanks to everyone willing to help in #drupal and drupal-support |
|
Thanks to everyone who ever posted something at drupal.org or other |
|
|
support sites. Also thanks to everyone willing to help in #drupal and |
|
|
#drupal-support |
|
| 87 |
|
|