From 7e33b84e770ddab61ef1d5c67061cd41c189f20e Mon Sep 17 00:00:00 2001 From: mistic100 Date: Sun, 23 Sep 2012 09:34:30 +0000 Subject: feature 2754: Add "Email" field for user comments + mandatory "Author" git-svn-id: http://piwigo.org/svn/trunk@18164 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/configuration.php | 4 +- admin/themes/default/template/configuration.tpl | 14 +++++++ comments.php | 17 ++++++++ include/functions.inc.php | 19 +++++++++ include/functions_comment.inc.php | 41 ++++++++++++++++--- include/functions_user.inc.php | 14 +++---- include/picture_comment.inc.php | 52 +++++++++++++------------ install/config.sql | 2 + install/db/130-database.php | 41 +++++++++++++++++++ install/piwigo_structure-mysql.sql | 1 + language/en_UK/common.lang.php | 3 ++ language/fr_FR/common.lang.php | 5 ++- themes/default/template/comment_list.tpl | 3 +- themes/default/template/picture.tpl | 12 ++++-- 14 files changed, 182 insertions(+), 46 deletions(-) create mode 100644 install/db/130-database.php 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} + +
  • + +
  • + +
  • + +