Page 4 of 71

Posted: Tue Jul 19, 2005 7:03 pm
by halochat
I'm having an issue with new members' IP addresses not being recorded... everybody's IP address is 0.0.0.0 (before, obviously, and after the installation of this MOD).

I have quite a few mods installed - it would probably be best to give you ftp access... but is there any file I can post for you to see that you may be able to check?

Thanks in advance!

Posted: Tue Jul 19, 2005 7:09 pm
by TerraFrost
I think it'd be easiest if you could tell me which MODifications you have installed (well, aside from this one ;)). That way, I can test for incompatabilities, myself.

Posted: Wed Jul 20, 2005 6:09 am
by halochat
Unfortunately, it would take far too much time for you to install all of the MODs I have installed (have easily put 12-24 hours, just on modding, into this forum)...

I explained this in an IRC channel to someone... I may have missed a couple...
Jul 18 00:37:43 [HC]D-Man cash mod
Jul 18 00:37:48 [HC]D-Man store (cash mod addon)
Jul 18 00:37:50 [HC]D-Man lotto (cash mod addon)
Jul 18 00:37:59 [HC]D-Man user shops (cash mod addon)
Jul 18 00:38:45 [HC]D-Man postcount required to view forums
Jul 18 00:38:56 [HC]D-Man lock posts after x amount of inactive days
Jul 18 00:39:02 [HC]D-Man remove user right to sig and edit
Jul 18 00:39:07 [HC]D-Man no admin sig limit
Jul 18 00:39:14 [HC]D-Man close topics with -close-
Jul 18 00:39:24 [HC]D-Man disable post count
Jul 18 00:39:30 [HC]D-Man log moderator actions
Jul 18 00:39:35 [HC]D-Man disable post count on certain forums
Jul 18 00:39:45 [HC]D-Man spell check
Jul 18 00:39:51 [HC]D-Man report post
Jul 18 00:39:53 [HC]D-Man quick reply
Jul 18 00:39:55 [HC]D-Man post icons
Jul 18 00:39:59 [HC]D-Man minimum characters
Jul 18 00:40:02 [HC]D-Man double post stop
Jul 18 00:40:05 [HC]D-Man image width limit
Jul 18 00:40:14 [HC]D-Man default avatar
Jul 18 00:40:18 [HC]D-Man guests don't see sigs
Jul 18 00:40:30 [HC]D-Man when anonymous users try to view member info - they have to login
Jul 18 00:40:35 [HC]D-Man no proxies
Jul 18 00:40:38 [HC]D-Man log IP on register
Jul 18 00:40:42 [HC]D-Man thread rating
Jul 18 00:40:47 [HC]D-Man signature control
Jul 18 00:40:58 [HC]D-Man # of new posts since last visit


There are a couple more since then... we (on our own) changed the occupation value to Gamertag, and included it in Viewtopic, autogroup mod, intellicensor, jail mod (probation), we tried freeze post count - but that didn't cooperate well... Again, I may have missed a few on the list.

I apologize for taking so long to get back to you - it completely slipped my mind... I promise to be more active in working with you...

So, basically - you'd have an easier time having us post something, or you going in hands-on, then replicating our work...

Edit: Just saw you replied in 6 minutes - if only every mod author could do that - I feel so embarassed I forgot about this - I'm usually the quick finger... wow. I apologize. I will continue working with you on this tomorrow...

Minor error in mod

Posted: Wed Jul 20, 2005 2:59 pm
by Ms Givings
I've just found a minor error in this mod after re-applying it after applying the 2.0.17 update:

##############################################################
## MOD Title: Log IP Address on Registration
## MOD Author: TerraFrost < N/A > (Jim Wigginton) http://www.frostjedi.com/phpbb
## MOD Description: Logs the IP address of users when they register.
## MOD Version: 1.0.0

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/admin/user_edit_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<tr>
<td class="catsides" colspan="2">&nbsp;</td>
</tr>
<tr>
<th class="thSides" colspan="2">{L_PROFILE_INFO}</th>
#
#-----[ WAS BEFORE, ADD ]-----------------------------------
#
<tr>
<td class="row1"><span class="gen">{L_REGIP}: </span></td>
<td class="row2"><span class="gen">{USER_REGIP}</span></td>
</td>
</tr>

#
#-----[ SHOULD BE BEFORE, ADD ]-----------------------------------
#
<tr>
<td class="row1"><span class="gen">{L_REGIP}: </span></td>
<td class="row2"><span class="gen">{USER_REGIP}</span></td>
</tr>

superfluous </td> causes the row to be repeated in the ACP.

Posted: Wed Jul 20, 2005 4:13 pm
by TerraFrost
(have easily put 12-24 hours, just on modding, into this forum)

That's why you should use EasyMOD to install MODs ;)

Anyway, I don't see any MOD that should cause an incompatability. Would you mind posting the contents of usercp_register.php?

Also, nice find, Ms Givings! :)

