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

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Statistic - Visit today show wrong
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

tinem
Junior Member

Denmark
209 Posts

Posted - 02 December 2005 :  06:28:55  Show Profile  Send tinem an ICQ Message
I use vers. 3.4.03 danish language

Today at 8.27 it showed 3 visit
Today at 10.09 it showed 7 visit
Today at 12.24 it showed 1 visit

And I have noticed some problems with this some other days too.

Where could the problem be?

[size=1]< Moved to Help: MOD Implementation by Shaggy />[/size]

This account was hacked by that very honest guy, Image. Better take care with your personal data, if you register to his forums or he will hack into your account here, as well.

Edited by - Shaggy on 02 December 2005 07:28:03

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 02 December 2005 :  06:34:06  Show Profile
That's not a feature of the base Snitz code. What mod are you using?


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

tinem
Junior Member

Denmark
209 Posts

Posted - 02 December 2005 :  07:03:18  Show Profile  Send tinem an ICQ Message
I can't remember all the MOD's that I'm using but I have found a file called "statistics.asp" with the code down here. Maybe you can find the problem from this?

quote:
<tr>
<td valign=top bgcolor="<% =strForumCellColor %>" colspan="<% if (strShowModerators = "1") or (mlev = 4 or mlev = 3) then Response.Write("6") else Response.Write("4")%>"><font face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>" color="<% =strForumLinkFontColor %>"></FONT>
<%
Response.Write " <font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """>Besøg i dag: <b>" & Application("VisitorsToday") & "</b> | Aktive Brugere: <b>" & Application("ActiveUsers") & "</b> |</font>" & vbCrLf
%>
<%
set my_Conn = Server.CreateObject("ADODB.Connection")
my_Conn.Open strConnString
strSql ="SELECT " & strTablePrefix & "TOTALS.U_COUNT "
strSql = strSql & " FROM " & strTablePrefix & "TOTALS "
set rs = my_Conn.execute(strSql)
TotalUsers = rs("U_COUNT")
Response.write " <font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """> Antal Medlemmer (i alt): <b>" & " "& TotalUsers & " " & ""& "</b></font><br>" & vbCrLf
%>

This account was hacked by that very honest guy, Image. Better take care with your personal data, if you register to his forums or he will hack into your account here, as well.
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 02 December 2005 :  07:28:42  Show Profile
Can't see straight enough to be looking at any code today, unfortunately


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

tinem
Junior Member

Denmark
209 Posts

Posted - 03 December 2005 :  06:06:46  Show Profile  Send tinem an ICQ Message
I "think" I maybe have found the problem because I discovered that on "Server Date/Time Configuration" I had choosed "Dec 31 2000 (US med)" instead of "31 Dec 2000 (UK med)" which I have in my other Snitz forums. Could this be the problem? I'm living in Denmark.:-)

This account was hacked by that very honest guy, Image. Better take care with your personal data, if you register to his forums or he will hack into your account here, as well.
Go to Top of Page

masterao
Senior Member

Sweden
1678 Posts

Posted - 03 December 2005 :  14:36:27  Show Profile  Visit masterao's Homepage
I think that the mod you are using could be Active Users Lite, but Im not sure.

In any case, your code uses an application variable to store the number of daily visits, and it resets each day. The downside is that unless you store the variable in the database or in a file, it will be reset whenever the webserver restarts or if you reload the application variables. Application variables aren't saved when that happens. Your date setting has nothing to do with this behaviour.

Jan
===========
FR Portal Forums | Active Users 4.0.20 Mod
Go to Top of Page

tinem
Junior Member

Denmark
209 Posts

Posted - 04 December 2005 :  04:36:42  Show Profile  Send tinem an ICQ Message
Thanks very much for your reply. I don't use Active Users Lite.

So this is not because of wrong code but as you say it can be "whenever the webserver restarts".

Is there a MOD to solve this problem and show the statistics the right way?

This account was hacked by that very honest guy, Image. Better take care with your personal data, if you register to his forums or he will hack into your account here, as well.
Go to Top of Page

masterao
Senior Member

Sweden
1678 Posts

Posted - 04 December 2005 :  14:03:49  Show Profile  Visit masterao's Homepage
Im not sure if anyone has made a mod for this. An easy way to handle this, if your host allows you to use the FileSystemObject, is to save the daily visits in a text-file. Another solution would be to save the daily visits in the database.

Jan
===========
FR Portal Forums | Active Users 4.0.20 Mod
Go to Top of Page

modifichicci
Average Member

Italy
787 Posts

Posted - 04 December 2005 :  15:18:28  Show Profile  Visit modifichicci's Homepage
Try this if it's what you are searching

http://www.snitzbitz.com/mods/details.asp?Version=All&mid=110

Ernia e Laparocele
Forum di Ernia e Laparocele
Acces - MySql Migration Tutorial
Adamantine forum
Go to Top of Page

masterao
Senior Member

Sweden
1678 Posts

Posted - 04 December 2005 :  17:53:21  Show Profile  Visit masterao's Homepage
I totally forgot about the Forum Counter mod . Thanks for the link, modifichicci. Im sure that tinem will find the mod interesting and possibly what she was looking for.

Jan
===========
FR Portal Forums | Active Users 4.0.20 Mod
Go to Top of Page
  Previous Topic Topic Next Topic  
 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.45 seconds. Powered By: Snitz Forums 2000 Version 3.4.07