Update of /cvsroot/php-blog/serendipity/include/tpl
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28988/include/tpl
Modified Files:
config_personal.inc.php
Log Message:
Personal Configuration allows to configure defaults per-user for creating entries (publish state, moderate comments, allow comments)
Index: config_personal.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/include/tpl/config_personal.inc.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- config_personal.inc.php 26 Jan 2005 14:14:06 -0000 1.5
+++ config_personal.inc.php 27 Jan 2005 15:02:02 -0000 1.6
@@ -74,5 +74,35 @@
'default' => true,
'userlevel' => USERLEVEL_CHIEF),
));
+
+ $res['defaults'] =
+ array('title' => USERCONF_CAT_DEFAULT_NEW_ENTRY,
+ 'description' => '',
+ 'items' => array(
+ array('var' => 'moderateCommentsDefault',
+ 'title' => COMMENTS_MODERATE,
+ 'description' => '',
+ 'type' => 'bool',
+ 'default' => false,
+ 'userlevel' => USERLEVEL_EDITOR,
+ 'flags' => array('config')),
+
+ array('var' => 'allowCommentsDefault',
+ 'title' => COMMENTS_ENABLE,
+ 'description' => '',
+ 'type' => 'bool',
+ 'default' => true,
+ 'userlevel' => USERLEVEL_EDITOR,
+ 'flags' => array('config')),
+
+ array('var' => 'publishDefault',
+ 'title' => NEW_ENTRY,
+ 'description' => '',
+ 'type' => 'list',
+ 'default' => array('publish' => PUBLISH, 'draft' => DRAFT),
+ 'userlevel' => USERLEVEL_EDITOR,
+ 'flags' => array('config')),
+ ));
+
return $res;
?>
|