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)
 Simple site stat counter mod - Version 1.1.1
 New Topic  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 18

TERM
New Member

82 Posts

Posted - 15 January 2003 :  18:54:02  Show Profile
ahh ok it worked this time.. Its weird too cause I kept all the same pages I changed the code in from last install and used them this time, and there was no error, even the path I specified for the .txt was correct this time and it was the same one I used last time as well. Well good fix anyways, makes it alot easier when the file not in path and path not found error would display.

Now since I want this private, I would not like it on the footer of the default page, is there possibly a way you can show me how to add it to the bottom of "admin_home.asp" cause the stats would be nice to have displayed as soon as I enter the admin section.. PLEASE=P
Go to Top of Page

TERM
New Member

82 Posts

Posted - 15 January 2003 :  18:56:28  Show Profile
nevermind, it was easier than i thought
Go to Top of Page

TERM
New Member

82 Posts

Posted - 15 January 2003 :  20:30:18  Show Profile
Does the graph only work when you use the DB? Cause I clicked on the graphs link and it said no entries in DB when there is already quite a few page views and visitors
Go to Top of Page

rgrund
Junior Member

Austria
206 Posts

Posted - 16 January 2003 :  02:49:22  Show Profile
Term,
no the graph should work with the txt option, could you send me the sitestat.txt file! I will test it on my site. Thanks!

Robert

Internet should be OPENSOURCEd!
Go to Top of Page

rgrund
Junior Member

Austria
206 Posts

Posted - 16 January 2003 :  02:57:31  Show Profile
archer_g,

thanks for the comment, even though I do not quit know why we should loop through the recordset. the sql statements only gets one recordset out as we sum up the stat's. There will never be two!

Could you also do me a favor! Can you send me the inc_sitestat.asp which you use. Currently the errors on the db version has completely vanished and your problem I do not understand. However, we could do instead of the loop routine a If routine

THIS IS AN EXAMPLE
if rs.eof then
YESTERDAY_Visit = 0
else
YESTERDAY_Visit = rs("YESTERDAY_Visit")
end IF

I will need to test this on my test forum.

Robert

Internet should be OPENSOURCEd!
Go to Top of Page

TERM
New Member

82 Posts

Posted - 16 January 2003 :  05:51:40  Show Profile
Y2002|M1|D1|0|0|0|0|0|0Y2002|M2|D1|0|0|0|0|0|0
Y2003|M1|D16|173|173|1|38|4|34

Thats my sitestat.txt file.

However im seeing some errors with the addition on the sitestat table.

It has 38 visitors yesterday and 4 today. Total month visitors = 38 which is correct since I just installed it yesterday. But Total visitors = 4. Shouldn't total visitors = 38 as well?

Pages Viewed Today #173

Pages Viewed Yesterday #1

Pages viewed this Months #173

Pages viewed this Year #

Total Pages viewed #173
Visitors Today #4

Visitors Yesterday #34

Visitors this Months #38

Visitors this Year #

Total Visitors #4
Go to Top of Page

rgrund
Junior Member

Austria
206 Posts

Posted - 16 January 2003 :  07:52:07  Show Profile
Hi Term,
The problem is this:
Y2002|M1|D1|0|0|0|0|0|0Y2002|M2|D1|0|0|0|0|0|0
Y2003|M1|D16|173|173|1|38|4|34

it should look like this:
Y2002|M1|D1|0|0|0|0|0|0
Y2002|M2|D1|0|0|0|0|0|0
Y2003|M1|D16|173|173|1|38|4|34

I will look into this why the data is put wrong into the file.

Robert

Internet should be OPENSOURCEd!
Go to Top of Page

TERM
New Member

82 Posts

Posted - 16 January 2003 :  18:28:02  Show Profile
I changed the .txt file by pressing enter on it, and it still works the same way. And still no graphs.
Go to Top of Page

rgrund
Junior Member

Austria
206 Posts

Posted - 17 January 2003 :  08:12:43  Show Profile
This is a fix for the storage option "TXT". To get each entry shown in a line:

1. Open the inc_sitestat.asp file
2. Goto Line 172 or look for

Line
171: If i = 0 then
172: content = lines(i)
173: ELseIf i = ubound(lines)-2 then
174: content = content & lines(i)
175: else
176: content = content & lines(i)
177: End if

3. Replace Line 172 with

content = lines(i) & vbNewLine

This will solve the problem of the TXT format.

I will update the ZIP file tonight, when I am at home.

Robert

Internet should be OPENSOURCEd!
Go to Top of Page

rgrund
Junior Member

Austria
206 Posts

Posted - 17 January 2003 :  11:48:48  Show Profile
Hi to All and to TERM,

I have made a further modification for the storage option "TXT"

the counters should be working now! Please download the Zip file and overwrite the inc_sitestat.asp.

I have also updated the main zip file in the first page as well.

Download:www.gcsk.com/snitz_mod/sitestat111.zip

Robert

Internet should be OPENSOURCEd!
Go to Top of Page

betheball
Starting Member

USA
41 Posts

Posted - 17 January 2003 :  11:49:42  Show Profile
Closer. It now displays correctly, but for me it shows all zeroes and doesn't count. The database version is working perfectly.

- Duane

"So I got that going for me, which is nice." - Carl Spackler
Go to Top of Page

rgrund
Junior Member

Austria
206 Posts

Posted - 17 January 2003 :  12:03:39  Show Profile
betheball,
all the counters are zero? Can tell me the test site?
boy I really hate working with ASCII files....

Robert

Internet should be OPENSOURCEd!
Go to Top of Page

rgrund
Junior Member

Austria
206 Posts

Posted - 17 January 2003 :  13:25:05  Show Profile
betheball,
I thought about that and the counters have to be zero! If you are logged in as an admin, the counters will not be incremented until the session cookie is gone. try to close the browser compeletly and open it again. I think that works. or test it with a different browser.

robert

Internet should be OPENSOURCEd!
Go to Top of Page

betheball
Starting Member

USA
41 Posts

Posted - 21 January 2003 :  08:22:38  Show Profile
Wow! You are correct. Just got back to work and sure enough it works perfectly. Thanks for all your assistance. It makes it nice when authors really support their Mods. One last question. Now that I have this working with both the text file and the DB, why would I prefer one or the other? In other words, what are the pros and cons of each?

- Duane

"So I got that going for me, which is nice." - Carl Spackler
Go to Top of Page

Chris Yew
Junior Member

134 Posts

Posted - 21 January 2003 :  09:06:49  Show Profile
Hi Robert,
I'm using snitz ver3.4.03 and I've installed your site stat mod. ver.1.1.1

When I select Snitz Database as the Counter Storage Option, it shows;
"There Was A Problem With Your Details

The Filename has to be sitestat.txt"

I've put the sitestat.txt file in the directory as the snitz database.

When I entered the url ;
http://www.bettaclub.org.sg/forum/sitestat.asp

it shows;

"Microsoft VBScript runtime error '800a0005'

Invalid procedure call or argument

/forum/inc_sitestat.asp, line 367"

And the line 367 at inc_sitestat.asp is
set file = fso.OpenTextFile(strCounterTxtPath,1,true)


My forum site is at;
http://www.bettaclub.org.sg/forum/

Thank you.
Chris Yew



Edited by - Chris Yew on 21 January 2003 09:38:02
Go to Top of Page
Page: of 18 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.18 seconds. Powered By: Snitz Forums 2000 Version 3.4.07