Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #1  
Old 08-24-2002, 09:53 PM
Craznik Craznik is offline
 
Join Date: Aug 2002
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 08-25-2002, 11:21 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 08-26-2002, 12:26 AM
Craznik Craznik is offline
 
Join Date: Aug 2002
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 08-26-2002, 11:57 PM
Issvar Issvar is offline
 
Join Date: Mar 2002
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 )
Reply With Quote
  #5  
Old 08-27-2002, 04:45 AM
Craznik Craznik is offline
 
Join Date: Aug 2002
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 08-27-2002, 11:56 AM
Issvar Issvar is offline
 
Join Date: Mar 2002
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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";
Reply With Quote
  #7  
Old 08-28-2002, 04:02 AM
Craznik Craznik is offline
 
Join Date: Aug 2002
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ahh ok, now it works correctly. Thanks Issvar!!!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:11 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03917 seconds
  • Memory Usage 2,223KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete