vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=324877

Login IP Address Tracking
by Alice
04 Apr 2017 18:00

1 Attachment(s)
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:


    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

  • Plugin Active: Yes
3. Find
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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.

DCD.RB 12 Jul 2017 14:59

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

Alice 12 Jul 2017 16:24

Quote:

Originally Posted by DCD.RB (Post 2588364)
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. :)

Stingray27 12 Jul 2017 18:00

You should be very wary of doing that, you could end up with a very big string, and that would cause issues.

Alice 12 Jul 2017 20:15

That was my initial concern as well, but it is worth R&D'ing. :)

Alice 20 Jul 2018 03:35

Working on an update. :)


All times are GMT. The time now is 17:26.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.