Feature 1026 : Modify / delete comments for users

+ update config table content
 + minor modification of Sylvia theme
 + need refactoring

git-svn-id: http://piwigo.org/svn/trunk@3445 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
nikrou
2009-06-23 13:44:58 +00:00
parent 5b52442589
commit 9245227e70
16 changed files with 365 additions and 51 deletions
+4
View File
@@ -69,6 +69,10 @@ $comments_checkboxes = array(
'comments_validation',
'email_admin_on_comment',
'email_admin_on_comment_validation',
'user_can_delete_comment',
'user_can_edit_comment',
'email_admin_on_comment_edition',
'email_admin_on_comment_deletion'
);
//------------------------------ verification and registration of modifications
+26
View File
@@ -143,6 +143,32 @@
<input type="checkbox" name="email_admin_on_comment_validation" {if ($comments.email_admin_on_comment_validation)}checked="checked"{/if}>
</label>
</li>
<li>
<label>
<span class="property">{'Allow users to edit theirs owns comments'|@translate}</span>
<input type="checkbox" name="user_can_edit_comment" {if ($comments.user_can_edit_comment)}checked="checked"{/if}>
</label>
</li>
<li>
<label>
<span class="property">{'Allow users to delete theirs owns comments'|@translate}</span>
<input type="checkbox" name="user_can_delete_comment" {if ($comments.user_can_delete_comment)}checked="checked"{/if}>
</label>
</li>
<li>
<label>
<span class="property">{'Email administrators when a comment is modified'|@translate}</span>
<input type="checkbox" name="email_admin_on_comment_edition" {if ($comments.email_admin_on_comment_edition)}checked="checked"{/if}>
</label>
</li>
<li>
<label>
<span class="property">{'Email administrators when a comment is deleted'|@translate}</span>
<input type="checkbox" name="email_admin_on_comment_deletion" {if ($comments.email_admin_on_comment_deletion)}checked="checked"{/if}>
</label>
</li>
</ul>
</fieldset>
{/if}