1
rickylarson
Results of search engine not displayed with theme template

I'm using the search engine php that's installed with XOOPS and results are ok but are shown on a plain page instead of the theme's template. The results are the same regardless of which theme I use. I have not modified any theme html so I don't suspect a 'theme' problem per se but perhaps a corrupt search.php (which means I am probably in the wrong forum) but a half hour of searching for something on the forum yields nothing and I will start here. The situation has existed for quite a while as all 3 of my backups are with the same behavior. I obviously don't want to re-install XOOPS to fix this unless no alternative. Feedback appreciated.

2
pdajunkee
Re: Results of search engine not displayed with theme template
  • 2006/4/8 0:22

  • pdajunkee

  • Just popping in

  • Posts: 53

  • Since: 2004/9/3 2


I'm encountering the exact same problem. Did you find a fix?

Only the part in the Search.PHP after <H4> is being displayed at the top of my page.

All I see is

{module name}
article username
article username
article username
article username
show all results

SEARCH BOX

The remaining part of my page is my theme, but the content is empty.


I'm guessing I have a bad template? But which one is it? It seems like all the HTML for output is within Search.PHP.

3
McDonald
Re: Results of search engine not displayed with theme template
  • 2006/4/8 0:30

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


About what theme are we talking here?
Is your website online so visitors of this forum can see it?
Some more detail/information is needed to get any good advice from others.

4
pdajunkee
Re: Results of search engine not displayed with theme template
  • 2006/4/12 21:39

  • pdajunkee

  • Just popping in

  • Posts: 53

  • Since: 2004/9/3 2


Thanks McDonald for stepping up to help. You are right, I didn't give much info to help.

I was able to find the source of my problem and fix it, sort of. I'll describe my solution, just in case anyone else is searching for a solution to this problem. Or if anyone has a better solution, please let me know.

I am running a module called Mantis. Search results kicked out by Mantis were being written above my theme. I found a suggestion here that showed me how to remove a module form the Search engine by editing the xoops_version.php within the Mantis module folder.

I found the following code:

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


and changed it to:

// Search
[b]$modversion['hasSearch'] = 0;[/b]
$modversion['search']['file'] = "include/search.inc.php";
$modversion['search']['func'] = "mantis_search";


This removed Matis results from my global search. Fortunately I don't need them.

Login

Who's Online

254 user(s) are online (164 user(s) are browsing Support Forums)


Members: 0


Guests: 254


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!

Latest GitHub Commits