Gossamer Forum
Quote Reply
Does it exist?
I'm just wondering...I know we have the option to select how many links are shown per page on the category page....but what about search pages? I set it to 5 links, and the categories work....but not the search page (it was showing over 10). Does anyone know where this setting is, if it even exists?

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Does it exist? In reply to
search_maxhits

On the search options section of the admin?


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Quote Reply
Re: [pugdog] Does it exist? In reply to
Sorry..I don't think I made myself clear enough. What I am trying to do is get 5 links per page on search results...i.e if we have 20 results, it has 4 pages of search results.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Does it exist? In reply to
Erm, just pass mh=5 into the search script =)
Quote Reply
Re: [Andy] Does it exist? In reply to
From the top of Search.pm

Code:
# First get our search options.
my $args = $IN->get_hash;
$args->{query} =~ s,^\s*|\s*$,,g;
$args->{bool} = (defined $args->{bool} and $args->{bool} =~ /^(and|or)$/i) ? uc $1 : $CFG->{search_bool};
$args->{nh} = (defined $args->{nh} and $args->{nh} =~ /^(\d+)$/) ? $1 : 1;
$args->{mh} = (defined $args->{mh} and $args->{mh} =~ /^(10|25|50|100)$/) ? $1 : $CFG->{search_maxhits};
$args->{substring} = defined $args->{substring} ? $args->{substring} : $CFG->{search_substring};
$args->{so} = (defined $args->{so} and $args->{so} =~ /^(asc|desc)$/i ? $1 : '');
$args->{sb} and ($args->{sb} =~ /^[\w\s,]+$/ or ($args->{sb} = ''));


So, both Paul and my suggestion *should* work. If it's not, then there is a bug somewhere.

That statement looks *way* too complicated to be working correctly <G>


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Quote Reply
Re: [pugdog] Does it exist? In reply to
Ah..thats why it doesn't work :p

>>>^(10|25|50|100)$/<<<

I've edited this now to allow for 5...Smile Thanks for pointing me in the right direction :)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Does it exist? In reply to
You'd be better changing it to [1-9]\d? for better flexibility.