Changeset 837
- Timestamp:
- 08/27/08 17:21:27 (3 months ago)
- Location:
- plugins/preapproved/trunk
- Files:
-
- 2 modified
-
preapproved.plugin.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
plugins/preapproved/trunk/preapproved.plugin.php
r723 r837 22 22 'author' => 'Habari Community', 23 23 'authorurl' => 'http://habariproject.org/', 24 'version' => '1. 2',24 'version' => '1.3', 25 25 'description' => 'Automatically approve comments based on the number of approved comments the commenter has previously made.', 26 26 'license' => 'Apache License 2.0', … … 89 89 function action_comment_insert_before ( $comment ) 90 90 { 91 // This plugin ignores non-comments 92 if( $comment->type == Comment::COMMENT ) {91 // This plugin ignores non-comments and comments already marked as spam 92 if( $comment->type == Comment::COMMENT && $comment->status != Comment::STATUS_SPAM) { 93 93 if( Comments::get( array( 'email' => $comment->email, 'name' => $comment->name, 94 94 'url' => $comment->url, 'status' => Comment::STATUS_APPROVED ) )->count >= Options::get( 'preapproved__approved_count' ) ) { 95 95 $comment->status = Comment::STATUS_APPROVED; 96 EventLog::log( 'Comment by ' . $comment->name . ' automatically approved.', 'info', 'PreApproved', 'Pre Approved' );96 EventLog::log( 'Comment by ' . $comment->name . ' automatically approved.', 'info', 'PreApproved', 'Preapproved' ); 97 97 } 98 98 } -
plugins/preapproved/trunk/readme.txt
r654 r837 1 1 Plugin: PreApproved 2 2 URL: http://habariproject.org 3 Version: 1. 23 Version: 1.3 4 4 Author: Habari Project 5 5 6 6 Purpose 7 7 8 PreApproved will automatically approve comments from commenters who already have the specified number of approved comments in your blog's database. 8 PreApproved will automatically approve comments from commenters who already have the specified number of approved comments in your blog's database. The exception is comments that a spamchecker plugin has marked as spam. These will not be approved. 9 9 10 10 Requirements … … 20 20 Usage 21 21 22 Configuration for PreApproved is performed by clicking the Configure button in its listing on your plugins page. The configuration screen has only one field - the number of comments the commenter must already have in the database to have new comments automatically approved. If you enter the number zero in this field, all comments will be automatically approved .22 Configuration for PreApproved is performed by clicking the Configure button in its listing on your plugins page. The configuration screen has only one field - the number of comments the commenter must already have in the database to have new comments automatically approved. If you enter the number zero in this field, all comments will be automatically approved, unless a spamchecker plugin has run previously and marked the comment as spam. 23 23 24 24 After you're done making your configuration changes, click the 'Save' button at the bottom of the form to save the changes. Click the 'Close' button to completely close the form.
