Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 User Log
 New Topic  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 5

Kong
Junior Member

100 Posts

Posted - 07 February 2002 :  20:36:17  Show Profile
quote:
Okay use this, then



I hope you didn't think I was being sarcastic or anything.

I like it.

Right now it's doing exactly what I want it to do. I was just making that post mainly to let people know that it works but add the str and what to expect to see.

_________________________
Come on by and visit Deth Incarnate.
Growing slowly, but growing none the less.
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 08 February 2002 :  00:06:26  Show Profile
quote:
I hope you didn't think I was being sarcastic or anything.


No not at all. Thanks you pointed out the mistake/error.



www.forumSquare.com - GauravBhabu - It is difficult to IMPROVE on Perfection, There is no harm in Keep Trying.
Go to Top of Page

Kong
Junior Member

100 Posts

Posted - 08 February 2002 :  18:10:45  Show Profile
I'm curious.

Would there be a way to have the strOnlineCheckInTime displayed similar to this? 02/08/2002 6:06:45

_________________________
Come on by and visit Deth Incarnate.
Growing slowly, but growing none the less.
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 08 February 2002 :  19:13:46  Show Profile
here


logFile8.write ChkDate(strOnlineCheckInTime) & " " & ChkTime(strOnlineCheckInTime) & Chr(9) & strOnlineUserIP & CHR(9) & strScriptName & "?" & Request.querystring & CHR(9) & strOnlineUser & vbCrLf



www.forumSquare.com - GauravBhabu - It is difficult to IMPROVE on Perfection, There is no harm in Keep Trying.
Go to Top of Page

Kong
Junior Member

100 Posts

Posted - 08 February 2002 :  22:13:35  Show Profile
Excellent, thanks.

In case you're curious what I've been doing with it you can see it here.

_________________________
Come on by and visit Deth Incarnate.
Growing slowly, but growing none the less.

Edited by - Kong on 08 February 2002 22:14:18
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 08 February 2002 :  22:34:03  Show Profile
That is a good idea.

www.forumSquare.com - GauravBhabu - It is difficult to IMPROVE on Perfection, There is no harm in Keep Trying.
Go to Top of Page

SimonT
Junior Member

United Kingdom
202 Posts

Posted - 11 February 2002 :  11:02:12  Show Profile
quote:

Excellent, thanks.

In case you're curious what I've been doing with it you can see it here.




but what happens what this file gets to be over a 1mb it will take ages to display and also will your host not allow you to have a file that is that big some hosts do not allow you to have files over 1mb ??
any way to do get this to write to a new file each week or day ?
and to remove the old one ?
Go to Top of Page

Joshuancsu
Starting Member

Bangladesh
11 Posts

Posted - 11 February 2002 :  13:59:51  Show Profile
Thanks a lot for this great feature. This is something that I (an ASP n00b) have been trying to figure out how to do. You seemed to have done it perfectly!! It even works without a hitch on Brinkster.

Thanks again.

Go to Top of Page

fpgal
New Member

93 Posts

Posted - 15 February 2002 :  23:21:37  Show Profile

GauravBhabu, this is an excellent script and thank you for sharing it.

Kong, I peek at that log file of yours and I really like it. Would you be willing to share the code?

fpgal

Go to Top of Page

Kong
Junior Member

100 Posts

Posted - 17 February 2002 :  05:11:31  Show Profile
quote:

but what happens what this file gets to be over a 1mb it will take ages to display


I've been cleaning the log from time to time so that it doesn't get so big.

quote:

Kong, I peek at that log file of yours and I really like it. Would you be willing to share the code?



Well the code for making the log is basically all his.

I did little things to it to create the tables and have it displayed on the LOG.ASP the way I want.

This is what I have in my INC_ACTIVEUSERS.ASP...


