My site has a lot of bizzare searches performed on it and the search results from the mod_search module are too vague, sometimes if the search phrase is part of a word contained. Therefore I needed a solution similar to the com_search page.
I have edited the mod_search.php file in the modules directory - the resultant module is as follows:
Code:
<?php
defined( '_VALID_MOS' ) or die( 'Direct Access to this location
is not allowed.' );
$width = intval( $params->get( 'width', 35 ) );
$text = $params->get( 'text', _SEARCH_BOX );
$moduleclass_sfx = $params->get( 'moduleclass_sfx' );
?>
<form style="margin-bottom: 0;" action="
<?php echo sefRelToAbs("index.php"); ?>" method="post">
<div align="left"
class="search<?php echo $moduleclass_sfx; ?>">
<input alt="search" class="inputbox"
type="text" name="searchword"
size="<?php echo $width; ?>"
value="<?php echo $text; ?>"
onblur="if(this.value=='')
this.value='<?php echo $text; ?>';"
onfocus="if(this.value=='<?php echo $text; ?>')
this.value='';" /><br>
<input type="radio" name="searchphrase" value="any" />Any
<input type="radio" name="searchphrase" value="all" checked="checked"/>All
<input type="radio" name="searchphrase" value="exact" />Exact
<input type="hidden" name="option" value="search" />
</div>
</form> Maybe someone else could find this useful?
BonoEstente