Our organisation often posts helpful information to the forums, usually with a special keyword in the topic, for example HOWTO:
We also have an MSDN style TOC that covers everything, and this includes a Help menu with links to various bits of help documentation on the intranet.
I occured to me that it might be a nice idea to link to the HOWTO's in the forums from the TOC.
What I needed was a way of being able to execute a forum search automatically, which is what this mod is all about.
I can now put an option in my TOC with a link such as
http://forums.intranet.cs.ramesys.com/search.asp?Search=HOWTO:&mode=DoIt
The change to support this was minor. In search.asp (version 3.1sr4) replace lines 61 and 62 if Request.Form("Search") <> "" then
keywords = split(Request.Form("Search"), " ")
withif Request("Search") <> "" then ' (.)z: Auto-search option
keywords = split(Request("Search"), " ") ' (.)z: Auto-search option
replace line 74if Request.Form("SearchMessage") = 1 then
withif Request("SearchMessage") = 1 then ' (.)z: Auto-search option
replace line 108if Request.Form("Forum") <> 0 then
withif Request("Forum") <> 0 then ' (.)z: Auto-search option
There are other uses of Request.Form within this page that could be replaced with just Request, but I did not think exposing these as QueryStrings would be of much benefit.
Simple, but effective.
Regards - z