This snippet adds registration IP Address to the admin activation email.
* Please note that if you do not use admin activation on your forums, then this snippet is useless to you *
OPEN: includes/ucp/ucp_register.php
FIND:
Code: Select all
$messenger->assign_vars(array(
'USERNAME' => htmlspecialchars_decode($data['username']),
'U_USER_DETAILS' => "$server_url/memberlist.$phpEx?mode=viewprofile&u=$user_id",
'U_ACTIVATE' => "$server_url/ucp.$phpEx?mode=activate&u=$user_id&k=$user_actkey")
);
REPLACE WITH:
Code: Select all
$messenger->assign_vars(array(
'USERNAME' => htmlspecialchars_decode($data['username']),
'USER_IP' => $user->ip,
'U_USER_DETAILS' => "$server_url/memberlist.$phpEx?mode=viewprofile&u=$user_id",
'U_ACTIVATE' => "$server_url/ucp.$phpEx?mode=activate&u=$user_id&k=$user_actkey")
);
OPEN: language/en/email/admin_activate.txt
FIND:
Code: Select all
Use this link to view the user's profile:
BEFORE ADD:
Code: Select all
Registered IP Address: {USER_IP}