Code: Select all
date($config['default_dateformat'], $user_row['user_regdate']))
Code: Select all
strftime("%a, %d %b, %G %H" , $user_row['user_regdate']))
Code: Select all
date($config['default_dateformat'], $user_row['user_regdate']))
Code: Select all
strftime("%a, %d %b, %G %H" , $user_row['user_regdate']))
Not workRMcGirr83 wrote:Try changing this
to thisCode: Select all
date($config['default_dateformat'], $user_row['user_regdate']))
That edit is done in includes/ucp/ucp_register.phpCode: Select all
strftime("%a, %d %b, %G %H" , $user_row['user_regdate']))
Is it possible to get some help?mrshs wrote:I have exactly the same problem. I get no e-mail. No nothing. I installed it with automod, and it installed without any error messages. What shall I do?ISPY06 wrote:i used automod to install and it installed fine,but no email was sent to my admin email. any ideaS?
Code: Select all
language/en/email/admin_notify_registered.txt
Hi, thanks so much for your reply!iftitaj wrote:Is there this file in your forum's location:
Also have you purged your cache, refresh template?Code: Select all
language/en/email/admin_notify_registered.txt
Code: Select all
// BEGIN "Notify admin on registration MOD" - most of the code borrowed from phpBB, thank you
// Don't send e-mail if activation was sent, would only be duplicite
if ($config['require_activation'] != USER_ACTIVATION_ADMIN)
{
// Grab an array of user_id's with a_user permissions ... these users can activate a user
$admin_ary = $auth->acl_get_list(false, 'a_user', false);
$admin_ary = (!empty($admin_ary[0]['a_user'])) ? $admin_ary[0]['a_user'] : array();
// Also include founders
$where_sql = ' WHERE user_type = ' . USER_FOUNDER;
if (sizeof($admin_ary))
{
$where_sql .= ' OR ' . $db->sql_in_set('user_id', $admin_ary);
}
$sql = 'SELECT user_id, username, user_email, user_lang, user_jabber, user_notify_type
FROM ' . USERS_TABLE . ' ' .
$where_sql;
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result))
{
$messenger->template('admin_notify_registered', $row['user_lang']);
$messenger->to($row['user_email'], $row['username']);
$messenger->im($row['user_jabber'], $row['username']);
$messenger->assign_vars(array(
'USERNAME' => htmlspecialchars_decode($data['username']),
'USER_MAIL' => $data['email'],
'USER_REGDATE' => date($config['default_dateformat'], $user_row['user_regdate']))
);
$messenger->send($row['user_notify_type']);
}
$db->sql_freeresult($result);
}
// END "Notify admin on registration MOD"
Code: Select all
// Also include founders
$where_sql = ' WHERE user_type = ' . USER_FOUNDER;
if (sizeof($admin_ary))
{
$where_sql .= ' OR ' . $db->sql_in_set('user_id', $admin_ary);
}
Code: Select all
// Also include founders
$where_sql = ' ';
if (sizeof($admin_ary))
{
$where_sql = 'WHERE ' . $db->sql_in_set('user_id', $admin_ary);
}
Sorry, for the late reply. I checked the file now, and yes, the whole code is there.iftitaj wrote:Are you using english language on your forum?
Have you check manual edit from install.xml ? Maybe AutoMOD failed to edit properly.
Check this:
Open includes/ucp/ucp_register.php
Find:Let me know whether the above code is there and it should be exactly that (except starting spaces in lines, if any).Code: Select all
// BEGIN "Notify admin on registration MOD" - most of the code borrowed from phpBB, thank you // Don't send e-mail if activation was sent, would only be duplicite if ($config['require_activation'] != USER_ACTIVATION_ADMIN) { // Grab an array of user_id's with a_user permissions ... these users can activate a user $admin_ary = $auth->acl_get_list(false, 'a_user', false); $admin_ary = (!empty($admin_ary[0]['a_user'])) ? $admin_ary[0]['a_user'] : array(); // Also include founders $where_sql = ' WHERE user_type = ' . USER_FOUNDER; if (sizeof($admin_ary)) { $where_sql .= ' OR ' . $db->sql_in_set('user_id', $admin_ary); } $sql = 'SELECT user_id, username, user_email, user_lang, user_jabber, user_notify_type FROM ' . USERS_TABLE . ' ' . $where_sql; $result = $db->sql_query($sql); while ($row = $db->sql_fetchrow($result)) { $messenger->template('admin_notify_registered', $row['user_lang']); $messenger->to($row['user_email'], $row['username']); $messenger->im($row['user_jabber'], $row['username']); $messenger->assign_vars(array( 'USERNAME' => htmlspecialchars_decode($data['username']), 'USER_MAIL' => $data['email'], 'USER_REGDATE' => date($config['default_dateformat'], $user_row['user_regdate'])) ); $messenger->send($row['user_notify_type']); } $db->sql_freeresult($result); } // END "Notify admin on registration MOD"
Sorry can't think of any other mistakes/error at your end.mrshs wrote:Sorry, for the late reply. I checked the file now, and yes, the whole code is there.