IP on registration

16 years 3 months ago #54022 by artwido
IP on registration was created by artwido
I really miss the opportunity to see the IP of new registrations.
I know there is a 3rd party plugin to get the IP of users, I have allready installed this plugin. But it does not works Accurate. It takes many visits from my users before I can see there IP with this plugin.
So maybe this can be a new feature? ;)

Please Log in to join the conversation.

16 years 3 months ago #54154 by Miqdadxp
Replied by Miqdadxp on topic Re:IP on registration
anyone?

Please Log in to join the conversation.

15 years 9 months ago #66780 by drnorton
Replied by drnorton on topic Re:IP on registration
HI!

i have made a little workaraound to see the Registration IP of a ned User. The IP Adres ist sent in the Mail to the Admin after the User has registered..

you have to change code in 2 files:

1) in your language file:[code:1]DEFINE ('_UE_REG_ADMIN_PA_MSG','Ein neuer Benutzer hat sich auf [SITEURL] angemeldet und wartet auf Freischaltung.\n'
.'Diese E-Mail enthaelt die Anmeldedaten\n\n'
.'Name - [NAME]\n'
.'E-Mail - [EMAILADDRESS]\n'
.'IP-Adresse - [REGIPADDRESS]\n'
.'Benutzername - [USERNAME]\n\n\n'
.'Diese Nachricht wurde automatisch generiert und dient nur zur Information. Bitte nicht darauf antworten\n');[/code:1]

2) and in the comprofiler.class.php about line 4961 (its in ...\administrator\components\com_comprofiler[code:1] function _replaceVariables($msg, $row){
global $mosConfig_live_site, $ueConfig, $mosConfig_emailpass;

if($ueConfig==1) {
if ( $row->cbactivation ) {
$confirmCode = $row->cbactivation;
} else {
$confirmCode = ''; // this was registrations-confirm codes before 1.0.2, removed at 1.1: md5($row->id);
}
// no sef here ! space added after link for dumb emailers (Ms Entourage)
$confirmLink = " \n".$mosConfig_live_site."/index.php?option=com_comprofiler&task=confirm&confirmcode=".$confirmCode." \n";
} else {
$confirmLink = ' ';
}

$msg = str_replace( array( '\n' ), array( "\n" ), $msg ); // was eval ("\$msg = \"$msg\";"«»); // compensate for wrong language definitions (using '\n' instaed of "\n"«»)
$msg = cbstr_ireplace("[USERNAME]", $row->username, $msg);
$msg = cbstr_ireplace("[NAME]", $row->name, $msg);
$msg = cbstr_ireplace("[EMAILADDRESS]", $row->email, $msg);
$msg = cbstr_ireplace("[REGIPADDRESS]", $row->registeripaddr, $msg); // MyOwnChange: IPAddress in admin mail
$msg = cbstr_ireplace("[SITEURL]", $mosConfig_live_site, $msg);
$msg = cbstr_ireplace("[DETAILS]", $this->_getUserDetails($row,$mosConfig_emailpass), $msg);
$msg = cbstr_ireplace("[CONFIRM]", $confirmLink, $msg );
$msg = cbReplaceVars( $msg, $row );
return $msg;
}
} // end class cbNotification[/code:1]
thats all and it works for me ;-)

Greets from Austria!

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.202 seconds

Facebook Twitter LinkedIn