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

How do I create a form to search one module only?
<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.
user

 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

 
user

 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.

 
user

 id of a module - help


edit : nevermind

 


Login

Who's Online

279 user(s) are online (2 user(s) are browsing XOOPS FAQ)


Members: 0


Guests: 279


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Did you know ?

you can add a help link into the register page.

Random question

Is there a way to display more than one module (like piCal & newBB) on the main page?