Gossamer Forum
Quote Reply
numbered search results
For anyone who wants to number their search results I wrote this mod a while back and figured I would document it:

In search_results.html add this <ol start=<%start%>><%link_results%></ol>
Make sure you link.html has <li> (refer to the previous post to get that done!)

and add this sub routine:

Code:

'start' => 'sub {
my $in = shift;
my $nh = $in->{nh};
my $mh = $in->{mh};
$nh = $nh * $mh - $mh;
$nh++;
return $nh;
}',


yeah... (I originally got the idea from lycos a few years ago)

Here is an example: http://www.magicdirectory.com/...i?query=david+blaine (this example probably won't exist too much longer)

Hope this entertains someone,

- Jonathan
Subject Author Views Date
Thread numbered search results jdgamble 4629 Sep 5, 2004, 3:15 AM
Thread Re: [jdgamble] numbered search results
Andy 4571 Sep 5, 2004, 3:28 AM
Thread Re: [Andy] numbered search results
jdgamble 4566 Sep 5, 2004, 3:41 AM
Thread Re: [jdgamble] numbered search results
Andy 4575 Sep 5, 2004, 4:56 AM
Thread Re: [Andy] numbered search results
ajiimd 4483 Dec 1, 2004, 10:29 AM
Thread Re: [ajiimd] numbered search results
Andy 4488 Dec 1, 2004, 10:36 AM
Post Re: [Andy] numbered search results
ajiimd 4483 Dec 1, 2004, 12:28 PM
Thread Re: [Andy] numbered search results
jdgamble 4384 Aug 14, 2005, 3:23 AM
Post Re: [jdgamble] numbered search results
webmaster33 4333 Aug 16, 2005, 9:47 PM