surefire Posted July 15, 2003 Posted July 15, 2003 If you are using isearch, then please make sure that results that yield more than one page are working properly. Example, I installed on a client's webste and found that a search for a common term turned up two pages of results. But it jumped right to the last page. I couldn't get it to show me the first page no matter what I did. If the search turned up just a couple of results that could display on one page, no problem. So after debugging the son of a gun for hours here's what I came up with: In isearch/index.php (the heart of the script) if(!IsSet($page)) { $page = 1; } Must be changed to $x = $_GET['page'];$page = $x; if(!IsSet($page)) { $page = 1; } Hope this helps somebody. Quote
borfast Posted July 15, 2003 Posted July 15, 2003 Thanks for the tip, I am planning on installing that script on a friend's website, so it will save me some time But why the $x? Why don't you just do $page = $_GET['page']; ? Am I missing something? By the way, have you mentioned this to the script authors? Quote
surefire Posted July 15, 2003 Author Posted July 15, 2003 You are absolutely right... this is what was left over after debugging. Just lazy and didn't rewrite it. No, I haven't mentioned it to the authors. I'll check out their website and see if I can email them. It looked like I had to sign up for a mailing list... which I really don't wanna do. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.