The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
I need to see the IPs of people who log-in
What I need is a way to log IPs of people when they access my boards. It would be great to be able to set it to user groups as well, instead of having to log everyones IP. I have some ultra secret sections of my site that few have access to but someone is giving their account info out to others. I need to be able to know who this is but they never post anything so I get no IPs. This is getting really frustrating for everyone.
The board already keeps a log on the last time someone logged in. It just doesnt list an IP address. And it doesnt let me access the info older than 24 hours. I need this IP address for security. To make sure people are not sharing their accounts with others.At the moment I can only see the IP of people who post and if I manually look, register. I just recently bought vboards and it isnt as secure as I thought it would be. Much less so to be honest and I am disappointed. I do have hope however since I found this site. I am glad to see all the cool modifications available. The bottom line is I am in some need of security, no matter how large the log files become. Space to store info isnt a problem, the lack of info is. Of coarse with a file that would keep growing larger and larger as this one would, I would need search tools and pruning tools in order to manage it. It would be cool also if I could log, in public, the last time someone viewed a thread. Something that would show anyone who looks at a thread, kinda like the Users Currently Online feature except this would show, within each thread, the last time each user viewed the thread. I would like to set up usergroups who could see the info as well. From guests who couldnt see anything to members who could see names and times, to admins who could see names, times and IP's. Many thanks to whoever will help me with this. Would this be hard to do? As I said, large files wouldnt be a problem. |
#2
|
||||
|
||||
Quote:
|
#3
|
|||
|
|||
Cool Logician... This actually does almost everything I needed. I installed the hack and its great. I just need to modify this a couple of ways. Dunno if you can help with it or not but figured I would post here and ask.
I need a date/time added to the log. This I would assume would be really easy to do but I am clueless as to how I would do it. I tried doing it and got errors like crazy. So I changed it back. Also, and this may sound confusing, I need to log these IP's for each viewer in the same place and same way an IP is logged when someone makes a post. On my forum members have been known to give non-members their username and password. I am using this hack to try and stop this. It would make life much easier for me if when I went into the admin CP and used the "find other users with this IP" feature, it would be able to see the IPs logged from people who only view the boards as well as post on it. Anyway. Thanks a ton for the link. It's great. |
#4
|
|||
|
|||
To view the time you will need to do edit threadwhois.php:
Find: case "threadname": $order = "threadname ASC"; break; And add after that: case "timestamp": $order = "timestamp ASC"; break; Find: SELECT threadid,threadname,username,ip And replace that with: SELECT threadid,threadname,username,ip,timestamp Find: echo "<tr class='tblhead'> And add after that: <td><b><a href='threadwhois.php?s=$session[sessionhash]&action=view&script=$script&userid=$userid&perpage =$perpage&orderby=timestamp&page=$page' title='order results by timestamp'><span class='tblhead'>Timestamp</span></a></b></td> Find: echo "\n<center><tr>\n"; And add after that: echo "\t<td><font color='white'>".date("d/m/y H:i",$log[timestamp]."</font></td>\n"; And perhaps, but I'm not sure about this, find: colspan='7' And replace it with: colspan='8' Only do this last one if the output isn't aligned nicely anymore on screen. I don't have this hack installed so I couldn't test this. To get IPs for a specific user, just click on the word Username at the top and it will sort by user, then just browse until you are at the right user. (In other words, I couldn't be bothered to make a special search for just a single user ) |
#5
|
|||
|
|||
Thanks for the help. Had to make an adjustment in the last echo string.
You said to add this echo "\t<td><font color='white'>".date("d/m/y H:i",$log[timestamp]."</font></td>\n"; it needed to be this. echo "\t<td><font color='white'>".date("d/m/y) H:i",$log[timestamp]."</font></td>\n"; You just left off a coma... But, I still have a problem. This is what timestamp looks like in the log. Timestamp 08/27/02 00:351030330088 I did change the date to m/d/y but as you can see the time is way screwed up. Can I get it to display the time in something ledgible? Thanks Edit: Also it seems the date is whatever todays date is and not the date the log was made. |
#6
|
|||
|
|||
Ah, sorry, I did forget a closing bracket in that line. However, you put it back on the wrong place, it should be:
echo "\t<td><font color='white'>".date("d/m/y H:i",$log[timestamp])."</font></td>\n"; |
#7
|
|||
|
|||
Ahh ok, now it works correctly. Thanks Issvar!!!
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|