Page 1 of 71

Log IP Address on Registration

Posted: Thu Apr 14, 2005 4:22 am
by Extensions Robot
Modification name: Log IP Address on Registration
Author: TerraFrost
Modification description: Logs the IP address of users when they register.
Modification version: 1.0.1
Tested on phpBB version: See below

Download file: reg_ip.zip
File size: 1640 Bytes

Modification overview page: View


Selected tags:
  1. category
    1. Security
  2. phpbb
    1. 2.0.14
    2. 2.0.22
Support for this modification needs to be asked within this topic. The phpBB Team is not responsible or required to give anyone support for this modification. By installing this MOD, you acknowledge that the phpBB Support Team or phpBB MODifications Team may not be able to provide support.

This MOD has only been tested by the phpBB MOD Team with the phpBB version listed in the topic. It may not work in any other versions of phpBB.

Posted: Fri Apr 29, 2005 3:03 pm
by TerraFrost
MOD Validated/Released

Notes:
Logs the IP addresses of newly registering users.

Posted: Fri Apr 29, 2005 5:18 pm
by Cross_+_Flame
Does this work with Ptiiriik's Profile Control Panel? I ask because I used another mod and it didn't log the IP addresses because of the PCP. :?

Not a complaint if it doesn't (as you aren't required to support other people's mods), but a cheers if it does! ;)

Posted: Fri Apr 29, 2005 8:32 pm
by AbelaJohnB
Appears to work as advertized and without errors. Nice job Jim.


Just a suggestion for a next version (if you plan on having one):


Within the login form, check to see if there is already a value (other than 0.0.0.0) stored in the db, and if there is not, update it.

This would be a nice method to grab the value for those who've registered before this MOD is installed ;)

Posted: Fri Apr 29, 2005 9:46 pm
by TerraFrost
Does this work with Ptiiriik's Profile Control Panel? I ask because I used another mod and it didn't log the IP addresses because of the PCP.

I don't know - I'll try to install it sometime this weekend (or the week after; this weekends kinda packed for me) and see if it does and how to make it work if it doesn't.
Within the login form, check to see if there is already a value (other than 0.0.0.0) stored in the db, and if there is not, update it.

That is a good idea - thanks! :D

Posted: Sun May 01, 2005 11:05 am
by 4rum
8) Nice one thanks TerraFrost
AbelaJohnB wrote: Just a suggestion for a next version (if you plan on having one):
Within the login form, check to see if there is already a value (other than 0.0.0.0) stored in the db, and if there is not, update it.
This would be a nice method to grab the value for those who've registered before this MOD is installed ;)


Great idea.

Also, is there a way to incorporate this in wGErics' admin userlist 2.0.2

Posted: Sun May 01, 2005 8:40 pm
by hojko
Cross_+_Flame wrote: Does this work with Ptiiriik's Profile Control Panel? I ask because I used another mod and it didn't log the IP addresses because of the PCP. :?

Not a complaint if it doesn't (as you aren't required to support other people's mods), but a cheers if it does! ;)
I have same problem with PCP.

Posted: Mon May 02, 2005 5:55 am
by 3Di
The question: i have a phpbb2.0.14 + CH RC4, does this mod works onit? And.. works also with old registrations?

thx in advance

Posted: Mon May 02, 2005 6:40 am
by TerraFrost
i have a phpbb2.0.14 + CH RC4, does this mod works onit?

I'd assume it would, although I can't say that it will, definitively. Unlike the PCP MOD, the CH MOD doesn't (I don't believe) replace large portions of code in usercp_register.php.

Code: Select all

And.. works also with old registrations?
Nope, although AbelaJohnB's suggestion - which I'll try to implement along with PCP and Admin Userlist support sometime this week - should work quite nicely :)

I'll post the modifications in this thread when I'm finished :)

Posted: Mon May 02, 2005 6:43 am
by Teletran One
If you're going to put that retroactive thing in, I'll wait for you to finish before downloading it.

Posted: Mon May 02, 2005 3:19 pm
by blinddruid
I installed it and its not working for me. The latest member that registered has this in their profile - Registration IP Address: 0.0.0.0

I noticed that when I tried to edit the mysql table for this mod, for some reason it would not take the CHAR setting. It would automatically revert to the VARCHAR(8) setting. Is this a problem?

Posted: Mon May 02, 2005 10:45 pm
by SeraphicGate
What would be the best way to give an IP for myself and one other user, we both were members before I installed this mod. And we both have 0.0.0.0 for the registration IP. New users work fine though.

Posted: Tue May 03, 2005 3:02 am
by TerraFrost
What would be the best way to give an IP for myself and one other user, we both were members before I installed this mod. And we both have 0.0.0.0 for the registration IP. New users work fine though.

AbelaJohnB had a good idea as to how this could be done. Pretty much, you use the IP address any given user has when they log on. I'm gonna try to implement this feature (along with adding compatability for the PCP MOD and the Admin Userlist MOD) later this week (I can't do it atm 'cause I have an exam tomorrow :()
I installed it and its not working for me. The latest member that registered has this in their profile - Registration IP Address: 0.0.0.0

If the latest member registered before you installed this MOD, then that's the problem. I hope they didn't register afterwards, 'cause if so, I have no idea what the problem would be, atm :(
I noticed that when I tried to edit the mysql table for this mod, for some reason it would not take the CHAR setting. It would automatically revert to the VARCHAR(8 ) setting. Is this a problem?

Nope - that shouldn't be a problem.

Posted: Tue May 03, 2005 5:29 am
by SeraphicGate
TerraFrost wrote:
What would be the best way to give an IP for myself and one other user, we both were members before I installed this mod. And we both have 0.0.0.0 for the registration IP. New users work fine though.

AbelaJohnB had a good idea as to how this could be done. Pretty much, you use the IP address any given user has when they log on. I'm gonna try to implement this feature (along with adding compatability for the PCP MOD and the Admin Userlist MOD) later this week (I can't do it atm 'cause I have an exam tomorrow :()


I think I know what you mean. Enter the IP into both our user account tables right? Problem is I tried that, and our IP's our longer then 8. So they won't fit. Also, if I remember right it still didn't display the correct part of the IP that did fit into the user table.

Posted: Tue May 03, 2005 5:36 am
by TerraFrost
I think I know what you mean. Enter the IP into both our user account tables right? Problem is I tried that, and our IP's our longer then 8. So they won't fit. Also, if I remember right it still didn't display the correct part of the IP that did fit into the user table.

You're trying to do it by hand? That could be a little tricky, actually. I sorta compress the IP's using the encode_ip function from functions.php. I can probably whip together a quick script to convert normal IP addresses into the compressed ones tomorrow (I'm gonna go study for a test after this post, which is why it's not gonna get done today).