vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   I need to see the IPs of people who log-in (https://vborg.vbsupport.ru/showthread.php?t=42708)

Craznik 08-24-2002 08:53 PM

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.

Logician 08-25-2002 10:21 AM

Quote:

Originally posted by Craznik
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.

This can help :)

Craznik 08-25-2002 11:26 PM

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. :D

Issvar 08-26-2002 10:57 PM

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 :))

Craznik 08-27-2002 03:45 AM

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? :p Thanks

Edit: Also it seems the date is whatever todays date is and not the date the log was made.

Issvar 08-27-2002 10:56 AM

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";

Craznik 08-28-2002 03:02 AM

Ahh ok, now it works correctly. Thanks Issvar!!!


All times are GMT. The time now is 03:04 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02096 seconds
  • Memory Usage 1,730KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete