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
 Active users record reset
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

VodkaFish
Average Member

USA
654 Posts

Posted - 23 June 2002 :  17:51:49  Show Profile  Send VodkaFish an AOL message  Send VodkaFish an ICQ Message  Send VodkaFish a Yahoo! Message
I recently installed the latest Active Users mod. It's the best time as my site gets 1/4 the traffic over the summer. So, I had the stats showing, and the record was 17. The server is reset, and now it's 14? I didn't lose any messages or anything else from my Snitz db. I thought this was stored in the config table. Does anyone know how or why this happened?

v ø d k â f ï § h

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 23 June 2002 :  17:57:10  Show Profile  Send ruirib a Yahoo! Message
Have you checked the value in the Forum_config_new table? Was it changed there also?

-------------------------------------------------
Installation Guide | Do's and Dont's | MODs
Go to Top of Page

VodkaFish
Average Member

USA
654 Posts

Posted - 23 June 2002 :  20:41:38  Show Profile  Send VodkaFish an AOL message  Send VodkaFish an ICQ Message  Send VodkaFish a Yahoo! Message
Yup, the value matches in there. I never touched the database when it changed (any table at any time).

I mean, this isn't a bug or a big deal. It was just weird

v ø d k â f ï § h
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 23 June 2002 :  20:54:19  Show Profile  Send ruirib a Yahoo! Message
Weird indeed. I admit I had a couple unexplained resets in the Active Users config, but I can't remember whether the record was affected. And they happened mostly on my localhost, which means the record rarely goes above one, and never above two.

-------------------------------------------------
Installation Guide | Do's and Dont's | MODs


Edited by - ruirib on 23 June 2002 20:54:47
Go to Top of Page

Nathan
Help Moderator

USA
7664 Posts

Posted - 30 June 2002 :  16:33:53  Show Profile  Visit Nathan's Homepage
I think you may have found a bug. . .

When the active users number is higher than the active users record (app variable) it resets the app variable and the database info. It doesn't check the database info to see if it is even higher. (DOH!)

Nathan Bales
Snitz Exchange | Do's and Dont's
Go to Top of Page

VodkaFish
Average Member

USA
654 Posts

Posted - 01 July 2002 :  19:06:09  Show Profile  Send VodkaFish an AOL message  Send VodkaFish an ICQ Message  Send VodkaFish a Yahoo! Message
No big deal now, my record just hovers in the teens since my traffic is low in the summer. If it hops around from 20-50 in September, I think someone might start to notice At least it always works, so I'd consider this a pretty minor bug.

v ø d k â f ï § h
Go to Top of Page

Justine
Starting Member

18 Posts

Posted - 01 July 2002 :  19:37:42  Show Profile
Where would you go to change this record ?
I want to make it look like I have had 1000's of people on my forum at the same time !

Go to Top of Page

VodkaFish
Average Member

USA
654 Posts

Posted - 09 July 2002 :  10:39:24  Show Profile  Send VodkaFish an AOL message  Send VodkaFish an ICQ Message  Send VodkaFish a Yahoo! Message
Can anyone point me to the code to change (where it is)? My server seems to be having problems and keeps getting reset.

Thanx.

v ø d k â f ï § h
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 09 July 2002 :  12:33:48  Show Profile  Send ruirib a Yahoo! Message
You need to check the chkAURecord function in inc_functions.asp.

-------------------------------------------------
Installation Guide | Do's and Dont's | MODs
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 09 July 2002 :  12:48:16  Show Profile  Send ruirib a Yahoo! Message
Ok, try replacing the function for this one to see if it helps:


function chkAURecord(intTotalActiveUsers)
Dim rsRec, strRecSql, tempRec

if intTotalActiveUsers > intAURecord then 'We have a new record!!! :)

'test this against the database:

strRecSql = "SELECT C_VALUE FROM " & strTablePrefix & "CONFIG_NEW WHERE C_VARIABLE='intAURecord'"

Set rsRec = Server.CreateObject("ADODB.Recordset")

rsRec.Open strRecSql, my_conn

if rsRec.EOF or rsRec.BOF then 'Exit if you cannot read the current value
rsRec.Close
Set rsRec = nothing
Exit Function
End if

'now test the value from the DB:

tempRec = Cint(rsRec("C_VALUE"))

if intTotalActiveUsers > tempRec Then
strDummy = SetConfigValue(1, "intAURecord", cstr(intTotalActiveUsers))
strDummy = SetConfigValue(1, "strAURecordDate", DateToStr(strForumTimeAdjust))
intAURecord = intTotalActiveUsers
strAURecordDate = DateToStr(strForumTimeAdjust)
Application(strCookieURL & "INTAURECORD") = intTotalActiveUsers
Application(strCookieURL & "STRAURECORDDATE") = DateToStr(strForumTimeAdjust)
end if

rsRec.Close
set rsRec = nothing
end if
end function


With this I'm just following Nathan's own hint. I don't know whether this will fix the reset, cause it's hard to cause a reset on my forum, but check it out.

Let me know how it goes.

-------------------------------------------------
Installation Guide | Do's and Dont's | MODs
Go to Top of Page

QuickSilva
Junior Member

136 Posts

Posted - 16 July 2002 :  19:50:22  Show Profile  Visit QuickSilva's Homepage
Since my forum reset how can i change the Active Users rcord to what it was before. It was 14 and now it's 6. I want to change it back to 14. How?
I used that code aswell, i'll tell u how it goes.

Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 16 July 2002 :  20:07:06  Show Profile  Send ruirib a Yahoo! Message
quote:

Since my forum reset how can i change the Active Users rcord to what it was before. It was 14 and now it's 6. I want to change it back to 14. How?


Either you write a small script to write to the database, or change the value in the database manually, or through something like Table Editor.

quote:

I used that code aswell, i'll tell u how it goes.


Ok, since I took the trouble to write it at least I'd like to know if it works.

-------------------------------------------------
Installation Guide | Do's and Dont's | MODs
Go to Top of Page

QuickSilva
Junior Member

136 Posts

Posted - 16 July 2002 :  20:27:11  Show Profile  Visit QuickSilva's Homepage
Thankyou, back to normal again. So far works but it did take a week or 2 till it reset. I'll reply to this topic if it fails.
Thanks Anyway

Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 16 July 2002 :  20:46:21  Show Profile  Send ruirib a Yahoo! Message
Ok, you're welcome .

-------------------------------------------------
Installation Guide | Do's and Dont's | MODs
Go to Top of Page

VodkaFish
Average Member

USA
654 Posts

Posted - 17 July 2002 :  16:46:47  Show Profile  Send VodkaFish an AOL message  Send VodkaFish an ICQ Message  Send VodkaFish a Yahoo! Message
ruirib - I haven't had a chance to change any of my code yet. I'll let you know if it works. My server seems to be resetting quite often recently, so mine is always changing. I hope to test this within the week. Thanx.

v ø d k â f ï § h
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 17 July 2002 :  17:10:25  Show Profile  Send ruirib a Yahoo! Message
quote:

ruirib - I haven't had a chance to change any of my code yet. I'll let you know if it works. My server seems to be resetting quite often recently, so mine is always changing. I hope to test this within the week. Thanx.

v ø d k â f ï § h


Okie dokie.

-------------------------------------------------
Installation Guide | Do's and Dont's | MODs
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
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.39 seconds. Powered By: Snitz Forums 2000 Version 3.4.07