Page 1 of 2 12 LastLast
Results 1 to 15 of 22

Thread: Hi, suggestion to improve the search feature

  1. #1
    pirate heartbreaker The Man's Avatar
    Join Date
    Mar 2002
    Location
    Sarasota, FL
    Posts
    10,946

    Default Hi, suggestion to improve the search feature

    Add this:

    Code:
    // aaron's uber-1337 search enhancement hax //
    
          if (($bbuserinfo[maxposts] != -1) and ($bbuserinfo[maxposts] != 0)) {
    				$maxposts = $bbuserinfo[maxposts];
    			}
          if (($searchresult[replycount]+1)>$maxposts and $linktopages) {
    
            $totalpages=($searchresult[replycount]+1)/$maxposts;
            if ($totalpages!=intval($totalpages)) {
              $totalpages=intval($totalpages)+1;
            }
    
            $acurpage=0;
            $pagenumbers='';
            while ($acurpage++<$totalpages) {
              if ($acurpage==$maxmultipage) {
                eval("\$pagenumbers .= \"".gettemplate('forumdisplay_multipagenav_more')."\";");
                break;
              } else {
                eval("\$pagenumbers .= \"".gettemplate('forumdisplay_multipagenav_pagenumber')."\";");
              }
            }
            eval("\$searchresult[pagenav] = \"".gettemplate('forumdisplay_multipagenav')."\";");
          } else {
            $searchresult[pagenav]='';
          }
    
    // aaron's uber-1337 search enhancement hax //
    into search.php above this:

    Code:
    	  $frmjmpsel[search] = " selected class=\"fjsel\"";
    	  makeforumjump();
          eval ("\$searchresultbits .= \"".gettemplate("$searchtemplatebit")."\";");
        }
    Then, you will need to edit the searchresultbit_threadonly template and change this line:

    <td bgcolor="{firstaltcolor}" align="left"><normalfont>$searchresult[gotonew] $searchresult[typeprefix] $paperclip<a href="showthread.php?s=$session[sessionhash]&threadid=$searchresult[threadid]$highlightwords">$searchresult[threadtitle]</a></normalfont></td>
    to this:

    <td bgcolor="{firstaltcolor}" align="left"><normalfont>$searchresult[gotonew] $searchresult[typeprefix] $paperclip<a href="showthread.php?s=$session[sessionhash]&threadid=$searchresult[threadid]$highlightwords">$searchresult[threadtitle]</a> </normalfont><smallfont>$searchresult[pagenav]</smallfont></td>
    This will cause thread-only search results to return page numbers, which is really quite useful for any message board that gets an appreciable amount of traffic. Check http://216.97.98.128/forum/search.php?action=getdaily for an example of this nifty feature in action. It's not really much of a complicated hack, and I think the benefits it returns are bloody well worth it. :P

    Note: I just wrote this hack myself. ;)
    Last edited by The Man; 10-02-2003 at 12:18 AM.
    Don't delay, add The Pimp today! Don't delay, add The Pimp today!
    Fool’s Gold tlsfflast.fm (warning: album artwork may sometimes be nsfw)

  2. #2
    Not responsible for WWI Citizen Bleys's Avatar
    Join Date
    Feb 2000
    Location
    The Wired
    Posts
    8,502
    Articles
    7
    Blog Entries
    60

    FFXIV Character

    Bleys Maynard (Sargatanas)
    Contributions
    • Former Administrator
    • Former Cid's Knight

    Default

    er, I didn't know it was you until I actually saw your signature.

    Die.

  3. #3
    pirate heartbreaker The Man's Avatar
    Join Date
    Mar 2002
    Location
    Sarasota, FL
    Posts
    10,946

    Default

    rofl, who else would post elaborate hack suggestions like this? xP
    Don't delay, add The Pimp today! Don't delay, add The Pimp today!
    Fool’s Gold tlsfflast.fm (warning: album artwork may sometimes be nsfw)

  4. #4
    Hypnotising you crono_logical's Avatar
    Join Date
    May 2001
    Location
    Back in Time
    Posts
    9,313
    Contributions
    • Former Administrator
    • Former Cid's Knight

    Default

    I saw the word aaron in the comment and glossed over the rest of the post
    Problems playing downloaded videos? Try CCCP


  5. #5
    ..a Russian mountain cat. Yamaneko's Avatar
    Join Date
    Aug 2001
    Location
    Los Angeles, CA
    Posts
    15,927
    Contributions
    • Former Administrator
    • Former Cid's Knight

    Default Re: Hi, suggestion to improve the search feature

    Originally posted by Deathjester
    Note: I just wrote this hack myself.
    We can't use it then. :ezpimp:

    Edit: Damn you, add The Pimp!

  6. #6
    pirate heartbreaker The Man's Avatar
    Join Date
    Mar 2002
    Location
    Sarasota, FL
    Posts
    10,946

    Default

    Yams makes an even better suggestion than mine. :ezpimp:
    Don't delay, add The Pimp today! Don't delay, add The Pimp today!
    Fool’s Gold tlsfflast.fm (warning: album artwork may sometimes be nsfw)

  7. #7
    Not responsible for WWI Citizen Bleys's Avatar
    Join Date
    Feb 2000
    Location
    The Wired
    Posts
    8,502
    Articles
    7
    Blog Entries
    60

    FFXIV Character

    Bleys Maynard (Sargatanas)
    Contributions
    • Former Administrator
    • Former Cid's Knight

    Default

    Bugger the pimp in the rectum with a diode.

  8. #8
    pirate heartbreaker The Man's Avatar
    Join Date
    Mar 2002
    Location
    Sarasota, FL
    Posts
    10,946

    Default

    >:O
    Don't delay, add The Pimp today! Don't delay, add The Pimp today!
    Fool’s Gold tlsfflast.fm (warning: album artwork may sometimes be nsfw)

  9. #9
    Not responsible for WWI Citizen Bleys's Avatar
    Join Date
    Feb 2000
    Location
    The Wired
    Posts
    8,502
    Articles
    7
    Blog Entries
    60

    FFXIV Character

    Bleys Maynard (Sargatanas)
    Contributions
    • Former Administrator
    • Former Cid's Knight

    Default

    Try me. Just try em/

  10. #10
    pirate heartbreaker The Man's Avatar
    Join Date
    Mar 2002
    Location
    Sarasota, FL
    Posts
    10,946

    Default

    *tries Bleys*
    Don't delay, add The Pimp today! Don't delay, add The Pimp today!
    Fool’s Gold tlsfflast.fm (warning: album artwork may sometimes be nsfw)

  11. #11
    Not responsible for WWI Citizen Bleys's Avatar
    Join Date
    Feb 2000
    Location
    The Wired
    Posts
    8,502
    Articles
    7
    Blog Entries
    60

    FFXIV Character

    Bleys Maynard (Sargatanas)
    Contributions
    • Former Administrator
    • Former Cid's Knight

    Default

    There's always a riesen for the chocolate chew

  12. #12
    ..a Russian mountain cat. Yamaneko's Avatar
    Join Date
    Aug 2001
    Location
    Los Angeles, CA
    Posts
    15,927
    Contributions
    • Former Administrator
    • Former Cid's Knight

    Default

    This hack is great! Oh wait... it hasn't been installed.

  13. #13
    pirate heartbreaker The Man's Avatar
    Join Date
    Mar 2002
    Location
    Sarasota, FL
    Posts
    10,946

    Thumbs up @ Yams

    Don't delay, add The Pimp today! Don't delay, add The Pimp today!
    Fool’s Gold tlsfflast.fm (warning: album artwork may sometimes be nsfw)

  14. #14
    Recognized Member m4tt's Avatar
    Join Date
    Sep 2000
    Location
    San Diego, Ca
    Posts
    5,134
    Contributions
    • Former Cid's Knight

    Default

    And it WON'T BE
    Mr Thou! Mr Thou!

  15. #15
    lomas de chapultepec Recognized Member eestlinc's Avatar
    Join Date
    Jun 2000
    Location
    brooklyn
    Posts
    17,552
    Contributions
    • Former Cid's Knight

    Default

    actually, it sounds like a great hack. it is ridiculously annoying to wade through eight page threads just to find the specific post you searched for. I know it highlights the searched words, but still. Yes, I do these searches on a semi-regular basis.

Posting Permissions

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