On Wed, 09 Mar 2005 17:03:15 +0000, Alison Russell alisonrussellireland@hotmail.com wrote:
I want to add a Google search to my Wiki system, similar to the Google link displayed by http://creatures.wikicities.com/wiki/Main_Page What code do I need to do this?
The code used on the Creatures Wikicity is:
<div id="p-search" class="portlet"> <h5><label for="searchInput"><?php $this->msg('search') ?></h5> <div class="pBody"> <form name="searchform" action="<?php $this->text('searchaction') ?>" id="searchform"> <a href="http://www.wikicities.com/"> <img src="http://www.wikicities.com/images/a/ae/Wikicities_75x32.png" border="0" alt="Wikicities" align="middle"></img></a> <input id="searchInput" name="search" type="text" <?php if($this->haveMsg('accesskey-search')) { ?>accesskey="<?php $this->msg('accesskey-search') ?>"<?php } if( isset( $this->data['search'] ) ) { ?> value="<?php $this->text('search') ?>"<?php } ?> /> <input type='submit' name="go" class="searchButton" id="searchGoButton" value="<?php $this->msg('go') ?>" /> <input type='submit' name="fulltext" class="searchButton" value="<?php $this->msg('search') ?>" /> </form> </div> <div class="pBody"> <!-- Search Google --> <form method="get" action="http://www.google.com/custom" target="_top" class="searchform"> <a href="http://www.google.com/"> <img src="http://www.google.com/logos/Logo_25wht.gif" border="0" alt="Google" align="middle"></img></a> <br/> <input type="text" name="q" size="16" maxlength="255" value=""></input> <input type="submit" name="sa" value="Search" class="searchButton"></input> <input type="hidden" name="client" value="pub-123"></input> <input type="hidden" name="forid" value="1"></input> <input type="hidden" name="ie" value="UTF-8"></input> <input type="hidden" name="oe" value="UTF-8"></input> <input type="hidden" name="cof" value="GALT:#008000;123:1;"></input> <input type="hidden" name="hl" value="en"></input> </form> <!-- Search Google --> </div>
</div>