Author |
Topic |
Aaron S.
Average Member
USA
985 Posts |
Posted - 21 September 2002 : 18:15:21
|
My new forum has Active Users on it, and it is fascinating watching visitors go from page to page (maybe I need more hobbies).
Anyway, has anyone written any code that stores some of this information. I think traffic behavior is extremely important, and it would be nice to be able to turn on "full tracking" and it logs every page a member visits during their session.
I would also like to see a LOGIN table that tracks all members that have hit the forums during a given period (so you can see how many visited during a certain day).
BTW: I realize web logs may track some of this, but some folks don't have access to them, or the time to sift thru them.
Let me know if there are any MODs for this... if not, I'll play around with it (AFTER Avatar Plus, becuase I feel a mob descending down on my house if I don't finish it soon).
--Aaron
|
DOWNLOAD GREAT NEW MODS HERE |
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
|
MaD2ko0l
Senior Member
United Kingdom
1053 Posts |
Posted - 21 September 2002 : 18:58:29
|
hey i had a wicked user log mod it would lok the number they were time/date where they went and who there were oh and there ip...u had to installed the first page of the au 3.5 code and then add a few lines to inc_top and that was it...if u r intrestead i can try to make it work in 3.4+
MaD2ko0l |
© 1999-2010 MaD2ko0l |
|
|
Aaron S.
Average Member
USA
985 Posts |
Posted - 21 September 2002 : 19:02:34
|
That would be great.
This information is critical (IMHO) to webmasters, and I am about to make a major push to potential sponsors, so the more user behavior data I have the better.
--Aaron |
DOWNLOAD GREAT NEW MODS HERE |
|
|
MaD2ko0l
Senior Member
United Kingdom
1053 Posts |
Posted - 21 September 2002 : 19:08:52
|
ok then i will get all the file sorted out in lets say 3/4 days ok?
MaD2ko0l |
© 1999-2010 MaD2ko0l |
|
|
Aaron S.
Average Member
USA
985 Posts |
|
CarKnee
Junior Member
USA
297 Posts |
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 21 September 2002 : 23:36:26
|
quote: Originally posted by ruirib
I'm pretty certain GauravBhabu has a mod to do this. Visit his site (http://www.forumsquare.com) and have a look.
you are right and it was a really nice mod that was going through stages. the last portion he showed to us was awesome but never got released.
so GauravBhabu, care to tell us if you're up to making this available? |
|
|
|
mortioli
Average Member
United Kingdom
898 Posts |
Posted - 22 September 2002 : 14:42:51
|
I found this a while back, don't know who put it on...
Just place it at the bottom of inc_footer.asp, and change the red part to suit where you want the log file to be created/used...
<%strOnLineCheckInTime = DateToStr(strForumTimeAdjust)
strOnlineUserIP = Request.ServerVariables("REMOTE_ADDR")
strScriptName = Request.servervariables("script_name")
if strDBNTUserName = "" then
strOnlineUser = "Guest"
else
strOnlineUser = strDBNTUserName
end if
dim iplg, logFile8
set iplg=server.createObject("scripting.FileSystemObject")
set logFile8=iplg.openTextFile(server.mappath("/logs/forum.txt"),8)
logFile8.write strOnlineCheckInTime & Chr(9) & strOnlineUserIP & CHR(9) & strScriptName & CHR(9) & strOnlineUser & vbCrLf
logFile8.close
set logFile8=nothing
set iplg=nothing%>
|
|
|
vweyes
New Member
74 Posts |
|
mortioli
Average Member
United Kingdom
898 Posts |
Posted - 19 October 2002 : 05:33:53
|
Just coming back to ask a question, I saw that I made a mistake, it should be in inc_top.asp...sorry.
Anyway, this is what the output looks like:
20021019100832 ***.***.***.*** /snitz/iplog.asp MortiOli
But is there anyway to change the date/time to this format:
2002/10/19 10:08.32
Or even better (for UK ):
19/10/2002 10:08.32
?
Cheers! |
|
|
mortioli
Average Member
United Kingdom
898 Posts |
Posted - 19 October 2002 : 05:39:09
|
Just thinking about it, if I made a new function, and change DateToStr to whatever I called it, would it work?
Eg.
function IPLogDate(dtDateTime)
if not isDate(strForumTimeAdjust) then
strForumTimeAdjust = strToDate(strForumTimeAdjust)
end if
DateToStr = doublenum(Day(dtdateTime)) & doublenum(Month(dtdateTime)) & year(dtDateTime) & doublenum(Hour(dtdateTime)) & doublenum(Minute(dtdateTime)) & doublenum(Second(dtdateTime)) & ""
end function
But how would I put in /, : and . ? |
|
|
GauravBhabu
Advanced Member
4288 Posts |
Posted - 19 October 2002 : 06:55:25
|
quote: Originally posted by mortioli
... But is there anyway to change the date/time to this format:
2002/10/19 10:08.32 Or even better (for UK ): 19/10/2002 10:08.32 Cheers!
logFile8.write chkDate(strOnlineCheckInTime, "", true) & Chr(9) & strOnlineUserIP & CHR(9) & strScriptName & CHR(9) & strOnlineUser & vbCrLf
|
|
|
laser
Advanced Member
Australia
3859 Posts |
Posted - 19 October 2002 : 07:46:58
|
quote: Originally posted by mortioli
But is there anyway to change the date/time to this format:
2002/10/19 10:08.32
Or even better (for UK ):
19/10/2002 10:08.32
You got it yet ?? ... I'd just use the MID function (I think that's what it is in ASP). |
|
|
laser
Advanced Member
Australia
3859 Posts |
Posted - 19 October 2002 : 08:10:32
|
You've got two ways ... to change the function you have presently, you simply do :
DateToStr = doublenum(Day(dtdateTime)) & "/" & doublenum(Month(dtdateTime)) & "/" & year(dtDateTime) & doublenum(Hour(dtdateTime)) & ":" & doublenum(Minute(dtdateTime)) & ":" & doublenum(Second(dtdateTime)) & ""
Or you could change the original code supplied from this :
logFile8.write strOnlineCheckInTime & Chr(9) & strOnlineUserIP & CHR(9) & strScriptName & CHR(9) & strOnlineUser & vbCrLf
to this ...
logFile8.write Mid(strOnlineCheckInTime, 7, 2) & "/" & Mid(strOnlineCheckInTime, 5, 2) & "/" & Mid(strOnlineCheckInTime, 1, 4) & " " & Mid(strOnlineCheckInTime,9, 2) & ":" & Mid(strOnlineCheckInTime,11, 2) & ":" & Mid(strOnlineCheckInTime,13, 2) & Chr(9) & strOnlineUserIP & CHR(9) & strScriptName & CHR(9) & strOnlineUser & vbCrLf
Hope that helps |
|
|
GauravBhabu
Advanced Member
4288 Posts |
Posted - 19 October 2002 : 08:13:27
|
Why not use the chkDate function |
|
|
Topic |
|