Browser Search Plugin

From Unofficial Homecoming Wiki
Revision as of 18:16, 18 September 2006 by imported>StarGeek (→‎City of Heroes Forum Search plugin: CoH plugin currently non-functional.)
Jump to navigation Jump to search

Overview

Here is a quick and dirty search plugin to add the ability to search the Paragon Wiki, Badge-Hunter.com the CoH Forums, Nofuture.org.uk or VidiotMaps.com to the search toolbar in Firefox and Opera.

Installing in Firefox

Open up Notepad or your favorite text editor. Wordpad isn't the best item for this operation, because it insists on adding a .txt extension, while we want a .src extension on this file. Copy and paste one of the plugins text into your editor.

Save this file in your C:\Program Files\Mozilla Firefox\searchplugins with an appropriate name for the plugin, with a .scr extension. Here is a suggested list, though you can name it whatever is easy for you to remember. It must end in .src though.

  • ParagonWiki.src
  • Badge-Hunter.scr
  • CoHBoards.scr
  • NoFuture.org.src
  • VidiotMaps.src

If Firefox is in a different directory, you'll have to change the filepath appropriately. Close down Firefox and restart. You'll now have a nice, new CoH related search in your search box.

Installing in Opera

Installing the search plugin in Opera is a bit more complex, as Opera's Search.ini file is less flexible and harder to manually edit. The best thing to do is to download and install Opsed.

Open up Notepad or your favorite text editor. Wordpad isn't the best item for this operation, because it insists on adding a .txt extension, while we want a .src extension on this file. Copy and paste the plugins text into your editor.

If you are running Opera 9 or higher, you must first do the following in Opsed. Select the Preferences menu, then select the Advanced tab. Click the User Defined selection near the bottom and change the 6 to 8.

Save this file, the actual place doesn't matter, since it will only be used once and can be deleted afterwards. Open Opsed, and select the File menu. Select Import and then the first Merge user defined searches menu (why there are two, I don't know). Find the file you just saved and select it. Click Ok and Save and the search will be added to Opera's search.ini. You can now delete the original file. Restart Opera and you'll now have a nice, new CoH related search in your search box.

The Plugins

Paragon Wiki plugin

For Firefox, right click on this image ParagonWiki.png, select Save Image As..., and save it in the SearchPlugins directory, with same name you gave the the search plugin, but with a .png extension (i.e. if you named the plugin ParagonWiki.scr, then call the image ParagonWiki.png).

# Mozilla search plugin for Paragon Wiki PargonWiki.com
# by StarGeek
# This file is released into the public domain.
#
# Version: 0.9 (2006-03-03)
<SEARCH version="7.1"
        name="Paragon Wiki"
        description="Search on ParagonWiki.com"
        method="GET"
	action="http://paragonwiki.com/w/index.php"
	searchForm="http://paragonwiki.com/w/index.php"
        queryCharset="UTF-8"
>

<input name="search" user>
</search>

Badge-Hunter.com

The Badge-Hunter.com plugin searchs Badge-Hunter.com using Google. To use the alternate name (Badge-Whore.com), replace any occurance of Hunter in the plugin with Whore.

For Firefox, right click on this image VidiotMaps.png, and save it in the SearchPlugins directory, with same name you gave the the search plugin, but with a .png extension (i.e. if you named the plugin Badge-Whore.scr, then call the image Badge-Whore.png).

# Mozilla search plugin for Badge-Hunter.com through Google
# by StarGeek
# This file is released into the public domain.
#
# Version: 0.9 (May 20, 2006)
<SEARCH version="7.1"
        name="Badge-Hunter.com"
        description="Search on Badge-Hunter.com"
        method="GET"
action="http://Google.com/search"
searchForm="http://Google.com"
        queryCharset="UTF-8"
>

<input name="q" user>
<input name="q" value="site:Badge-Hunter.com">
</search>

City of Heroes Forum Search plugin

Due to the recent forum upgrade, this plugin is currently non-functional. A fix will be coming soon.

This plugin will search all forums on the City of Heroes boards for the term entered. Unlike the search on the CoH boards, it doesn't default to only the previous week. If you prefer the City of Villains skin for the board, change the line action="http://boards.CityOfHeroes.com/dosearch.php" to action="http://boards.CityOfVillains.com/dosearch.php".

It is highly suggested that you prefix any search term you use with a plus sign +, due to the way the City of Heroes Forum search works.

For Firefox, right click on this image CoHBoards.png and save it in the SearchPlugins directory, with same name you gave the the search plugin, but with a .png extension (i.e. if you named the plugin CoHBoards.scr, then call the image CohBoards.png).

# Mozilla search plugin for the City of Heroes forums
# by StarGeek
# This file is released into the public domain.
#
# Version: 0.9 (June 29, 2006)
<SEARCH version="7.1"
        name="City of Heroes Forum"
        description="Search on the City of Heroes Forums"
        method="GET"
action="http://boards.CityOfHeroes.com/dosearch.php"
searchForm="http://boards.CityOfHeroes.com/search.php"
        queryCharset="UTF-8"
>

<input name="Words" user>
<input name="Forum%5B%5D" Value="All_Forums">
<input name="where" Value="bodysub">
<input name="Limit" Value="25">
</search>

Creating individual forum search

