Is there a way to Exclude a module from being searched and from being shown in the advanced search option, i.e no check box in 'Search In'?

Requested by Martyboy and Answered by Shine on 2005/11/25 8:46:56

Is there a way to Exclude a module from being searched and from being shown in the advanced search option, i.e no check box in 'Search In'?

Yes there is.
For example I'll take the mylinks module.

Open the file:
xoops_version.php from the mylinks module and look for the code:

// Search
$modversion['hasSearch'] = 1;
$modversion['search']['file'] = "include/search.inc.php";
$modversion['search']['func'] = "mylinks_search";


By changing:
$modversion['hasSearch'] = [b]0[/b];

this module will be excluded from being searched and shown within the advanced search option.

This Q&A was found on XOOPS Web Application System : https://xoops.org/modules/smartfaq/faq.php?faqid=435