Jump to content

Recommended Posts

Posted

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.

Posted

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? :o

 

 

By the way, have you mentioned this to the script authors?

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...