Log IP Address on Registration

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in here. No new MODs will be accepted into the MOD Database for phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.

Rating:

Excellent!
112
78%
Very Good
16
11%
Good
8
6%
Fair
3
2%
Poor
4
3%
 
Total votes: 143

User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21035
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: Log IP Address on Registration

Post by RMcGirr83 »

this

Code: Select all

, '" . $userdata['session_ip'] . "''" . str_replace("\'", "''", $icq) . "',
should be this
, '" . $userdata['session_ip'] . "', '" . str_replace("\'", "''", $icq) . "',
you are missing a comma (the little red thing)
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

praveenc85
Registered User
Posts: 3
Joined: Wed Dec 12, 2007 4:30 pm

Re: Log IP Address on Registration

Post by praveenc85 »

Hi RMcGirr83,

Thanks for that. It is working fine now. in the installation guide coma was missing and i followed the same and faced the error... :(

Thanks a lot dude.

Praveen Kumar C

User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21035
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: Log IP Address on Registration

Post by RMcGirr83 »

praveenc85 wrote:Thanks for that. It is working fine now. in the installation guide coma was missing and i followed the same and faced the error... :(

Thanks a lot dude.

Praveen Kumar C
actually according to the install instructions it is there

Code: Select all

#
#-----[ IN-LINE FIND ]---------------------------------
#
, '" . str_replace("\'", "''", $icq)
#
#-----[ IN-LINE BEFORE, ADD ]---------------------------
#
, '" . $userdata['session_ip'] . "'

Glad you got it working just the same.
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

User avatar
HCP
Registered User
Posts: 172
Joined: Wed Jun 22, 2005 8:10 am
Location: Australia
Contact:

Re: Log IP Address on Registration

Post by HCP »

I'm not sure if this has been answered before, but how can I record the IPs of members who have already registered?

User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21035
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: Log IP Address on Registration

Post by RMcGirr83 »

You can try this.

OPEN

includes/sessions.php

FIND

Code: Select all

$sql = "UPDATE " . USERS_TABLE . "
IN LINE, FIND

Code: Select all

user_lastvisit = $last_visit
IN LINE, AFTER ADD

Code: Select all

, user_regip = '$user_ip'
which should update the user regip every time they log in.
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

User avatar
HCP
Registered User
Posts: 172
Joined: Wed Jun 22, 2005 8:10 am
Location: Australia
Contact:

Re: Log IP Address on Registration

Post by HCP »

Thanks! That was what I was looking for... :D

comuter
Registered User
Posts: 158
Joined: Mon Jan 16, 2006 2:08 pm

Re: Log IP Address on Registration

Post by comuter »

Can someone please link me to the addon for Log IP on Reg that fixes all the old IPs of people that regged before installing this mod?

Thanks

diabolic.bg
Registered User
Posts: 447
Joined: Mon Dec 11, 2006 3:41 pm
Location: Bulgaria, Sofia
Contact:

Re: Log IP Address on Registration

Post by diabolic.bg »

Here in the topic have a big pack addons. You must only search all pages for link.
Sorry but I don't remember where is it. :oops:

TerraFrost
Former Team Member
Posts: 5957
Joined: Sun Dec 26, 2004 3:40 am
Location: Austin, TX

Re: Log IP Address on Registration

Post by TerraFrost »

comuter wrote:Can someone please link me to the addon for Log IP on Reg that fixes all the old IPs of people that regged before installing this mod?

Thanks
RMcGirr83 posted, just above your post, some changes that should do just this.

Also, check this post out:

http://www.phpbb.com/community/viewtopi ... 4#p2300114

diabolic.bg
Registered User
Posts: 447
Joined: Mon Dec 11, 2006 3:41 pm
Location: Bulgaria, Sofia
Contact:

Re: Log IP Address on Registration

Post by diabolic.bg »

TerraFrost wrote:Also, check this post out:

http://www.phpbb.com/community/viewtopi ... 4#p2300114
This is what I have in my mind. Thanks, Terra! :D

skillcycle
Registered User
Posts: 1
Joined: Wed Jan 30, 2008 8:47 pm

Re: Log IP Address on Registration

Post by skillcycle »

I have installed this to the letter (I think :) )

It is logging the IP address but when I log into the Admin Control Panel I get these errors:

$icq = $this_userdata['user_icq'];
Warning: Cannot modify header information - headers already sent by (output started at /home/skillcyc/public_html/forums/admin/admin_users.php:1) in /home/skillcyc/public_html/forums/admin/page_header_admin.php on line 143

Warning: Cannot modify header information - headers already sent by (output started at /home/skillcyc/public_html/forums/admin/admin_users.php:1) in /home/skillcyc/public_html/forums/admin/page_header_admin.php on line 145

Warning: Cannot modify header information - headers already sent by (output started at /home/skillcyc/public_html/forums/admin/admin_users.php:1) in /home/skillcyc/public_html/forums/admin/page_header_admin.php on line 146


Please can you tell me where I have gone wrong?

Thanks

Alan

TerraFrost
Former Team Member
Posts: 5957
Joined: Sun Dec 26, 2004 3:40 am
Location: Austin, TX

Re: Log IP Address on Registration

Post by TerraFrost »

Can you post admin_users.php? Also, please use the code BBCode when posting it. Thanks!

jalaln
Registered User
Posts: 1076
Joined: Tue Jul 05, 2005 5:05 am

Re: Log IP Address on Registration

Post by jalaln »

Hi TerraFrost.

I did the conversation to phpBB3 locally. All IPs of members are not ported to phpBB3, but logging of IPs starts from new registered people on phpBB3. Is there any way to copy the members' IP addresses from phpBB2's database to phpBB3's?

Thanks.
No more spambots for phpBB2 and phpBB3.

TerraFrost
Former Team Member
Posts: 5957
Joined: Sun Dec 26, 2004 3:40 am
Location: Austin, TX

Re: Log IP Address on Registration

Post by TerraFrost »

jalaln wrote:Hi TerraFrost.

I did the conversation to phpBB3 locally. All IPs of members are not ported to phpBB3, but logging of IPs starts from new registered people on phpBB3. Is there any way to copy the members' IP addresses from phpBB2's database to phpBB3's?

Thanks.
Probably. I'll try to look into it and will post what I come up with. Can't promise any sort of immediacy, though. Might get back to you later today, might not.

jalaln
Registered User
Posts: 1076
Joined: Tue Jul 05, 2005 5:05 am

Re: Log IP Address on Registration

Post by jalaln »

TerraFrost wrote:Probably. I'll try to look into it and will post what I come up with. Can't promise any sort of immediacy, though. Might get back to you later today, might not.
Thank you. Hope you can make it! :)
No more spambots for phpBB2 and phpBB3.

Post Reply

Return to “[2.0.x] MOD Database Releases”