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 / Classic ASP versions(v3.4.XX)
 will not show topics from last 2 to 60 days?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

motto
Starting Member

18 Posts

Posted - 09 May 2002 :  06:31:53  Show Profile
Hi,

just managed to set the forum up (Great). The only problem I have found is that topics are only displayed if you select either the: "show all", "show all open topics", "show topics from last 120 days" or "show topics from last year". If you choose any other options, the topics disapear. I would REALLY appreciate any help I can get on this.

Thanks, motto...



Edited by - motto on 09 May 2002 06:33:34

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 09 May 2002 :  06:38:26  Show Profile  Send ruirib a Yahoo! Message
Try replacing function StrToDate in inc_functions.asp by the one posted here.

Let me know how it goes.

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

motto
Starting Member

18 Posts

Posted - 09 May 2002 :  06:57:50  Show Profile
Thanks for replying. I tried that but it is still doing the same thing (I am in the UK). Also, is it the code from the last post I should be copying?

thanks, motto..

Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 09 May 2002 :  07:09:46  Show Profile  Send ruirib a Yahoo! Message
Yes it is. Can you provide a link to your forum (make sure you have the latest security bug fixes installed if you're gonna publicize your forum)?

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

motto
Starting Member

18 Posts

Posted - 09 May 2002 :  07:15:13  Show Profile
I have the latest version - will that sort the security issues? Also can I e-mail you with the address (I am not behind a firewall yet!).
thanks.

Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 09 May 2002 :  07:18:59  Show Profile  Send ruirib a Yahoo! Message
You can email me at ruirib @ computer.org.

Regarding the security fixes, you have to install them yourself, unless you downloaded Aarons version with the bug fixes applied. Take a look here for links to the relevant bug fixes (read 2nd post): http://forum.snitz.com/forum/topic.asp?TOPIC_ID=27562

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

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 09 May 2002 :  07:30:39  Show Profile  Visit HuwR's Homepage
Also,

In forum.asp look for the line where it sets defDate and change it to the line below

defDate = dateToStr(dateadd("d", -(nDays), strForumTimeAdjust))


Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 09 May 2002 :  07:37:21  Show Profile  Send ruirib a Yahoo! Message
quote:

Also,

In forum.asp look for the line where it sets defDate and change it to the line below

defDate = dateToStr(dateadd("d", -(nDays), strForumTimeAdjust))


My last version of the StrToDate was supposed to fix this. And I thought it did, because I tested in Romée's forum and it worked. That's why I'm so interested in finding what's going wrong on this case...

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

motto
Starting Member

18 Posts

Posted - 09 May 2002 :  07:44:33  Show Profile
I've sent u that e-mail. Also, I don't have a forum.asp page - is this the same as: default.asp?

motto..

Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 09 May 2002 :  07:50:21  Show Profile  Send ruirib a Yahoo! Message
quote:

I've sent u that e-mail. Also, I don't have a forum.asp page - is this the same as: default.asp?

motto..


Sure you do have a forum.asp. I cannot reach the address you sent me.

Huw's suggestion can fix your problem right away, I'd say. However, if you do have 10 mins or so and would like to work with me trying to find out what's going wrong with that particular function, I'd appreciate it.
It's perfectly Ok if you don't have the time, and it will only be needed if I can get to your forum, anyway.

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

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 09 May 2002 :  07:54:46  Show Profile  Visit HuwR's Homepage
if you have the function which was posted, simply making the change I suggested should fix it, the problem is not in the functions but the line where it sets defDate

Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 09 May 2002 :  08:20:22  Show Profile  Send ruirib a Yahoo! Message
Huw,

I know your fix should do it, but I'm inclined to think StrToDate should fix it anyway. My last change was made to ensure that
calling StrToDate(strForumTimeAdjust) or strForumTimeAdjust would give the same results.

Tell me please, the original instruction:

defDate = DateToStr(dateadd("d", -(nDays), StrToDate(strForumTimeAdjust)))


should it work, or is this just a bug, since strForumTimeAdjust is already a date?

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

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 09 May 2002 :  09:36:26  Show Profile  Visit HuwR's Homepage
should what work ?

you shouldn't have to call strToDate on strForumTimeAdjust it is a date not a forum stringdate.


I don't know what the original defdate line looked like, all I know is someone reported the same problem a few days ago on my forum, and that was the fix.

Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 09 May 2002 :  10:50:54  Show Profile  Send ruirib a Yahoo! Message
quote:

should what work ?

you shouldn't have to call strToDate on strForumTimeAdjust it is a date not a forum stringdate.


I don't know what the original defdate line looked like, all I know is someone reported the same problem a few days ago on my forum, and that was the fix.


That's what I figured. But the original defdate does have the call to strToDate, so it's a bug.

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

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 09 May 2002 :  11:43:32  Show Profile  Visit HuwR's Homepage
I think our fixes may have crossed each other, I posted the fix on my forum about the same time you posted your update, so the fix would have been for the previous code, so will need to check again against your latest

Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 09 May 2002 :  16:38:07  Show Profile  Send ruirib a Yahoo! Message
quote:

I think our fixes may have crossed each other, I posted the fix on my forum about the same time you posted your update, so the fix would have been for the previous code, so will need to check again against your latest


I think the latest fix solved motto's problem also.

-------------------------------------------------
Installation Guide | Do's and Dont's | MODs
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.39 seconds. Powered By: Snitz Forums 2000 Version 3.4.07