Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

BUG - In Search Results

Quote Reply
BUG - In Search Results
The Mistake is very clear and it can be observed below in the address:

http://gossamer-threads.com/...ry=textile+&nh=5

Your search returned 6 categories and 87 Links.

Pages: [<<] 1 2 3 4

Pages: [<<] 1 2 3 4
- = - = - = - = -

Links is including a last empty page.
Quote Reply
Re: BUG - In Search Results In reply to
Oops, edit DBSQL.pm sub toolbar and replace:

$url .= qq~<a href="$script_url?$next_url&nh=$next_hit">[>>]</a> ~ unless ($nh == $i);

with:

$url .= qq~<a href="$script_url?$next_url&nh=$next_hit">[>>]</a> ~ unless ($next_hit == $nh or ($nh * $maxhits > $numhits));

Cheers,

Alex
Quote Reply
Re: BUG - In Search Results In reply to
Ok! Resolved problem!

Alex now a doubt:

Some has sort things out of me to place an option for the user to go for the last page and first page of the results?

former:

[ <<| ] [<<] 1 2 3 4 5 6 [>>] [ |>> ]

where: [ <<| ] = first page and [ |>> ] it is the last page.