aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDhruv Goel <dhruv.goel92@gmail.com>2012-04-09 02:21:45 +0530
committerDhruv Goel <dhruv.goel92@gmail.com>2012-05-10 22:48:32 +0530
commit239e6016a308cd80135ebe9d7057c2eb102af29d (patch)
tree37ef4204ab66316a339f3572caa80aeed8642a36
parent643970dce4710b1eebbeb86ff4ac0074c9bfe298 (diff)
downloadforums-239e6016a308cd80135ebe9d7057c2eb102af29d.tar
forums-239e6016a308cd80135ebe9d7057c2eb102af29d.tar.gz
forums-239e6016a308cd80135ebe9d7057c2eb102af29d.tar.bz2
forums-239e6016a308cd80135ebe9d7057c2eb102af29d.tar.xz
forums-239e6016a308cd80135ebe9d7057c2eb102af29d.zip
[ticket/10308] Displays message to user if there are no posts.
While deletng the user, if the user has no posts in addition to the options being disabled an added message is displayed. PHPBB3-10308
-rw-r--r--phpBB/adm/style/acp_users_overview.html3
-rw-r--r--phpBB/language/en/acp/users.php1
2 files changed, 4 insertions, 0 deletions
diff --git a/phpBB/adm/style/acp_users_overview.html b/phpBB/adm/style/acp_users_overview.html
index 0eeb7cde8b..b158995563 100644
--- a/phpBB/adm/style/acp_users_overview.html
+++ b/phpBB/adm/style/acp_users_overview.html
@@ -141,6 +141,9 @@
<dl>
<dt><label for="delete_type">{L_DELETE_USER}:</label><br /><span>{L_DELETE_USER_EXPLAIN}</span></dt>
<dd><select id="delete_type" name="delete_type"><option class="sep" value="">{L_SELECT_OPTION}</option><option value="retain"<!-- IF USER_POSTS == 0 --> disabled="disabled" class="disabled-option"<!-- ENDIF -->>{L_RETAIN_POSTS}</option><option value="remove"<!-- IF USER_POSTS == 0 --> disabled="disabled" class="disabled-option"<!-- ENDIF -->>{L_DELETE_POSTS}</option></select></dd>
+ <!-- IF USER_POSTS == 0 -->
+ <dd>{L_NO_POSTS}</dd>
+ <!-- ENDIF -->
</dl>
<p class="quick">
<input class="button1" type="submit" name="update" value="{L_SUBMIT}" />
diff --git a/phpBB/language/en/acp/users.php b/phpBB/language/en/acp/users.php
index eda9659795..928699fd11 100644
--- a/phpBB/language/en/acp/users.php
+++ b/phpBB/language/en/acp/users.php
@@ -77,6 +77,7 @@ $lang = array_merge($lang, array(
'MOVE_POSTS_EXPLAIN' => 'Please select the forum to which you wish to move all the posts this user has made.',
+ 'NO_POSTS' => 'The user has no posts.',
'NO_SPECIAL_RANK' => 'No special rank assigned',
'NO_WARNINGS' => 'No warnings.',
'NOT_MANAGE_FOUNDER' => 'You tried to manage a user with founder status. Only founders are allowed to manage other founders.',