Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Search Form Enhancement
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 4

OneWayMule
Dev. Team Member & Support Moderator

Austria
4969 Posts

Posted - 21 December 2002 :  16:43:28  Show Profile  Visit OneWayMule's Homepage  Send OneWayMule an ICQ Message
Work Mule, the download link at SnitzBitz doesn't work.
You might want to update/re-upload the MOD.

Could anyone post a download link for this one?

My MODs:
Birthdays - Custom Policy - F.A.Q. Administration - Forum Rules - Guestbook
Links Manager - MyOwnGoogle - Profile Views - Search Log - WebSearch

Useful stuff:
Forum and MOD Installation - MOD Installation Guide - Snitz v3.4.05 Readme - Free ASP Hosts - Support Snitz
Go to Top of Page

n/a
deleted

593 Posts

Posted - 21 December 2002 :  16:59:53  Show Profile
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
Go to Top of Page

jkmcgrath
Junior Member

USA
145 Posts

Posted - 21 December 2002 :  19:41:49  Show Profile  Visit jkmcgrath's Homepage
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
Go to Top of Page

n/a
deleted

593 Posts

Posted - 02 January 2003 :  05:34:20  Show Profile
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
Go to Top of Page

retro
Junior Member

123 Posts

Posted - 03 January 2003 :  23:09:48  Show Profile
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
Go to Top of Page

retro
Junior Member

123 Posts

Posted - 03 January 2003 :  23:46:42  Show Profile
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
Go to Top of Page

masterao
Senior Member

Sweden
1678 Posts

Posted - 04 January 2003 :  12:44:33  Show Profile  Visit masterao's Homepage
retro, I tested your suggested fix (I experienced the same bug with years), and it worked ok for me.

Jan
===========
FR Portal Forums | Active Users 4.0.20 Mod
Go to Top of Page

retro
Junior Member

123 Posts

Posted - 04 January 2003 :  14:08:30  Show Profile
Whew! Thanks masterao!

My first real code contribution to the site


Sean
Go to Top of Page
Page: of 4 Previous Topic Topic Next Topic  
Previous Page
 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.15 seconds. Powered By: Snitz Forums 2000 Version 3.4.07