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: General / Current Version (Old)
 Active topics since last visit
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Al
Starting Member

Norway
35 Posts

Posted - 02 June 2001 :  05:32:18  Show Profile  Visit Al's Homepage
The active topics since last visit-feature doesn't work in my new version of snitz.

The page "active topics" shows the pages updated since my last visit -- but here the month and the day has changed. My last visit was today, 02/06/2001, but the date in this field (but nowhere else in the forum) shows 06/02/2001. I guess this date also happens to be the cookie-date, because the icons for the topics is "icon_folder_new.gif" instead of the "icon_folder.gif" which I expect.

Neihter the feature "Mark all topics as read" is working.

Does anybody knows what's wrong?

The forum is here: http://utsyn.no/innspill/

Edited by - Al on 02 June 2001 08:23:44

cran
Starting Member

6 Posts

Posted - 02 June 2001 :  10:12:33  Show Profile  Send cran an ICQ Message
It's because the date is converted from string to date and back to string, but the date convert doesn't work... it's a microsoft bug... if the month/day reversied is a valid US date it uses the US format even though it should use the non US fornat... thats why it was fine on 31/5 because 31/5 is not a valid US date, but on the 1/6 it thinks it's the 6th January... 8-(

I've done a fix that is working on my sites forum

Replace the ReadLastHereDate function in inc_functions.asp with the following:

function ReadLastHereDate(UserName)
dim TempLastHereDate
dim rs_date

'## Forum_SQL
strSql = "SELECT " & strMemberTablePrefix & "MEMBERS.M_LASTHEREDATE "
strSql = strSql & " FROM " & strMemberTablePrefix & "MEMBERS "
strSql = strSql & " WHERE " & strMemberTablePrefix & "MEMBERS."&Strdbntsqlname&" = '" & UserName & "' "


set rs_date = my_conn.Execute (strSql)

if (rs_date.BOF and rs_date.EOF) then
ReadLastHereDate = DatetoStr(DateAdd("d",-10,strForumTimeAdjust))
else
TempLastHereDate = StrToDate(rs_date("M_LASTHEREDATE"))
if TempLastHereDate = "" or IsNull(TempLastHereDate) then
ReadLastHereDate = DatetoStr(DateAdd("d",-10,strForumTimeAdjust))
else
ReadLastHereDate = rs_date("M_LASTHEREDATE")
end if
end if

rs_date.close
set rs_date = nothing

'## Forum_SQL - Do DB Update
strSql = "UPDATE " & strMemberTablePrefix & "MEMBERS "
strSql = strSql & " SET M_LASTHEREDATE = '" & DateToStr(strForumTimeAdjust) & "'"
strSql = strSql & " WHERE " & strMemberTablePrefix & "MEMBERS." & strDBNTSQLName & " = '" & UserName & "' "

my_conn.Execute (strSql)

end function



Go to Top of Page

Al
Starting Member

Norway
35 Posts

Posted - 02 June 2001 :  11:15:27  Show Profile  Visit Al's Homepage
It worked! Thank you, brother, and God bless you!

Al

---

For by grace are ye saved through faith; and that not of yourselves: it is the gift of God. Eph. 2,8

Go to Top of Page

kjartis
New Member

Norway
94 Posts

Posted - 05 June 2001 :  01:20:54  Show Profile  Visit kjartis's Homepage
quote:

It's because the date is converted from string to date and back to string, but the date convert doesn't work...


A big THANKS from me to!

www.kjartis.com
Go to Top of Page

horhan
Starting Member

20 Posts

Posted - 05 June 2001 :  02:05:47  Show Profile
Hi,

I modified the codes of Cran as

MEMBERS.M_NAME instead of MEMBERS.

It works fine now!

Thanks all for your help!


Go to Top of Page

kjartis
New Member

Norway
94 Posts

Posted - 05 June 2001 :  02:34:24  Show Profile  Visit kjartis's Homepage
quote:

Hi,

I modified the codes of Cran as

MEMBERS.M_NAME instead of MEMBERS.

It works fine now!



What good does this do?

www.kjartis.com
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.26 seconds. Powered By: Snitz Forums 2000 Version 3.4.07