summaryrefslogtreecommitdiff
path: root/admin
diff options
context:
space:
mode:
authorwjames5 <will@tekimaki.com>2008-04-17 13:26:29 +0000
committerwjames5 <will@tekimaki.com>2008-04-17 13:26:29 +0000
commitd1eb2f68dbcdab8183ff70ec1e2ef4c04ce92b3e (patch)
tree91c4f5e0a9b202e79c599cf33072eed88f5ef0f5 /admin
parentf0be929e28e6b6575dce0b7534495086a2941476 (diff)
downloadliberty-d1eb2f68dbcdab8183ff70ec1e2ef4c04ce92b3e.tar.gz
liberty-d1eb2f68dbcdab8183ff70ec1e2ef4c04ce92b3e.tar.bz2
liberty-d1eb2f68dbcdab8183ff70ec1e2ef4c04ce92b3e.zip
introduce options for moderating comments, e.g. screening them before they are made public. features require moderation package and are hidden unless installed. outstanding issues remain, use of status id is effective but not fully respected in boards, all custom permissions are not fully and properly checked - a reference to root obj is needed in LibertyComments. there may be others. current sites should be completely uneffected unless they opt in and enable.
Diffstat (limited to 'admin')
-rw-r--r--admin/comments.php27
1 files changed, 26 insertions, 1 deletions
diff --git a/admin/comments.php b/admin/comments.php
index 1addc6d..263f82b 100644
--- a/admin/comments.php
+++ b/admin/comments.php
@@ -34,8 +34,33 @@ $commentSettings = array(
);
$gBitSmarty->assign( 'commentSettings', $commentSettings );
+$commentModerationSettings = array();
+
+if ( $gBitSystem->isPackageActive('moderation') ){
+ $commentModerationSettings = array(
+ "comments_allow_moderation" => array(
+ 'label' => 'Allow admins to moderate comments',
+ 'note' => 'Checking this allows users with the permission to edit comments the ability to force moderation on comment posts. When comments are moderated they are automatically hidden until approved by a moderator. This is opt in, meaning you can limit the moderation requirement on a content by content basis.',
+ 'page' => '',
+ ),
+ "comments_allow_owner_moderation" => array(
+ 'label' => 'Allow content creators to moderate comments on their content',
+ 'note' => 'This is similar to allowing admins to moderate comments, but this lets the creator of a content item to require and moderate the comments on the things they create. Administrators will also be able to admin those comments.',
+ 'page' => '',
+ ),
+ "comments_moderate_all" => array(
+ 'label' => 'Require moderation of all comments',
+ 'note' => 'This forces all comments to be held for moderation before being published. We recommend this only if you are have extensive problems with spam or malicious comments; on high traffic sites this features requires a lot of hands on work to read all comments',
+ 'page' => '',
+ ),
+ );
+
+ $gBitSmarty->assign( 'commentModerationSettings', $commentModerationSettings );
+}
+
if( !empty( $_REQUEST['change_prefs'] ) ) {
- foreach( array_keys( $commentSettings ) as $item ) {
+ $commentOptions = array_merge( $commentSettings, $commentModerationSettings );
+ foreach( array_keys( $commentOptions ) as $item ) {
simple_set_toggle( $item, LIBERTY_PKG_NAME );
}