The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
I found some code on the forums here to log IP addresses, which works fine, but I'd like to have the users' name logged beside the IP address as well. Can I add something to the code that will do this, or is there any other way to accomplish this?
Here's the code that logs someone's IP when they visit whatever page I add the code to: Code:
$ip=$_SERVER['REMOTE_ADDR']; $log=("iplog.txt"); $logip=fopen($log,"a"); fputs($logip,date('m-d-y@H:i:sT')." - ".$ip."\n"); fclose($logip);
|
|
#2
|
|||
|
|||
|
IP logging of user IP's is built into VB, check your admincp --> vbulletin options.
edit user --> drop menu (search users IP's, but IP logging has to be on.) |
|
#3
|
|||
|
|||
|
Quote:
HTH |
|
#4
|
|||
|
|||
|
Quote:
Quote:
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|