The above search will search the entire forums. If you wish to create a search that will search though one or more specific forums, you can remove the <input name="Forum%5B%5D" Value="All_Forums"> line and replace it with one or more of the bolded sections in the following list. For example, if you want to create a seach that only searches the 'Announcements' and 'The Training Room' sections of the board, you would add two lines, <input name="Forum%5B%5D" Value="f12"> and <input name="Forum%5B%5D" Value="f17">.

  • Development, <input name="Forum%5B%5D" Value="c1">
    • Developers Corner, <input name="Forum%5B%5D" Value="f43">
    • Announcements, <input name="Forum%5B%5D" Value="f12">
    • Technical Issues and Bugs, <input name="Forum%5B%5D" Value="f20">
    • The Training Room (Test Server), <input name="Forum%5B%5D" Value="f17">
  • Players Choice Awards 2006, <input name="Forum%5B%5D" Value="c2">
    • Players Choice Awards 2006, <input name="Forum%5B%5D" Value="f59">
  • Player Help and Ideas, <input name="Forum%5B%5D" Value="c3">
    • Suggestions and Ideas, <input name="Forum%5B%5D" Value="f41">
    • Player Questions, <input name="Forum%5B%5D" Value="f42">
    • Badges and Gladiators, <input name="Forum%5B%5D" Value="f45">
    • Player Events, <input name="Forum%5B%5D" Value="f58">
    • Player Guides, <input name="Forum%5B%5D" Value="f23">
  • *Archetypes And Powers, <input name="Forum%5B%5D" Value="c4">
    • Archetypes and Powers General Discussion, <input name="Forum%5B%5D" Value="f19">
    • Blaster, <input name="Forum%5B%5D" Value="f24">
    • Brutes, <input name="Forum%5B%5D" Value="f50">
    • Controller, <input name="Forum%5B%5D" Value="f25">
    • Corruptor, <input name="Forum%5B%5D" Value="f52">
    • Defender, <input name="Forum%5B%5D" Value="f26">
    • Dominator, <input name="Forum%5B%5D" Value="f54">
    • Kheldian, <input name="Forum%5B%5D" Value="f44">
    • Mastermind, <input name="Forum%5B%5D" Value="f53">
    • Scrapper, <input name="Forum%5B%5D" Value="f27">
    • Stalker, <input name="Forum%5B%5D" Value="f51">
    • Tanker, <input name="Forum%5B%5D" Value="f28">
  • Player vs. Player, <input name="Forum%5B%5D" Value="c5">
    • PvP Zones, <input name="Forum%5B%5D" Value="f49">
    • PvP General, <input name="Forum%5B%5D" Value="f55">
  • Bases, <input name="Forum%5B%5D" Value="c6">
    • Base Construction, <input name="Forum%5B%5D" Value="f47">
    • Base Raids, <input name="Forum%5B%5D" Value="f48">
  • For Fun!, <input name="Forum%5B%5D" Value="c7">
    • General Discussion - CoH, <input name="Forum%5B%5D" Value="f13">
    • General Discussion - CoV, <input name="Forum%5B%5D" Value="f40">
    • Supergroups, <input name="Forum%5B%5D" Value="f15">
    • Comic and Hero/Villain Culture, <input name="Forum%5B%5D" Value="f14">
    • >Roleplaying, <input name="Forum%5B%5D" Value="f16">
    • Screenshots and Fan Art, <input name="Forum%5B%5D" Value="f22">
    • Forum Games, <input name="Forum%5B%5D" Value="f57">
  • Servers, <input name="Forum%5B%5D" Value="c8">
    • Champion, <input name="Forum%5B%5D" Value="f29">
    • Freedom, <input name="Forum%5B%5D" Value="f30">
    • Guardian, <input name="Forum%5B%5D" Value="f31">
    • Infinity, <input name="Forum%5B%5D" Value="f32">
    • Justice, <input name="Forum%5B%5D" Value="f33">
    • Liberty, <input name="Forum%5B%5D" Value="f34">
    • Pinnacle, <input name="Forum%5B%5D" Value="f35">
    • Protector, <input name="Forum%5B%5D" Value="f36">
    • Triumph, <input name="Forum%5B%5D" Value="f37">
    • Victory, <input name="Forum%5B%5D" Value="f38">
    • Virtue, <input name="Forum%5B%5D" Value="f39">

Red Tomax's NoFuture.org.uk plugin

The NoFuture plugin searches NoFuture using Google. Some search terms will pull up non-CoH/V entries (for example, Blaster search pulls up some transformer entries), since Red's site has more than just CoH/V pages.

# Mozilla search plugin for Red Tomax's www.nofuture.org.uk through Google
# by StarGeek
# This file is released into the public domain.
#
# Version: 0.9 (May 20, 2006)
<SEARCH version="7.1"
        name="NoFuture.org.uk"
        description="Search on Red Tomax's NoFuture.org.uk"
        method="GET"
action="http://Google.com/search"
searchForm="http://Google.com"
        queryCharset="UTF-8"
>

<input name="q" user>
<input name="q" value="site:www.NoFuture.org.uk">
</search>

Vidiot Maps

The VidiotMaps.com plugin search Vidiot Maps using Google.

For Firefox, right click on this image VidiotMaps.png, and save it in the SearchPlugins directory, with same name you gave the the search plugin, but with a .png extension (i.e. if you named the plugin VidiotMaps.scr, then call the image VidiotMaps.png).

# Mozilla search plugin for VidiotMaps.com through Google
# by StarGeek
# This file is released into the public domain.
#
# Version: 0.9 (May 20, 2006)
<SEARCH version="7.1"
        name="VidiotMaps.com"
        description="Search on VidiotMaps.com"
        method="GET"
action="http://Google.com/search"
searchForm="http://Google.com"
        queryCharset="UTF-8"
>

<input name="q" user>
<input name="q" value="site:VidiotMaps.com">
</search>

External Links