aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/ucp
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2009-06-20 18:45:16 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2009-06-20 18:45:16 +0000
commit433de350c0fa2e1e09c23e6f5f29f118222d2df8 (patch)
tree25e43220f961118c26112aa08a858d7ab4f6c065 /phpBB/includes/ucp
parent0d626d77bfaebb7e7e281e963b486911470f0992 (diff)
downloadforums-433de350c0fa2e1e09c23e6f5f29f118222d2df8.tar
forums-433de350c0fa2e1e09c23e6f5f29f118222d2df8.tar.gz
forums-433de350c0fa2e1e09c23e6f5f29f118222d2df8.tar.bz2
forums-433de350c0fa2e1e09c23e6f5f29f118222d2df8.tar.xz
forums-433de350c0fa2e1e09c23e6f5f29f118222d2df8.zip
- [Feature] New &quot;Newly Registered Users&quot; group for assigning permissions to newly registered users. They will be removed from this group once they reach a defineable amount of posts.
- [Feature] Ability to define if the &quot;Newly Registered Users&quot; group will be assigned as the default group to newly registered users. As a coincidence also Bug #46535 got fixed. Additionally the error message displayed with trigger_error() if accessing the private message tab in the ucp is now displayed inline in addition to a slightly different message for newly registered users to let them know that access permissions may be lifted over time. git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9636 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/ucp')
-rw-r--r--phpBB/includes/ucp/ucp_pm.php8
-rw-r--r--phpBB/includes/ucp/ucp_pm_viewfolder.php3
-rw-r--r--phpBB/includes/ucp/ucp_register.php5
3 files changed, 14 insertions, 2 deletions
diff --git a/phpBB/includes/ucp/ucp_pm.php b/phpBB/includes/ucp/ucp_pm.php
index b4ac0c11da..6ac02c7d0a 100644
--- a/phpBB/includes/ucp/ucp_pm.php
+++ b/phpBB/includes/ucp/ucp_pm.php
@@ -119,7 +119,13 @@ class ucp_pm
if (!$auth->acl_get('u_sendpm'))
{
- trigger_error('NO_AUTH_SEND_MESSAGE');
+ // trigger_error('NO_AUTH_SEND_MESSAGE');
+ $template->assign_vars(array(
+ 'S_NO_AUTH_SEND_MESSAGE' => true,
+ ));
+
+ $tpl_file = 'ucp_pm_viewfolder';
+ break;
}
include($phpbb_root_path . 'includes/ucp/ucp_pm_compose.' . $phpEx);
diff --git a/phpBB/includes/ucp/ucp_pm_viewfolder.php b/phpBB/includes/ucp/ucp_pm_viewfolder.php
index cb96b77754..b2ceb30f9e 100644
--- a/phpBB/includes/ucp/ucp_pm_viewfolder.php
+++ b/phpBB/includes/ucp/ucp_pm_viewfolder.php
@@ -504,8 +504,9 @@ function get_pm_from($folder_id, $folder, $user_id)
'TOTAL_MESSAGES' => (($pm_count == 1) ? $user->lang['VIEW_PM_MESSAGE'] : sprintf($user->lang['VIEW_PM_MESSAGES'], $pm_count)),
'POST_IMG' => (!$auth->acl_get('u_sendpm')) ? $user->img('button_topic_locked', 'POST_PM_LOCKED') : $user->img('button_pm_new', 'POST_NEW_PM'),
+ 'L_NO_MESSAGES' => (!$auth->acl_get('u_sendpm')) ? $user->lang['NO_AUTH_SEND_MESSAGE'] : $user->lang['NO_MESSAGES'],
- 'L_NO_MESSAGES' => (!$auth->acl_get('u_sendpm')) ? $user->lang['POST_PM_LOCKED'] : $user->lang['NO_MESSAGES'],
+ 'S_NO_AUTH_SEND_MESSAGE' => !$auth->acl_get('u_sendpm'),
'S_SELECT_SORT_DIR' => $s_sort_dir,
'S_SELECT_SORT_KEY' => $s_sort_key,
diff --git a/phpBB/includes/ucp/ucp_register.php b/phpBB/includes/ucp/ucp_register.php
index e1a924ae58..e0dc0222f5 100644
--- a/phpBB/includes/ucp/ucp_register.php
+++ b/phpBB/includes/ucp/ucp_register.php
@@ -310,6 +310,11 @@ class ucp_register
'user_inactive_time' => $user_inactive_time,
);
+ if ($config['new_member_post_limit'])
+ {
+ $user_row['user_new'] = 1;
+ }
+
// Register user...
$user_id = user_add($user_row, $cp_data);