Here is the link
https://vborg.vbsupport.ru/showthread.php?t=229232
HTML Code:
fwrite($fp, vbdate($vbulletin->options['dateformat'] . ',' . $vbulletin->options['timeformat']) . ',' . $vbulletin->userinfo['userid'] . ',' . $vbulletin->db->escape_string($vbulletin->userinfo['username']) . ',' . IPADDRESS . "\r\n");
ANd in the above code what code i need to remove to log only ipaddress . becz i need to very urgently thanku.