Arrow Home arrow Forums
larger font smaller font default font Fixed screen resolution Auto adjust screen size

Advertise on this site

Joomlapolis Forums  


IP on registration
Date: 2008/01/10 17:31 By: artwido Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 1
graphgraph
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?
Click here to see the profile of this user The administrator has disabled public write access.

Re:IP on registration
Date: 2008/01/12 17:12 By: Miqdadxp Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 1
graphgraph
anyone?
Click here to see the profile of this user The administrator has disabled public write access.

Re:IP on registration
Date: 2008/06/29 12:41 By: drnorton Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 3
graphgraph
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:

 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' <span style="color: #FF0000">.'IP-Adresse - [REGIPADDRESS]\n'</span> .'Benutzername - [USERNAME]\n\n\n' .'Diese Nachricht wurde automatisch generiert und dient nur zur Information. Bitte nicht darauf  antworten\n');



2) and in the comprofiler.class.php about line 4961 (its in ...administratorcomponentscom_comprofiler
Code:

     function _replaceVariables($msg$row){         global $mosConfig_live_site$ueConfig$mosConfig_emailpass;                  if($ueConfig['reg_confirmation']==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);         <span style="color: #FF0000">$msg cbstr_ireplace("[REGIPADDRESS]"$row->registeripaddr$msg);</span// 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


thats all and it works for me

Greets from Austria!
Click here to see the profile of this user The administrator has disabled public write access.

Documentation

Documentation Subscription Service
(updated for CB 1.2 RC2)

What?

Why?

Where?

Just click here for answers!

Click here for a yearly subscription: subscribe now

Download Latest Release

The latest stable Community Builder Release is version 1.1 for Joomla 1.0 and Mambo.
You need to be a registered member of Joomlapolis to download.

The latest release candidate of Community Builder is version 1.2 RC2, native for Joomla 1.0, 1.5 and Mambo.
It is available as "thank you" to all CB documentation subscribers at this time.

CB Login