diff options
author | mistic100 <mistic@piwigo.org> | 2012-09-23 09:34:30 +0000 |
---|---|---|
committer | mistic100 <mistic@piwigo.org> | 2012-09-23 09:34:30 +0000 |
commit | 7e33b84e770ddab61ef1d5c67061cd41c189f20e (patch) | |
tree | 6ffa8d888072108bcf05d0901fa22434dacecdc6 /admin | |
parent | b6d2db8600871cd72094a0c3043865b75357ef9b (diff) |
feature 2754: Add "Email" field for user comments + mandatory "Author"
git-svn-id: http://piwigo.org/svn/trunk@18164 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | admin/configuration.php | 4 | ||||
-rw-r--r-- | admin/themes/default/template/configuration.tpl | 14 |
2 files changed, 17 insertions, 1 deletions
diff --git a/admin/configuration.php b/admin/configuration.php index 6132c7806..c615d64f1 100644 --- a/admin/configuration.php +++ b/admin/configuration.php @@ -73,7 +73,9 @@ $comments_checkboxes = array( 'user_can_delete_comment', 'user_can_edit_comment', 'email_admin_on_comment_edition', - 'email_admin_on_comment_deletion' + 'email_admin_on_comment_deletion', + 'comments_author_mandatory', + 'comments_email_mandatory', ); $display_checkboxes = array( diff --git a/admin/themes/default/template/configuration.tpl b/admin/themes/default/template/configuration.tpl index 651df8eba..388e26d0d 100644 --- a/admin/themes/default/template/configuration.tpl +++ b/admin/themes/default/template/configuration.tpl @@ -227,6 +227,20 @@ jQuery(document).ready(function () { {'Validation'|@translate} </label> </li> + + <li> + <label> + <input type="checkbox" name="comments_author_mandatory" {if ($comments.comments_author_mandatory)}checked="checked"{/if}> + {'Username is mandatory'|@translate} + </label> + </li> + + <li> + <label> + <input type="checkbox" name="comments_email_mandatory" {if ($comments.comments_email_mandatory)}checked="checked"{/if}> + {'Email address is mandatory'|@translate} + </label> + </li> <li> <label> |