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

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


Members: 0


Guests: 259


more...

Donat-O-Meter

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

Did you know ?

MySQL 4.1 upwards uses an authentication protocol based on a password hashing algorithm that is incompatible with that used by older clients, including PHP 4.

Random question

Hi there,
I'm a biginer of XOOPS. I've just installed Apache1.33, Php4.4, and MySQL4.1.14 on my PC running WindowsXP(SP2).
I can see the localhost or 127.0.0.1
in the browser (IE). And I can see the localhost/index.php indicating index of/ module/news. Then, I can log in mysql with root and password, and I also checked mysqld alive.
But I don't know why I can't
see XOOPS.
Is anything wrong? I may have a problem on mySQL. Anybody knows how to configure mySQL with other way, please help.
And about mySQL, I have another question. I can't see any icon of mySQL in systemtray. And I'm sure winmysql is running, but it dosen't give me any window. When I click it at mysql>bin, command pronpt pop itself up and then gone automatically. Is this proper way?

Sorry, my message is long, but I really need your help.

Thank you in advance.