UBB.Dev
Posted By: freeTV [6.1x] IP capture at registration - 11/15/2001 12:18 AM
#### FIND in ubb_registration.cgi ###########

&WriteFileAsString("$vars_config{MembersPath}/last_number.cgi", "$next_numbern");

######## ADD BELOW ###########

&AppendFileAsString("$vars_config{MembersPath}/ipfile.cgi", "$user_name||$ENV{'REMOTE_ADDR'}n");

########### DONE ###############################

As simple as that! If it doesn't work, you may have to create an empty file ubb/Members/ipfile.cgi and chmod to 666

[ 11-14-2001: Message edited by: freeTV ]
Posted By: ZoneX Re: [6.1x] IP capture at registration - 11/15/2001 12:45 AM
If I register a member through the control panel, using Jordo's hack, I presume it doesn't log their IP, is this correct? No problem, I'm just wondering. smile
Posted By: Henry8th Re: [6.1x] IP capture at registration - 11/15/2001 1:41 AM
GR8 it works Fine for Me 10000000%

also is it possable to show this in the members profile when we search for people in the CP members search

so instead of uploading the file each time from the ftp.. i could search say peter in the cp and the ip would be there in his profile ????

but very nice smile
Posted By: vir Re: [6.1x] IP capture at registration - 11/15/2001 6:54 AM
Quote
quote:
Why would you want to do that? It would just log ur ip or the ip of the mod registering the user...
Posted By: vir Re: [6.1x] IP capture at registration - 11/15/2001 7:36 AM
Quote
quote:

It would just log ur ip or the ip of the mod registering the user..
Posted By: ZoneX Re: [6.1x] IP capture at registration - 11/15/2001 9:52 AM
Yeah, I guess. shocked

Well, this hack works fine...does what it's meant to. Nice work, freeTV. smile
Posted By: gab1982 Re: [6.1x] IP capture at registration - 11/15/2001 9:53 PM
it doesn't work with ubb 6.05 frown
Posted By: freeTV Re: [6.1x] IP capture at registration - 11/15/2001 10:02 PM
Of course not! That's why it's posted in V6.1 Mods Forum. For V6.0x, use MasterMind's Mods
Posted By: gab1982 Re: [6.1x] IP capture at registration - 11/18/2001 2:07 AM
thanks m8
Posted By: Greg Hard Re: [6.1x] IP capture at registration - 11/18/2001 2:19 AM
*refrains from giggles*
Posted By: Greg Hard Re: [6.1x] IP capture at registration - 11/18/2001 2:19 AM
Nice job free!
Posted By: RandyM Re: [6.1x] IP capture at registration - 11/18/2001 5:03 PM
Thanks, I had installed the other one and it was working but it violated the file locking rules I believe. Now I'm compliant once again.
Posted By: RandyM Re: [6.1x] IP capture at registration - 11/18/2001 5:06 PM
Mastermind, why does your hacks page give a forbidden error?
Posted By: freeTV Re: [6.1x] IP capture at registration - 11/18/2001 6:05 PM
XPerT, Try:

chmod 777 ipfile.cgi
Posted By: XRaVeNX Re: [6.1x] IP capture at registration - 11/18/2001 6:45 PM
Works Great! Thx d00d.
Posted By: RandyM Re: [6.1x] IP capture at registration - 11/18/2001 6:47 PM
Quote
quote:
The hack works fine for me, I'm on IIS 5 anyways, what I meant was that the link in his sig to his hacks page gives me a forbidden error.
© UBB.Developers