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

Search toolbar

Quote Reply
Search toolbar
Hi, another problem on search... on the toolbar.

I made a keyword search, this is the result:

- Your search returned 18 categories and 116 Links.

Pages: [<<] 1 2 3 4 5 6 7 8 9 10 11 12 [>>]

All if I stay until 1st to 11th page; but in the 12th the toolbar not change, and still has the [>>], so you can go in the 13th (!) page with non results...

Only modify I made in search.cgi is change

($in->param('mh') =~ /^(10|25|50|100)$/) ? ($mh = $1) : ($mh = 10);

to have 10 results for page...

Thanks if someone can help me.

JS

Quote Reply
Re: Search toolbar In reply to
Maybe I find solution!
On DBSQL.pm, on sub toolbar subroutine, at the end, modify

$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 ($nh == ($i -1));

You can (better) change [(&)gt;(&)gt;] with [>>].
(remove ())
Cheers!