Members: 16,996
Threads: 38,846
Posts: 159,391
Online: 23

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse

Go Back   Mambers.com > Archive > Mambo 4.5 > Mambo 4.5 'How Do I' Questions

 
 
LinkBack Thread Tools Display Modes
Old 13.01.2005, 13:21   #1 (permalink)
Baby Mamber
 
Join Date: Aug 2004
Posts: 20
be2004 is on a distinguished road
Default Solution: How do I give the choice all|any|exact for search box in a module?

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
be2004 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
I give up! Events and login module CSS alignment question! bebbetufs Template Discussions 5 10.11.2004 14:51
Box fürs Module xister Module 6 11.06.2004 14:11


All times are GMT +2. The time now is 05:56.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.