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
 Huw - Timezone Mod
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Martha2Mary
Junior Member

New Zealand
250 Posts

Posted - 06 April 2001 :  16:10:37  Show Profile  Visit Martha2Mary's Homepage  Send Martha2Mary an AOL message  Send Martha2Mary an ICQ Message  Send Martha2Mary a Yahoo! Message
Hi Huw,

After having this implemented on my Forum for a day or two, there is a little bug that I have noticed. I have set my Forum Timezone to GMT, and mine to New Zealand, and although most of the time the times are displayed in my own timezone, I find that about 2 times a day it shows them in GMT, and I have to got to my Profile and hit the 'submit' button to get it showing up correctly. Is this some kind of cookie bug, or is there something possibly wrong in the Profile area where settings are not being remembered correctly? Hope you can help!

Thanks,
Martha2Mary

*If Knowledge is Power, and Power Corrupts, what hope is there for Mankind *

Martha2Mary
Junior Member

New Zealand
250 Posts

Posted - 07 April 2001 :  20:05:10  Show Profile  Visit Martha2Mary's Homepage  Send Martha2Mary an AOL message  Send Martha2Mary an ICQ Message  Send Martha2Mary a Yahoo! Message
Okay, I have found out that it is whenever I close my browser that I am having this problem. So, I deleted all my cookies, then logged in at my Forums with the 'save password' box checked in the hope that that would help, but it didn't. The problem is still happening. I am sure that somewhere in the admin options there used to be a place where I could set when cookies expire, but for the life of me I can't find it now! Maybe that is the problem, I don't know, but would appreciate some help.

*If Knowledge is Power, and Power Corrupts, what hope is there for Mankind *
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 07 April 2001 :  20:22:47  Show Profile
cookie expiration is in the DoCookies section of inc_functions.asp

Huw is taking a little break and will be out until Tuesday
Go to Top of Page

Martha2Mary
Junior Member

New Zealand
250 Posts

Posted - 07 April 2001 :  21:09:15  Show Profile  Visit Martha2Mary's Homepage  Send Martha2Mary an AOL message  Send Martha2Mary an ICQ Message  Send Martha2Mary a Yahoo! Message
Thanks for letting me know, Richard. In order to fix this problem, what would I need to change the "DoCookies" to in inc_functions.asp?

This is what I have currently:

sub DoCookies(fSavePassWord)
if strSetCookieToForum = 1 then
Response.Cookies(strUniqueID & "User").Path = strCookieURL
else
Response.Cookies(strUniqueID & "User").Path = "/"
end if
Response.Cookies(strUniqueID & "User")("Name") = strDBNTFUserName
Response.Cookies(strUniqueID & "User")("Pword") = Request.Form("Password")
Response.Cookies(strUniqueID & "User")("Cookies") = Request.Form("Cookies")
if fSavePassWord = "true" then
Response.Cookies(strUniqueID & "User").Expires = dateAdd("d", 30, strForumTimeAdjust)
end if
Session(strCookieURL & "last_here_date") = ReadLastHereDate(strDBNTFUserName)

end sub

sub ClearCookies()
if strSetCookieToForum = 1 then
Response.Cookies(strUniqueID & "User").Path = strCookieURL
else
Response.Cookies(strUniqueID & "User").Path = "/"
end if
Response.Cookies(strUniqueID & "User") = ""
'Response.Cookies(strUniqueID & "User").Expires = dateadd("d", -2, strForumTimeAdjust)
end sub

Your help is appreciated!

*If Knowledge is Power, and Power Corrupts, what hope is there for Mankind *
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 10 April 2001 :  05:52:20  Show Profile  Visit HuwR's Homepage
Martha2Mary

The problem is in the code you added for my mod, look for any instances of the
"DayLightSaving" and "LocalBias" cookies, the prefixes should be strCookieURL and not strUniqueID

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.4 seconds. Powered By: Snitz Forums 2000 Version 3.4.07