dim iplg, logFile8
set iplg=server.createObject("scripting.FileSystemObject")
set logFile8=iplg.openTextFile(server.mappath("/******************/IPLOG.txt"),8)
logFile8.write "<table><tr><td width=200><font size=-1>" & ChkDate(strOnlineCheckInTime) & " " & ChkTime(strOnlineCheckInTime) & "</font></td><td width=130><font size=-1>" & strOnlineUserIP & "</font></td><td width=160><font size=-1>" & strOnlineUser & "</font></td><td width=500><font size=-1>" & strOnlineLocation & "</font></td></tr></table>" & vbCrLf
logFile8.close
set logFile8=nothing
set iplg=nothing


The LOG.ASP file, you can download it by Right-Clicking and Save As here.

The only problem with the way I have it set up is, all the links. If you click on them they don't work because it is missing the directory forums. However, if you were able to put the LOG.ASP into the Forums directory it would work but I can't get it to read the IPLOG.TXT file in the lower directory for some reason.

Does what I just said make sense? I hope so, it makes sense to me.

Anyway, there you have it. The coding to make the Log is by GauravBhabu, give him the credit. All I did was set it up for me.

_________________________
Come on by and visit Deth Incarnate.
Growing slowly, but growing none the less.

Edited by - Kong on 17 February 2002 05:20:06
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 17 February 2002 :  05:55:29  Show Profile
I am enhancing the Mod UserLog for many features. Look here

http://forum.snitz.com/forum/topic.asp?TOPIC_ID=23041


The new Enhanced Mod will have several features

1. View By date (done)
2. Auto Refresh (done)
3. Auto create new file at specified interval (done)
4. IP Address View for Admins/Moderators only (done)
5. Links to Visitor Profile (almost done...)
6. Links to Forum Pages (almost done...)


www.forumSquare.com - GauravBhabu - It is difficult to IMPROVE on Perfection, There is no harm in Keep Trying.

Edited by - GauravBhabu on 17 February 2002 06:01:33
Go to Top of Page

xMANIGHTx
Junior Member

Italy
191 Posts

Posted - 17 February 2002 :  06:15:36  Show Profile  Visit xMANIGHTx's Homepage
Why don't put logging in the DB instead of text files?
This way it's easier to do searches. If you have big sites (say this one ) the log file would explode in a week. Letting the user set an interval it's a good idea to preventi this. What would be the cons putting it in the db? I did both solutions in my intranet. The text solution had logs dived by category and date(say: navigating, reading, replying, operative) "CatName-MonthYear.log". Then a page would show the last x lines for each category. And above you colud select Category/Month/Year to view them in detail, not just x lines.
This is still on an Intranet of almost 200 users with 15/16 simultaneous access. I had the feeling that something was lost in the logs. Maybe if the system is trying to write to text file simoultanously by two or more users, some info get lost.
Lately I implemented the DB version (MS SQL Server) and it works pretty fine. SQL Server doesn't care much about hundred thousand records. Maybe MS Access would cause some probz... and in this case the txt option could be the best. What do you think GauravBhabu?

Distractly yours... manight@audiopro.it
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 17 February 2002 :  06:43:28  Show Profile
I don't think there is a real need to store the info in DB. I have my server set automatically create log files and it writes a file for every day. It records all activities on the server for all the websites. You can record several types of information and this is very good for monitoring the malicious activities as well.

This Mod does the same thing but is limited to site files. It can create a file for every month/week/day/hour etc... depending on the choice.

www.forumSquare.com - GauravBhabu - It is difficult to IMPROVE on Perfection, There is no harm in Keep Trying.
Go to Top of Page

xMANIGHTx
Junior Member

Italy
191 Posts

Posted - 17 February 2002 :  08:56:07  Show Profile  Visit xMANIGHTx's Homepage
Are you sure that multiply users accesing the text file at the same time are logged this way?
Having on the DB would improve searching and keeping track of (you could do statistics on it as well)... but maybe isn't that the case.

Distractly yours... manight@audiopro.it
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 17 February 2002 :  09:34:50  Show Profile
So, you are suggesting to make it a Site and User Log Statstics Mod

www.forumSquare.com - GauravBhabu - It is difficult to IMPROVE on Perfection, There is no harm in Keep Trying.
Go to Top of Page
Page: of 5 Previous Topic Topic Next Topic  
Previous Page | Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.17 seconds. Powered By: Snitz Forums 2000 Version 3.4.07