IP Address in admin activation email

Adds a users registration IP Address to the admin activation email

Requested by felony34 in this topic

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 ]------------------------------------------
#
                                $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 ]------------------------------------------
#
                                $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 ]------------------------------------------
#
    Use this link to view the user's profile:
#
#-----[ BEFORE ADD ]------------------------------------------
#
    Registered IP Address: {USER_IP}

It's really up to you where you put {USER_IP} in that file, as long as it's there.
Change the text to your own liking