firefox search plugin

hairic

Well-Known Member
Messages
2,724
Reaction score
650
I went on a tear while messing with opensearch, and I made one for the search here too. It's kinda pointless, but it works, so I'm posting it. :p:

This is really only for the admins to add if they're interested (they can make it work for everyone much easier, add other stuffs like the favicon, etc), but anyone can add it manually. Just create an xml file (I'm too lazy to host it myself), copy/paste the code into it, and save it to this buried directory: c:\documents and settings\your account name\application data\mozilla\firefox\profiles\profile gibberish name\searchplugins\ You'll then be able to search the cowboyszone forums without visiting the search page.

BTW, for anyone who doesn't know what I'm talking about, the search bar in firefox = search plugins. When firefox is first installed, it defaults to a google search plugin and has a half dozen other options. It's next to the address bar unless you moved it.

Code:
<SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/" xmlns:os="http://a9.com/-/spec/opensearch/1.1/">
<os:ShortName>cowboyszone forums</os:ShortName>
<os:Description>search cowboyszone.com forums</os:Description>
<os:InputEncoding>UTF-8</os:InputEncoding>>
<SearchForm>http://cowboyszone.com/forums/search.php</SearchForm>
<os:Url type="text/html" method="GET" template="http://cowboyszone.com/forums/search.php?query={searchTerms}&amp;do=process">
</os:Url>
</SearchPlugin>
name/values that can narrow search (all the stuff you see in advanced search). Took all of this down when getting the name of form submit button:

query = text. The terms you're searching for.
titleonly = boolean. Value of 0 searches entire posts, and a 1 searches thread titles.
searchuser = text. Username or part of username you can remember.
starteronly = boolean. Value of 0 finds posts, and a 1 finds threads. To be used with searchuser.
exactname = boolean.
replyless = boolean. Value of 0 is min replies, and a 1 is max replies.
replylimit = text (number really). Connected to replyless.
searchdate = text. Lots of values. 0-365, lastvisit.
beforeafter = after or before. Connected to searchdate.
sortby = rank, title, replycount, views, threadstart, lastpost, postusername, forum
order = descending or ascending
showposts = boolean. Off is shown as threads, on is shown as posts.
forumchoice = array. And I don't wanna mess with it.
do = process. It's the submit button
You can do a lot of stuff with those other options, but it's likely too niche. I know I'll make one to keep up with individual posts, though, just because it requires fields that I haven't messed with yet.
 
Top