Is it possible that modify the search script to let it starts a new window to have google search result when my user can get any result from my search engine?
Apr 26, 2003, 12:16 PM
Enthusiast (707 posts)
Apr 26, 2003, 12:16 PM
Post #2 of 12
Views: 4314
I am not sure I understand what you mean, but you can do something like this:
http://slashdemocracy.org/...d=1&query=google
with LSQL and the Google API.
http://slashdemocracy.org/...d=1&query=google
with LSQL and the Google API.
May 22, 2004, 11:23 AM
Novice (12 posts)
May 22, 2004, 11:23 AM
Post #7 of 12
Views: 4105
I'd just like to modify search_results.html template to allow users to extend search to google (and others).
Does anyone know how this is possible ?
Thanks
--
Kestuveux.com
Does anyone know how this is possible ?
Thanks
--
Kestuveux.com
May 23, 2004, 3:01 AM
Novice (12 posts)
May 23, 2004, 3:01 AM
Post #8 of 12
Views: 4100
Ok I've modified search_results.html template using <%query%> and <%term%> tags. It works fine.
But now I wonder how I could replace the sentence "No Matching Links." when no result is found with something like :
<br>
<a href="http://www.google.com/search?num=10&query=<%term%>" target="_blank">Google</a> -
<a href="http://groups.google.com/groups?q=<%term%>" target="_blank">Google USENET</a>instead of the search.html page ?
--
Kestuveux.com
But now I wonder how I could replace the sentence "No Matching Links." when no result is found with something like :
Code:
No Matching Links, try your to search <%query%> here : <br>
<a href="http://www.google.com/search?num=10&query=<%term%>" target="_blank">Google</a> -
<a href="http://groups.google.com/groups?q=<%term%>" target="_blank">Google USENET</a>
--
Kestuveux.com
May 24, 2004, 2:19 AM
Veteran / Moderator (18436 posts)
May 24, 2004, 2:19 AM
Post #9 of 12
Views: 4152
Hi. Try the following;
show your google stuff here
<%else%>
show form and error here
<%endif%>
"contains" is a pretty cool template parser feature, which I've only just learned about :D
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!
Code:
<%if error contains "No Matching Links"%> show your google stuff here
<%else%>
show form and error here
<%endif%>
"contains" is a pretty cool template parser feature, which I've only just learned about :D
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!
May 24, 2004, 3:13 PM
Novice (12 posts)
May 24, 2004, 3:13 PM
Post #10 of 12
Views: 4075
Thanks Andy,
I've tryed it in search_results.html but it doesn't produce anything :(
Is it the right file to modify ?
My knowledge in programming is very poor :)
--
Kestuveux.com
I've tryed it in search_results.html but it doesn't produce anything :(
Is it the right file to modify ?
My knowledge in programming is very poor :)
--
Kestuveux.com
May 25, 2004, 12:37 AM
Veteran / Moderator (18436 posts)
May 25, 2004, 12:37 AM
Post #11 of 12
Views: 4098
Nah, you need to put it in search.html, as this is where <%error%> is shown if no results were found :0
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!
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!