Topic: IP Address displayed on alert email to admin.

Hi,

I have a question, in regard to the e-mail that is sent to the Admin from the forum of the alert of a new signed up user - would it be possible to also have the users "IP" address displayed on that same e-mail message?? If so how can this be done?

Any idea to this would be appreciated...

Thanks

Re: IP Address displayed on alert email to admin.

I think you can open register.php, find this?

        $mail_message = 'User \''.$username.'\' registered in the forums at '.$pun_config['o_base_url']."\n\n".'User profile: '.$pun_config['o_base_url'].'/profile.php?id='.$new_uid."\n\n".'-- '."\n".'Forum Mailer'."\n".'(Do not reply to this message)';

?and replace it with this:

        $mail_message = 'User \''.$username.'\' registered in the forums at '.$pun_config['o_base_url']."\n\n".'User profile: '.$pun_config['o_base_url'].'/profile.php?id='.$new_uid."\n\n".'User IP Address: '.get_remote_address()."\n\n".'-- '."\n".'Forum Mailer'."\n".'(Do not reply to this message)';

3 (edited by IDunno 2007-02-08 00:29)

Re: IP Address displayed on alert email to admin.

Hi guardian34,

Thanks for the reply... Wow, thanks man!.... I give it a try!!

Cheers! smile

Re: IP Address displayed on alert email to admin.

Hi guardian34,

It worked fine and just what I wanted!! Thank you sooooo very much!!!

Cheers