Author |
Topic |
OneWayMule
Dev. Team Member & Support Moderator
Austria
4969 Posts |
|
n/a
deleted
593 Posts |
Posted - 21 December 2002 : 16:59:53
|
Well, it works fine for "English..." ... I have V3.4.03 in UTF-8. Tried with Japanese and somehow it does not sort/search Japanese. I did the same operation with Search (default Forum Search) and it works fine. Looked at search.asp and didn't see any particular encoding setting there. Mine is done in inc_header for setting encoding to utf-8. Any ideas how to "enable" this MOD to work with UTF-8?
TIA...
|
Taku
|
|
|
jkmcgrath
Junior Member
USA
145 Posts |
Posted - 21 December 2002 : 19:41:49
|
quote: Originally posted by seaborg
i fix it with DaviRhodes's help
do follow
Response.Write ChkDate(StrToDate(start_date), "" ,false) & " - " & ChkDate(StrToDate(end_date), "" ,false)
Removing the strtodate
Response.Write ChkDate(start_date, "" ,false) & " - " & ChkDate(end_date, "" ,false)
Thank You Thank You Thank You!!!!
I am so glad I stopped in! |
Delta Force Seals |
|
|
n/a
deleted
593 Posts |
Posted - 02 January 2003 : 05:34:20
|
Happy New Year....
I have to correct this mentioned below. I tried more and obviously it was my usage problem... not explored enough. Worked fine when I put an exact "Author" name and when there is an exact association with texts in subject/messages... tried on the same Japanese texts and worked fine in my V3.4.03 unicoded forum. Nice MOD and thanks!!!!!
quote: Originally posted by LeoRat
Well, it works fine for "English..." ... I have V3.4.03 in UTF-8. Tried with Japanese and somehow it does not sort/search Japanese. I did the same operation with Search (default Forum Search) and it works fine. Looked at search.asp and didn't see any particular encoding setting there. Mine is done in inc_header for setting encoding to utf-8. Any ideas how to "enable" this MOD to work with UTF-8?
TIA...
|
Taku
|
|
|
retro
Junior Member
123 Posts |
Posted - 03 January 2003 : 23:09:48
|
Workmule,
It works great....but
When I load my page, the "Search for posts Starting" defaults to 2003. I'm guessing that this is a minor glitch since it it searching backwards and not finding anything between then and today.
The problem code is:
case "mdy","mmdy","mmmdy"
DisplaySelectObject strSearchMonthFormat,"start_month", Month(now()-30)
DisplaySelectObject "date_numeric","start_day", Day(now())
DisplaySelectObject "years_forum","start_year", Year(now())
Basically, it's getting last month (December), Today's Date (3rd), and This Year (2003) and saying search between December 3, 2003 and January 3, 2003. No posts are there because those dates haven't occured yet.
Am I making sense? Basically, it just needs an if then statement to see if it's January. If it is, then the year should be last year. Any help?
Thanks!
|
Sean |
Edited by - retro on 03 January 2003 23:33:51 |
|
|
retro
Junior Member
123 Posts |
Posted - 03 January 2003 : 23:46:42
|
Okay....I think I have resolve the problem. I just added the if-then statements. To make the change, just replace lines 1072-1101(the Select Case.... all the way down to the End Select) with the following code:
Select Case strSearch_DateType
case "mdy","mmdy","mmmdy"
DisplaySelectObject strSearchMonthFormat,"start_month", Month(now()-30)
DisplaySelectObject "date_numeric","start_day", Day(now())
If Month(now()) = 1 Then
DisplaySelectObject "years_forum","start_year", Year(now()-30)
Else DisplaySelectObject "years_forum","start_year", Year(now())
End If
case "ymd","ymmd","ymmmd"
If Month(now()) = 1 Then
DisplaySelectObject "years_forum","start_year", Year(now()-30)
Else DisplaySelectObject "years_forum","start_year", Year(now())
End If
DisplaySelectObject strSearchMonthFormat,"start_month", Month(now()-30)
DisplaySelectObject "date_numeric","start_day", Day(now())
case "ydm","ydmm","ydmmm"
If Month(now()) = 1 Then
DisplaySelectObject "years_forum","start_year", Year(now()-30)
Else DisplaySelectObject "years_forum","start_year", Year(now())
End If
DisplaySelectObject "date_numeric","start_day", Day(now())
DisplaySelectObject strSearchMonthFormat,"start_month", Month(now()-30)
case Else '"dmy","dmmy","dmmmy"
DisplaySelectObject "date_numeric","start_day", Day(now())
DisplaySelectObject strSearchMonthFormat,"start_month", Month(now()-30)
If Month(now()) = 1 Then
DisplaySelectObject "years_forum","start_year", Year(now()-30)
Else DisplaySelectObject "years_forum","start_year", Year(now())
End If
End Select
Basically, it just checks to see if this month is January. If it is, it sets the year back one. Can somone else check this for me??
Thanks!!
|
Sean |
Edited by - retro on 03 January 2003 23:48:00 |
|
|
masterao
Senior Member
Sweden
1678 Posts |
|
retro
Junior Member
123 Posts |
Posted - 04 January 2003 : 14:08:30
|
Whew! Thanks masterao!
My first real code contribution to the site
|
Sean |
|
|
Topic |
|
|
|