Back to vBulletin 3.8 Add-ons

Login IP Address Tracking
Mod Version: 1.1.0, by Alice

vB Version: 3.8.10 Rating: (0 vote - 0 average) Installs: 6
Released: 04 Apr 2017 Last Update: Never Downloads: 48
Not Supported Uses Plugins Translations  

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

File Type: %1$s catd-mod_loginip.zip.zip (4.0 KB, 58 downloads)

Similar Mods

Administrative and Maintenance Tools Login Restriction - Restrict a user's login to a country or IP address. vBulletin 4.x Add-ons

vblts.ru supports vBulletin®, 2022-2024