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)
 MOD: Auto-search via URL
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

(.)z
New Member

United Kingdom
85 Posts

Posted - 05 March 2001 :  12:27:56  Show Profile  Visit (.)z's Homepage  Send (.)z an AOL message  Send (.)z an ICQ Message  Send (.)z a Yahoo! Message
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"), " ")
with
if Request("Search") <> "" then ' (.)z: Auto-search option
keywords = split(Request("Search"), " ") ' (.)z: Auto-search option
replace line 74
if Request.Form("SearchMessage") = 1 then
with
if Request("SearchMessage") = 1 then ' (.)z: Auto-search option
replace line 108
if Request.Form("Forum") <> 0 then
with
if 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
  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.07 seconds. Powered By: Snitz Forums 2000 Version 3.4.07