Gossamer Forum
Quote Reply
Change search URL
In the search.cgi when search more than one word the URL for the search join the word with + like this search.cgi?query=aaa+bbb+ccc
Is there a way the search will know to work with "-" instead "+" so it will be like this
search.cgi?query=aaa-bbb-ccc
Quote Reply
Re: [nir] Change search URL In reply to
Suimple answer - no =) GT::CGI processes + as a "joining", but - would be treated literally as a -

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Change search URL In reply to
Can we insert code in the head of the Search.pm that set the query from - to +
What you think?

Quote Reply
Re: [nir] Change search URL In reply to
You could maybe try:

Code:
my $new_query = $IN->param('query');
$new_query =~ s/\-/+/g;
$IN->param( 'query' => $new_query );

Probably need it in /Links/User/Search.pm, and not search.cgi (as I don't think we have access to $IN in search.cgi)

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Change search URL In reply to
I get eroor
Category '500..html' does not exist
Quote Reply
Re: [nir] Change search URL In reply to
Show me the lines of code you put it between.

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Change search URL In reply to
In what sub I need to insert the code?
Quote Reply
Re: [nir] Change search URL In reply to
In /Links/User/Search.pm, find:

Code:
sub handle {
#--------------------------------------------------------------------------------
# Determine whether we are displaying the search form, or doing a
# search.
#


..and add those new lines after that.

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Change search URL In reply to
Thanks
There is a small bug
If in the URL this is the code query=aaa+bbb the query id "aaa bbb"
But in the URL is query=aaa-bbb the query id "aaa+bbb" when it need to be the "aaa bbb"

Quote Reply
Re: [nir] Change search URL In reply to
Sorry, not really got time to test out any more - in middle of a complex job :(

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [nir] Change search URL In reply to
Thanks its work, it greatSmile
Just delete the +
my $new_query = $IN->param('query'); $new_query =~ s/\-/ /g; $IN->param( 'query' => $new_query );
Quote Reply
Re: [nir] Change search URL In reply to
Cool Cool

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates