PDA

View Full Version : I've "broken" the vB search - and need help


MacMorag
06-30-2005, 12:16 PM
I have a very hacked vB3.0.7 board. Somewhere along the way I have broken the search.

e.g. I create a new thread (or post). If I then subsequently search for a very specific word which is contained in the thread (or post), nothing is returned by the search. So either a/ the words aren't being written to the search index when the thread/post is created, or b/ the search function is not correctly querying the search index.

I have tried emptying/rebuilding the search index, then doing the same search. This time it will always work, so I'm sure the problem is that the words aren't being written to the search index when the thread/post is created.

I've had a look at newthread.php and newreply.php and can't see any hacks there.

Is there any other file which I may have hacked which can cause this problem?

Thanks for any pointers.

Princeton
06-30-2005, 12:39 PM
compare your template with the original ... my guess is that you have improper code or you removed a few hidden input (filelds)

MacMorag
06-30-2005, 12:59 PM
Hi Joe,

I've checked both newthread.php and newreply.php and both are fine. However, I have found a hacked file which both use: includes/functions_newpost.php

But I can't see any amendments near to where the words are added to the search index. I guess I have renamed a variable elsewhere, and functions_newpost.php hasn't been amended to reflect the new variable name.

Posting this here, in the hope that someone may recognise the symtoms and point me in the right direction to the solution.

Princeton
06-30-2005, 01:14 PM
the first place you should check is the template (html) ... ie. make sure the form hasn't been modified

MacMorag
06-30-2005, 02:12 PM
Thanks again Joe. This time I'm listening ;)

I just guessed that it was a php problem somewhere. But...

I do know that I DID make a change to the newthread template - so I'm now off to see exactly what I did wrong.

Thanks again.

Iain