Posted: Wed Jul 20, 2005 5:32 pm
by halochat
We're using a non-SubSilver board, and a lot of older mods (non EMC)...

Here's usercp_register.php.

Thanks!

EDIT: My buddy found it - placed user_regip AFTER user_icq, instead of before... Fixed it and now it works!

Posted: Wed Jul 20, 2005 5:40 pm
by halochat
Crap - it's not letting me edit that last post (phpBB.com's getting slammed)

http://www.jumptactics.net/usercp_register.txt

EDIT: My buddy found it - placed user_regip AFTER user_icq, instead of before... Fixed it and now it works!

Posted: Thu Jul 21, 2005 5:10 pm
by TerraFrost
I was gonna post a possible fix, but given what you just said, I guess it wouldn't have actually fixed anything, heh.

Glad you figured it out :)

Posted: Wed Jul 27, 2005 11:01 pm
by Froggo
Hi!

This may sound verry stupid.
But i want to install this mod,
and i dont know what/where to do this:

Code: Select all

# 
#-----[ SQL ]------------------------------------------- 
# 
ALTER TABLE phpbb_users ADD user_regip CHAR(8) NOT NULL DEFAULT '0'; 
#
:oops: any help?

ty in advance

Posted: Thu Jul 28, 2005 1:01 am
by TerraFrost
Installing with EasyMOD would have resulted in the SQL automaticallly being parsed.

Since I guess you didn't, plugging the SQL into this and then running the resultant file should work, too:

http://www.phpbbhacks.com/forums/db_generator.php

Posted: Thu Jul 28, 2005 8:37 am
by Froggo
ty verry much

following mod will update user_regip if zero

Posted: Sat Jul 30, 2005 10:36 pm
by nikosama
this is not an approved mod. mod is submitted though

##############################################################
## MOD Title: RecordIP if Zero mod by niko
## MOD Author: niko < N/A > niko@pchat.mine.nu
## MOD Description: If user_regip = null then update it at login
## MOD Version: 1.0.0
##
##
## Installation Level: Easy
## Installation Time: 2 Minutes
##
## Files To Edit: 1
## login.php
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
## This will update user_regip on accounts that are null e.g 0.0.0.0
## at log in. You may wish to optionally change your sites cookie name
## so users will have to log-in the next time they connect to your site
##
## MOD Requires prior installation of TerraFrost's RegIP MOD
## MOD Author: TerraFrost < N/A > (Jim Wigginton) http://www.frostjedi.com/phpbb
## MOD Description: Logs the IP address of users when they register.
## MOD Version: 1.0.0a
## The latest version of this mod can be found here:
## http://www.frostjedi.com/terra/scripts/phpbb/reg_ip.zip
##
## For support / comments / whatever, visit here:
## http://www.frostjedi.com/phpbb/viewforum.php?f=33
##
##############################################################
## MOD History:
##
## 2005-07-30 - Version 1.0.0 - initial release
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#
#-----[ OPEN ]------------------------------------------
#
login.php
#
#-----[ FIND ]------------------------------------------
# this is only a partial match
#
$sql = "SELECT user_id,
#
#-----[ IN-LINE FIND ]---------------------------------
#
user_id,
#
#-----[ IN-LINE AFTER, ADD ]---------------------------
#
user_regip,
#
#-----[ FIND ]------------------------------------------
#
$session_id = session_begin($row['user_id'], $user_ip, PAGE_INDEX, FALSE,

$autologin, $admin);
#
#-----[ AFTER, ADD ]-----------------------------------
#
// Mod:RecordIPifZero mod by niko
if ( ($row['user_regip']) == '0' )
{
// non zero user id should never happen
if ( $row['user_id'] )
{
$sql = "UPDATE " . USERS_TABLE . " SET user_regip = '$user_ip' WHERE user_id = '" .

$row['user_id'] . "'";
if ( !$db->sql_query($sql) )
{
message_die(CRITICAL_ERROR, "RecordIPifZero mod: Error during update of user_regip",

"", __LINE__, __FILE__);
}
}
}
// end RecordIPifZero mod by niko
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------
#
# EoM

Posted: Wed Aug 03, 2005 12:48 pm
by MaDMaLKaV
I'm trying to reapply it after upgrading to 2.0.17, but easyMOD tell me there is no mods pending of being installed :?

I just reinstalled the signature control, so I dunno what is happening, but easyMOD seems to work ok.

Posted: Wed Aug 03, 2005 1:08 pm
by TerraFrost
You shouldn't even need to reinstall this MOD after upgrading to 2.0.17. As for why you wouldn't be able to install it with EasyMOD... well, that's the way EasyMOD works...

Posted: Wed Aug 03, 2005 3:46 pm
by MaDMaLKaV
Well, I upgraded to 2.0.17 cuz I lost all the files, but not hte DB :wink:

Will look what is the problem with easyMOD then, thanks for the tip.