Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [demon] Search other fields - No keyword

Quote Reply
Re: [demon] Search other fields - No keyword In reply to
Should work.

search.cgi?query=&Otherfield=something

If not, then you could hack /admin/Links/User/Search.pm, and find;

Code:
# If query is set we know we are searching.
return search() if defined $args->{query} and $args->{query} =~ /\S/;

... and add below it;

Code:
return search() if defined $args->{fieldname} and $args->{fieldname} =~ /\S/;

Then try a search. It *should* work with the additional field you added now, without having to enter a query :) Dirty hack, but its been working well for ages on Ultranerds =)

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!
Subject Author Views Date
Thread Search other fields - No keyword demon 4377 Sep 8, 2004, 3:25 AM
Thread Re: [demon] Search other fields - No keyword
Andy 4271 Sep 8, 2004, 3:33 AM
Thread Re: [Andy] Search other fields - No keyword
demon 4278 Sep 8, 2004, 6:04 AM
Thread Re: [demon] Search other fields - No keyword
Andy 4252 Sep 8, 2004, 7:07 AM
Post Re: [Andy] Search other fields - No keyword
demon 4238 Sep 9, 2004, 12:41 AM
Thread Re: [Andy] Search other fields - No keyword
demon 4254 Sep 9, 2004, 3:59 AM
Post Re: [demon] Search other fields - No keyword
Andy 4245 Sep 9, 2004, 6:29 AM
Thread Re: [demon] Search other fields - No keyword
HyperTherm 4261 Sep 8, 2004, 3:54 AM
Post Re: [HyperTherm] Search other fields - No keyword
palehorse1677 4065 Nov 2, 2006, 11:09 AM