PDA

View Full Version : Text filling Search Keywords when advanced search is selected


Ross L
01-17-2009, 08:08 PM
Hi,

On my forum (link in my signature), when I click on the "Search Button" in the navbar and select "Advanced Search", the "Search by Keyword" box is filled with this editable text:

SELECT title,dateline_from,eventid FROM event WHERE dateline_from BETWEEN 1232229417 AND 1232834217 OR 1232229417 BETWEEN dateline_from AND dateline_to ORDER BY dateline_from

Any ideas on how to stop this happen?

Cheers,

Ross

Dismounted
01-18-2009, 03:59 AM
Try adding this to the end of your config.php (this will disable all modifications):
define('DISABLE_HOOKS', true);

Ross L
01-18-2009, 08:12 AM
Hi,

Thanks for the reply. I've located the problem. It's in the sidebar (the schedule).

The fix was just to rename $query in my schedule script and it now works perfectly.

Many thanks,

Ross