1 (edited by Emancipator 2006-11-21 21:01)

Topic: Integrate Forum Search on Mainpage

I am trying to integrate the search into the mainpage of my site. So i have put a form, and am then passing the data to the search.php page. Or at least im trying to. When I do something like this.

http://www.website.com/Forum/search.php?action=search&keywords=<? echo $keywords; ?>&author=&forum=-1&search_in=all&sort_by=0

I get Error: Unable to fetch search results. It doesnt appear that im not allowed to call the page this way, can somebody point me to how i can make this work?  Thanks guys..

!

Re: Integrate Forum Search on Mainpage

Does it work when you have only one keyword rather than many? You may need to use urlencode() on $keywords.

You should also try enabling debug mode in order to see exactly what the error is.

Looking for a certain modification for your forum? Please take a look here before posting.

Re: Integrate Forum Search on Mainpage

yeah its not the $keywords variable, i have manually fired it with 1 word, I see where your coming from though. The error its spitting out is a punbb error and im not 100% clear on search..php usage and why its doing that.

!

Re: Integrate Forum Search on Mainpage

Like I said, enable debug mode to get a clearer idea of what the error actually is.

Looking for a certain modification for your forum? Please take a look here before posting.

Re: Integrate Forum Search on Mainpage

within punbb? How exactly do I do that? Nobody knows how to call search remotely?

!

Re: Integrate Forum Search on Mainpage

Emancipator wrote:

within punbb? How exactly do I do that?

http://punbb.org/forums/viewtopic.php?id=2658

Looking for a certain modification for your forum? Please take a look here before posting.

Re: Integrate Forum Search on Mainpage

Tks, much more helpfull.

!