Per i messaggi privati ho modificato come segue il file ucp_pm.php (soluzione trovata su forum estero)
ORIGINALE
Codice: Seleziona tutto
// Compose message
case 'compose':
$action = request_var('action', 'post');
get_folder($user->data['user_id']);
if (!$auth->acl_get('u_sendpm'))
{
trigger_error('NO_AUTH_SEND_MESSAGE');
}
include($phpbb_root_path . 'includes/ucp/ucp_pm_compose.' . $phpEx);
compose_pm($id, $mode, $action);
$tpl_file = 'posting_body';
break;
Codice: Seleziona tutto
// Compose message
case 'compose':
if ($user->data['user_posts'] <10){
trigger_error ("Minimo di 10 post per utilizzare i messaggi privati. Per contattare lo staff: webmaster@*****.org");
}
else
{
$action = request_var('action', 'post');
get_folder($user->data['user_id']);
if (!$auth->acl_get('u_sendpm'))
{
trigger_error('NO_AUTH_SEND_MESSAGE');
}
include($phpbb_root_path . 'includes/ucp/ucp_pm_compose.' . $phpEx);
compose_pm($id, $mode, $action);
$tpl_file = 'posting_body';
}
break;
Codice: Seleziona tutto
case 'email':
// Send an email
$page_title = $user->lang['SEND_EMAIL'];
$template_html = 'memberlist_email.html';
add_form_key('memberlist_email');
if (!$config['email_enable'])
{
trigger_error('EMAIL_DISABLED');
}
if (!$auth->acl_get('u_sendemail'))
{
trigger_error('NO_EMAIL');
}
// Are we trying to abuse the facility?
if (time() - $user->data['user_emailtime'] < $config['flood_interval'])
{
trigger_error('FLOOD_EMAIL_LIMIT');
}

Sapreste aiutarmi?