Blockland FireFox Search Engine Addition

Author Topic: Blockland FireFox Search Engine Addition  (Read 1649 times)

Code: [Select]
<SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/" xmlns:os="http://a9.com/-/spec/opensearch/1.1/">
<os:ShortName>Blockland</os:ShortName>
<os:Description>Search threads on Blockland.us</os:Description>
<os:InputEncoding>UTF-8</os:InputEncoding>
<os:Image width="16" height="16">data:image/x-icon;base64,***EDIT OUT IMAGE CODE TO REDUCE PAGE WIDTH***</os:Image>
<SearchForm>http://www.blockland.us/smf/index.php?action=search</SearchForm>
<os:Url type="text/html" method="GET" template="http://www.blockland.us/smf/index.php?action=search2&search={searchTerms}">
</os:Url>
</SearchPlugin>

That is what I have. This is my issue, &search={searchTerms}, if I take that out, the search engine will appear in the options to choose from in FireFox, but if I add that in, it won't display. I'm at a loss... It has to be there in order for the search to work.

Can anyone please help, or explain what I am missing? FireFox forums helped me none, no one responded, guess it was the wrong thread, but there is no thread for search engine creations.


Thanks in advance,
- Dave

Can't you just right-click the search edit box and choose "Add keyword for this search..."?
That way, you could just type "blockland <keywords>", and it'd redirect you to the search page.

I think this is designed to use the in-forum search engine instead of a conventional search engine. ANd also, Awoken, are you sure the search is cabable of searches through toolbars?

Yes, I've actually tried it both ways, this is the other way:
Code: [Select]
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>Blockland</ShortName>
<Description>Search threads on Blockland.us</Description>
<InputEncoding>UTF-8</InputEncoding>
<Image width="16" height="16">data:image/x-icon;base64,***EDIT OUT IMAGE CODE TO REDUCE PAGE WIDTH***</Image>
<SearchForm>http://www.blockland.us/smf/index.php?action=search</SearchForm>
<Url type="text/html" template="http://www.blockland.us/smf/index.php?action=search2&search={searchTerms}" />
</OpenSearchDescription>

Neither work. Unless, again, you remove "&search={searchTerms}", but if you do that, it won't work.

My url type is correct, if you try (lets say you search "testing", the search engine will use this url to give you your search results): http://www.blockland.us/smf/index.php?action=search2&search=testing it will give you your search results, but FireFox won't let it show up.


[Edit] - These are simple to make, I've made them before, that's why I'm at a loss with this.
« Last Edit: September 12, 2007, 06:22:49 PM by ·•{ Awoken } »

Here's an example of one from Dictionary.com:
Code: [Select]
<SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/" xmlns:os="http://a9.com/-/spec/opensearch/1.1/">
<os:ShortName>Dictionary.com</os:ShortName>
<os:Description>Dictionary.com</os:Description>
<os:InputEncoding>UTF-8</os:InputEncoding>
<os:Image width="16" height="16">data:image/x-icon;base64,***EDIT OUT IMAGE CODE TO REDUCE PAGE WIDTH***</os:Image>
<UpdateInterval>7</UpdateInterval>
<UpdateUrl>http://mycroft.mozdev.org/updateos.php/id0/dictionary.xml</UpdateUrl>
<IconUpdateUrl>http://mycroft.mozdev.org/updateos.php/id0/dictionary.png</IconUpdateUrl>
<SearchForm>http://dictionary.reference.com/</SearchForm>
<os:Url type="text/html" method="GET" template="http://dictionary.reference.com/search?q={searchTerms}">
</os:Url>
</SearchPlugin>

Aside from the update code, mine is no different.
« Last Edit: September 12, 2007, 07:58:24 PM by ·•{ Awoken } »

I just went to the url in this:
Quote
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
and I got this page:
Quote
The OpenSearch specification has moved to the OpenSearch.org website at: http://www.opensearch.org/Specifications/OpenSearch/1.1

I don't know much about these types of things, but does that have anything to do with it?

Probably, but I've always put that in there because all other search plugins have it.