Results 1 to 6 of 6

Thread: Show BOTH results Directory and WEB

  1. #1
    Join Date
    Jul 2003
    Posts
    24

    Default Show BOTH results Directory and WEB

    Does any one know how I can have both The Directory results and the Web results to appear in the same page? Does anyone know how?

    Thanks in advance...

  2. #2
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    are you referring to the search results
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  3. #3
    Join Date
    Jul 2003
    Posts
    24

    Default

    Yeah have both results on the same page.

  4. #4
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    it might be "do-able" but one of the big problems that I see ( and I am far from an expert ) is the pagination of the results. Right now there are 2 separate processes - one to query the INDEXU database and one to query google. Each does its own pagination so it is not possibe to "combine" the two results ( which was my first thought ).

    but it might be possible to combine the two processes into one process and then paginate that single result.
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  5. #5
    Join Date
    Jul 2003
    Posts
    24

    Default

    How can we paginate that single result?

  6. #6
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    here is what I would try

    delete the section
    Code:
    if($opt==2) {
    GoogleSearch();
    exit();
    }
    somewhere about line 307 make the following change
    Code:
      $link = $links_obj->Display();
    GoogleSearch2();
      $link = $links . $link_google
    
      $pagination = $links_obj->pagination;
    I'm not sure that $link = $links . $link_google works but try it...

    make a copy of the GoogleSearch function in search.php and rename it GoogleSearch2().

    change GoogleSearch() so that it returns the value $link_google.

    in GoogleSearch2 you will need to remove the code dealing with pagination and the displaytemplate.

    You will need to deal with the difference between the google_rows.html and row.html

    I'm sure there will other things to deal with. always is

    hey, its worth a try. might even work.

    post a msg if you have a problem.


    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •