Author |
Topic  |
|
motto
Starting Member
18 Posts |
Posted - 09 May 2002 : 06:31:53
|
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
|
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 |
 |
|
motto
Starting Member
18 Posts |
Posted - 09 May 2002 : 06:57:50
|
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..
|
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
Posted - 09 May 2002 : 07:09:46
|
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 |
 |
|
motto
Starting Member
18 Posts |
Posted - 09 May 2002 : 07:15:13
|
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.
|
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 09 May 2002 : 07:30:39
|
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))
|
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
Posted - 09 May 2002 : 07:37:21
|
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 |
 |
|
motto
Starting Member
18 Posts |
Posted - 09 May 2002 : 07:44:33
|
I've sent u that e-mail. Also, I don't have a forum.asp page - is this the same as: default.asp?
motto..
|
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
Posted - 09 May 2002 : 07:50:21
|
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 |
 |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 09 May 2002 : 07:54:46
|
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
|
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
Posted - 09 May 2002 : 08:20:22
|
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 |
 |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 09 May 2002 : 09:36:26
|
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.
|
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
Posted - 09 May 2002 : 10:50:54
|
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 |
 |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 09 May 2002 : 11:43:32
|
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
|
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
Posted - 09 May 2002 : 16:38:07
|
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 |
 |
|
|
Topic  |
|