<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="home" title="HomePage" href="HomePage.html" />
<link rel="help" title="HowToUseWiki" href="HowToUseWiki.html" />
<link rel="copyright" title="GNU General Public License" href="http://www.gnu.org/copyleft/gpl.html#SEC1" />
<link rel="author" title="The PhpWiki Programming Team" href="http://phpwiki.org/ThePhpWikiProgrammingTeam" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Language" content="en" />
<meta name="robots" content="noindex,nofollow" />
<meta name="language" content="en" />
<meta name="document-type" content="Public" />
<meta name="document-rating" content="General" />
<meta name="generator" content="PhpWiki" />
<meta name="PHPWIKI_VERSION" content="1.3.14" />

<link rel="stylesheet" type="text/css" charset="iso-8859-1" href="phpwiki-printer.css" />
<title>PhpWiki - External Search Plugin</title>
</head>
<body>

<div id="header">
  
<!-- Page title -->
<h1>External Search Plugin</h1>
</div>
<div id="content">



<div class="wikitext"><h3>Synopsis</h3>
<p class="tightenable">The <a href="ExternalSearchPlugin.html" class="wiki">ExternalSearchPlugin</a> creates a form to query <a href="InterWiki.html" class="wiki">InterWiki</a>s or other
internet sites.</p>
<h3>Typical Usage</h3>
<pre class="tightenable top">
&lt;?plugin ExternalSearch
         url=&quot;InterWiki or URL&quot;
         name=&quot;button text&quot;
?&gt;</pre>
<h3>Arguments</h3>
<dl><dt class="tightenable top bottom"><strong>url</strong></dt>
<dd class="tightenable top">Specify a wiki from the <a href="InterWikiMap.html" class="wiki">InterWikiMap</a> or a url. Any text entered by
the user will be appended to the search url. The string placeholder
'<strong><tt>%s</tt></strong>' can be used to insert a search query into the url rather
than appending it.</dd>
<dt class="tightenable bottom"><strong>name</strong></dt>
<dd class="tightenable top">Text to display in the submit button. For <a href="InterWiki.html" class="wiki">InterWiki</a> sites the
default is the wiki name, for other urls the default is the text
&quot;External Search&quot;.</dd>
<dt class="tightenable bottom"><strong>formsize</strong></dt>
<dd class="tightenable top">Specify the input area size. (default: 30 characters)</dd>
<dt class="tightenable bottom"><strong>debug</strong></dt>
<dd class="tightenable top">Don't really redirect to the external site, just print out the url
that would be redirected to.</dd>
</dl>
<h3>Examples</h3>
<p class="tightenable top">Perform a full-text search on <u title="Empty link to: MeatBall" onmouseover="window.status=&quot;Empty link to: MeatBall&quot;; return true;" onmouseout="window.status='';return true;" class="wikiunknown">MeatBall</u> wiki:</p>
<div class="plugin tightenable" id="ExternalSearchPlugin"><form action="ExternalSearchPlugin.html?action=dumphtml" method="post" accept-charset="iso-8859-1">
<input type="hidden" name="pagename" value="ExternalSearchPlugin" /><input type="hidden" name="url" value="http://www.usemod.com/cgi-bin/mb.pl?search=" /><input type="text" name="s" size="30" /><input type="submit" class="button" value="MeatBall Search" /></form>
</div>
<p class="tightenable bottom">Search the PHP web site for a function name:</p>
<div class="plugin tightenable top" id="ExternalSearchPlugin2"><form action="ExternalSearchPlugin.html?action=dumphtml" method="post" accept-charset="iso-8859-1">
<input type="hidden" name="pagename" value="ExternalSearchPlugin" /><input type="hidden" name="url" value="http://www.php.net/manual-lookup.php?pattern=" /><input type="text" name="s" size="30" /><input type="submit" class="button" value="PHP Lookup" /></form>
</div>
<p class="tightenable bottom">Enter the name of a PHP function to view the documentation page:<br /></p>
<div class="plugin tightenable top" id="ExternalSearchPlugin3"><form action="ExternalSearchPlugin.html?action=dumphtml" method="post" accept-charset="iso-8859-1">
<input type="hidden" name="pagename" value="ExternalSearchPlugin" /><input type="hidden" name="url" value="http://www.php.net/%s" /><input type="text" name="s" size="30" /><input type="submit" class="button" value="php-function" /></form>
</div>
<p class="tightenable bottom">Enter any existing page name on <a href="PhpWiki.html" class="wiki">PhpWiki</a> to jump to that page:</p>
<span class="plugin" id="ExternalSearchPlugin4"><form action="ExternalSearchPlugin.html?action=dumphtml" method="post" accept-charset="iso-8859-1">
<input type="hidden" name="pagename" value="ExternalSearchPlugin" /><input type="hidden" name="url" value="http://phpwiki.sourceforge.net/phpwiki/" /><input type="text" name="s" size="30" /><input type="submit" class="button" value="PhpWiki" /></form>
</span><hr />
<p class="tightenable top bottom"><a href="PhpWikiDocumentation.html" class="wiki">PhpWikiDocumentation</a> <a href="WikiPlugin.html" class="wiki">WikiPlugin</a></p>
</div>

<div id="footer">  <hr class="printer" noshade="noshade" />
<p class="editdate">Owner: &quot;admin&quot;  Last edited on January 9, 2004 10:34 am by &quot;The PhpWiki programming team&quot;</p>
</div>

</div>
<!-- Add your Disclaimer here -->
</body>
</html>
