2
My you are going about this the wrong way! Why don't you use xoTheme to add the CSS file into the header instead. You can directly edit search.php and add something like $xoTheme->addStylesheet('search.css');
Change this code about line 96:
if ($action == 'search') {
include XOOPS_ROOT_PATH.'/header.php';
include 'include/searchform.php';
$search_form->display();
include XOOPS_ROOT_PATH.'/footer.php';
exit();
}
Change to this:
if ($action == 'search') {
include XOOPS_ROOT_PATH.'/header.php';
$xoTheme->addStylesheet('search.css');
include 'include/searchform.php';
$search_form->display();
include XOOPS_ROOT_PATH.'/footer.php';
exit();
}
Change this code about line 146:
include XOOPS_ROOT_PATH."/header.php";
echo ""
._SR_SEARCHRESULTS."n";
echo _SR_KEYWORDS.':';
Change to:
include XOOPS_ROOT_PATH."/header.php";
$xoTheme->addStylesheet('search.css');
echo ""
._SR_SEARCHRESULTS."n";
echo _SR_KEYWORDS.':';
again at line 206 (ish)
case "showall":
case 'showallbyuser':
include XOOPS_ROOT_PATH."/header.php";
$xoTheme->addStylesheet('search.css');
$module_handler =& xoops_gethandler('module');
Let me know that it works for you?