Author |
Topic  |
|
tinem
Junior Member
 
Denmark
209 Posts |
Posted - 02 December 2005 : 06:28:55
|
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
|
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.” |
 |
|
tinem
Junior Member
 
Denmark
209 Posts |
Posted - 02 December 2005 : 07:03:18
|
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. |
 |
|
Shaggy
Support Moderator
    
Ireland
6780 Posts |
Posted - 02 December 2005 : 07:28:42
|
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.” |
 |
|
tinem
Junior Member
 
Denmark
209 Posts |
Posted - 03 December 2005 : 06:06:46
|
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. |
 |
|
masterao
Senior Member
   
Sweden
1678 Posts |
Posted - 03 December 2005 : 14:36:27
|
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 |
 |
|
tinem
Junior Member
 
Denmark
209 Posts |
Posted - 04 December 2005 : 04:36:42
|
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. |
 |
|
masterao
Senior Member
   
Sweden
1678 Posts |
Posted - 04 December 2005 : 14:03:49
|
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 |
 |
|
modifichicci
Average Member
  
Italy
787 Posts |
|
masterao
Senior Member
   
Sweden
1678 Posts |
Posted - 04 December 2005 : 17:53:21
|
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 |
 |
|
|
Topic  |
|