+ Reply to Thread
Page 1 of 3 123 LastLast
Results 1 to 10 of 24

Thread: Guide to storing the user IP address.

  1. #1
    Master
    Join Date
    Apr 2012
    Location
    Germany
    Posts
    421

    Guide to storing the user IP address.

    Hello Juergen and all who need this feature,

    Because of this thread here i present today this "little" guide.

    Due to legal situations in some countries is the storing of User-IP addresses an important evidentiary.
    Missing evidentiary can be expensive for website operators.
    For example applies in Germany the "liability for interference".


    Storing the IP Address at the registration process

    The result you can see in the follow picture

    newip.jpg

    Now let us start.

    PART 1

    Login into the Admin Panel and go to Common -> Database
    Paste the follow SQL query

    PHP Code:
    Only registered members can view the code
    and press the button "Go".

    Finally paste the following SQL query to insert the phrase "User-IP" for table header (ext_userip). Language is english.

    PHP Code:
    Only registered members can view the code
    and press the button "Go".

    PART 2

    Open admin => tpl => controllers => accounts.tpl

    Find the follow code

    PHP Code:
    Only registered members can view the code
    and change as follow

    PHP Code:
    Only registered members can view the code
    Next find the follow code

    PHP Code:
    Only registered members can view the code
    and change as follow

    PHP Code:
    Only registered members can view the code
    Save and close the File.

    PART 3

    Open includes => classes => rlAccount.class.php

    Find the follow code

    PHP Code:
    Only registered members can view the code
    and change as follow

    PHP Code:
    Only registered members can view the code
    Save and close the File.

    PART 4

    Open admin => controllers => accounts.inc.php

    Find the follow code

    PHP Code:
    Only registered members can view the code
    and change as follow

    PHP Code:
    Only registered members can view the code
    Save and close the File.

    OK these were the parts to store the user ip during the registration process.
    Next part is "Storing the User-IP address when add comments"

    Best regards
    Steffen
    Last edited by Steffen Buschkemper; June 10, 2013 at 05:24 PM.

  2. #2
    Master
    Join Date
    Apr 2012
    Location
    Germany
    Posts
    421
    Storing the User-IP address when add comments

    Please note this feature will only work with installed listing comments plugin!

    The result you can see in the follow picture

    commentsip.png

    Login into the Admin Panel and go to Common -> Database
    Paste the follow SQL query

    PHP Code:
    Only registered members can view the code
    and press the button "Go".

    INFO The phrase for table header we do not need adding anymore, if the upper part "Storing the IP Address at the registration process" was made.

    PART 2

    Open plugins => comment => admin => comment.tpl

    Find the follow code

    PHP Code:
    Only registered members can view the code
    and change as follow

    PHP Code:
    Only registered members can view the code
    Next find the follow code

    PHP Code:
    Only registered members can view the code
    and change as follow

    PHP Code:
    Only registered members can view the code
    Save and close the File.

    PART 3

    Open plugins => comment => admin => comment.inc.php

    Find the follow code @ line 83

    PHP Code:
    Only registered members can view the code
    and change as follow

    PHP Code:
    Only registered members can view the code
    Save and close the File.

    PART 4

    Open plugins => comment => rlComment.class.php

    Find the follow code

    PHP Code:
    Only registered members can view the code
    and change as follow

    PHP Code:
    Only registered members can view the code
    Save and close the File.

    OK these were the parts to store the user ip during add a comment process.

    It went even to the listings. Hmm... I must check this out. :confused:

    Best regards
    Steffen
    Last edited by Steffen Buschkemper; June 10, 2013 at 05:49 AM.

  3. #3
    Senior Member
    Join Date
    Nov 2012
    Posts
    126
    Thanks, working perfect.

    It will be nice to add it also in E-mail remplate (A new account created at {site_name}) add a field with User IP with a link http://whatismyipaddress.com/ip/User_IP

    As that.

    A new account created at {site_name}.
    <b><u>Account details</u></b>
    First name: <b>{first_name}</b>,
    Last name: <b>{last_name}</b>,
    Username: <b>{username}</b>
    User IP: <b>{User_IP}</b> with url http://whatismyipaddress.com/ip/ to direct check it the IP location.
    Registration date: <b>{join_date}</b>
    Status: <b>{status}</b>,
    You can view the new account details at the link below:
    Last edited by Oslo; June 10, 2013 at 07:33 AM.

  4. #4
    Master
    Join Date
    Apr 2012
    Location
    Germany
    Posts
    421
    Hi Oslo,

    I think you mean the admin e-mail?
    That should not be a problem...

    Just a moment...

    Best regards
    Steffen
    Last edited by Steffen Buschkemper; June 10, 2013 at 08:11 AM.

  5. #5
    Senior Member
    Join Date
    Nov 2012
    Posts
    126
    Yes, I mean admin E-Mail

  6. #6
    Master
    Join Date
    Apr 2012
    Location
    Germany
    Posts
    421
    OK Oslo,



    Adding the User-IP to the admin email with the key "account_created_admin".

    INFO! Please note the follow feature will only work, if the upper part "Storing the IP Address at the registration process" was made!

    Part 1

    Open includes => classes => rlAccount.class.php

    Find follow code @ line ~ 294

    PHP Code:
    Only registered members can view the code
    and change as follow

    PHP Code:
    Only registered members can view the code
    Save and close the File.

    Part 2

    Now login into the Admin Panel and go to Common -> Email Templates
    Looking for an email template with the key "account_created_admin".
    Now you must edit this email template with the key "account_created_admin".

    Change from

    PHP Code:
    Only registered members can view the code
    to follow

    PHP Code:
    Only registered members can view the code
    Thats all.

    Best regards
    Steffen
    Last edited by Steffen Buschkemper; June 10, 2013 at 05:25 PM.

  7. #7
    Senior Member
    Join Date
    Nov 2012
    Posts
    126
    for my self shows IP, but if another create it, shows as like that 0.0.0.0

  8. #8
    It shows 0.0.0.0 when the IP not filled for users. In other words entries added before customization will show 0.0.0.0

  9. #9
    Master
    Join Date
    Apr 2012
    Location
    Germany
    Posts
    421
    Hello Mike
    Could I solve it in an other way?

    At the admin login the IP will also saved. :confused:

    //Steffen
    Last edited by Steffen Buschkemper; August 5, 2013 at 08:14 AM.

  10. #10
    I think it's not issue.. or maybe didn't understand something -- new registered members will have their ip stored in the table.

    Maybe in addition to the registration update users' ips each time they logging. In this case you will have last user ip in the table. And it will fill ips for old users after some time

+ Reply to Thread