Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
Login IP Address Tracking Details »»
Login IP Address Tracking
Version: 1.1.0, by Alice Alice is offline
Developer Last Online: Nov 2022 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 3.8.10 Rating:
Released: 04-03-2017 Last Update: Never Installs: 5
Uses Plugins
Translations  
No support by the author.

Description

This is my very first time releasing a vBulletin Modification. This modification involves every user account automatically having their current IP Address recorded after each successful login through a custom profile field. This will allow administrators to better track where the login attempts are coming from, especially if there is an account that has security issues (i.e. Someone claiming that there account was hacked, ect...).

This modification has been tested on vBulletin 3.8.0, 3.8.10, and 4.2.3

Main Features
  • No Template Modification is necessary.
  • No Modification is needed in the vBulletin Source Code.
  • Functions are controlled by a Hidden Profile Field and a Plugin.
Installation Instructions

1. Go to your AdminCP >>> User Profile Fields >>> Add New User Profile Field
  • Profile Field Type: Single-Line Text Box
  • Title: Login IP Address
  • Description: Your choice
  • Profile Field Category: Your Choice
  • Default Value: KEEP BLANK
  • Field Required: No
  • Private Field: Yes
  • Field Searchable on Members List: No
  • Show on Members List: No
  • Regular Expression: KEEP BLANK
Click save, and take note of the profile field ID that is assigned, you will need that later.

2. Go to your AdminCP >>> Plugins & Products >>> Add New Plugin
  • Product: vBulletin
  • Hook Location: global_start
  • Title: Login IP Address Tracking
  • Execution Order: 5
  • Plugin PHP Code:

    PHP Code:
    /*------------Insert Current IP Address for account authentication------------*/     
            
    if ($vbulletin->userinfo['joindate']< (TIMENOW 24 60 60)){ 
            
    // is it older than 24 hours?) 

            
    $vbulletin->db->query_write(
                UPDATE " 
    TABLE_PREFIX "userfield 
                SET field24 = '" 
    $vbulletin->db->escape_string(IPADDRESS) . "' 
                WHERE userid = '" 
    $vbulletin->userinfo['userid'] . "'"); 
            } 
            
    /*--------------------------------------------------------------------------------*/ 
  • Plugin Active: Yes
3. Find
PHP Code:
SET field24 '" . $vbulletin->db->escape_string(IPADDRESS) . "' 
Replace field24 with the field id that represents the profile field that you created in step 1, and then save your plugin.

Operational Checklist
  • Log out of your vBulletin Forum.
  • Login to your vBulletin Forum.
  • Go to your AdminCP.
  • Go to your profile.
If you see an IP Address recorded in the custom profile field that you created, then you have done everything correctly.

Release Notes

v1.1.0
  • Compatible with vBulletin 3.8.0 - 3.8.10
  • Removed All Modifications from the Source Code.
  • Modification is Controlled by Plugin Source
v1.0.0
  • Initial Release of Modification.

Download Now

File Type: zip catd-mod_loginip.zip.zip (4.0 KB, 56 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 07-12-2017, 12:59 PM
DCD.RB DCD.RB is offline
 
Join Date: Jan 2011
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,
Is there a way to change it so it adds all the Login IP addresses to that field, separated by a comma or each IP on their own line rather than constantly replacing it with the current login IP?

Thank you
Reply With Quote
  #3  
Old 07-12-2017, 02:24 PM
Alice Alice is offline
 
Join Date: Mar 2013
Location: Great Lakes Area
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DCD.RB View Post
Hi,
Is there a way to change it so it adds all the Login IP addresses to that field, separated by a comma or each IP on their own line rather than constantly replacing it with the current login IP?

Thank you
I can see if I can add it to the next version.
Reply With Quote
  #4  
Old 07-12-2017, 04:00 PM
Stingray27 Stingray27 is offline
 
Join Date: Jan 2006
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You should be very wary of doing that, you could end up with a very big string, and that would cause issues.
Reply With Quote
  #5  
Old 07-12-2017, 06:15 PM
Alice Alice is offline
 
Join Date: Mar 2013
Location: Great Lakes Area
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That was my initial concern as well, but it is worth R&D'ing.
Reply With Quote
  #6  
Old 07-20-2018, 01:35 AM
Alice Alice is offline
 
Join Date: Mar 2013
Location: Great Lakes Area
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Working on an update.
Reply With Quote
  #7  
Old 11-16-2023, 03:12 PM
I.G.O.T.A.'s Avatar
I.G.O.T.A. I.G.O.T.A. is offline
 
Join Date: Mar 2011
Location: USA
Posts: 262
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It is installed and working correctly.

I am waiting for any updates.

Thank you!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:20 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04363 seconds
  • Memory Usage 2,282KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (1)postbit_attachment
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete