smartfaq
SmartFAQ is developed by The SmartFactory (http://www.smartfactory.ca), a division of InBox Solutions (http://www.inboxsolutions.net)

How do I create a form to search one module only?
Requested and Answered by Carnuke on 2005/1/18 13:04:12 (7337 reads)
<form style="margin-bottom: 0px; margin-top: 0px;" action="<{$xoops_url}>/search.php" method="post">
<
input class="srchinput" name="query" type="text" size="15" />
<
input type="hidden" name="action" value="results" />
<
input type="hidden" name="mids[]" value="5" />
<
input name="Submit" type="image" value="Search" src="<{$xoops_imageurl}>srchbut.gif" align="middle" width="44" height="22" />
</
form>



Replace 5 with the id of the module you want searched.
(Thanks Mith, for that snippet)


The comments are owned by the author. We aren't responsible for their content.
  • Not too shy to talk

 Re: How do I create a form to search one module only?

Thanks for this tip,
But i have a question,
In the results page , in the foot XOOPS show the search form allowing to the user to make a new search in ALL the modules,

How do I modify that to show only one module as option to the new search? (the same module where i made the search before)


Thanks in advance!
Best Regards
Javier

 
  • Just can't stay away

 Re: How do I create a form to search one module only?

If you want to finally remove the search inside a module edit xoops_version.php, look for hassearch and change the value to 0 and update the module.

Bad effect: noone can search now the module.

 
  • Quite a regular

 id of a module - help

edit : nevermind