Gossamer Forum
Home : Products : Links 2.0 : Customization :

Now search these (23) engines!

Quote Reply
Now search these (23) engines!
Add to your search_results.html and search_error.html templates (or whatever name you have for these)

Borrowed from Open Directory with a few added. Smile

All working with the exception of eGroups (second term doesn't show for both <%term%> and <%query%> )

Code:
<p><small>
<b>Not finding what you want? Search for "<font color="#FF000"><%query%></font>" on these other Search Engines</b><br>
</small></p>
<center>
<table width="95%" cellpadding=0 cellspacing=0><tr><td valign="top" halign="center"><small>
<a target="new" href="http://www.alltheweb.com/cgi-bin/search?type=all&query=<%term%>">All the Web</a> -
<a target="new" href="http://www.altavista.com/cgi-bin/query?q=<%term%>">AltaVista</a> -
<a target="new" href="http://www.amazon.com/exec/obidos/external-search/?keyword=<%term%>&tag=googlinc05">Amazon</a> -
<a target="new" href="http://netfind2.aol.com/dirsearch.adp?query=<%term%>">AOL Netfind</a> -
<a target="new" href="http://askjeeves.com/main/askJeeves.asp?origin=0&qSource=4&site_name=Jeeves&metasearch=yes&ask=<%term%>">Ask Jeeves</a> -
<a target="new" href="http://search.dejanews.com/dnquery.xp?QRY=<%term%>%29&maxhits=20&ST=QS&format=terse&DBS=2">DejaNews</a> -
<a target="new" href="http://rover.dogpile.com/texis/search?q=<%term%>&fs=web&to=thirty">Dogpile</a> -
<a target="new" href="http://www.egroups.com/info/top?murl=/info/mainarcsearch%3fquery%3d<%term%>">eGroups</a> -
<a target="new" href="http://www.euroferret.com/cgi-bin/ferret?DB=ferret&P=<%term%>&B=&THRESHOLD=0">EuroFerret</a> -
<a target="new" href="http://www.euroseek.net/query?iflang=uk&query=<%term%>&domain=world&lang=world">EuroSeek</a> -
<a target="new" href="http://search.excite.com/search.gw?search=<%term%>">Excite</a> -
<a target="new" href="http://www.google.com/search?num=10&query=<%term%>">Google</a> -
<a target="new" href="http://www.goto.com/d/search/?Keywords=<%term%>">GoTo</a> -
<a target="new" href="http://www.hotbot.com/?MT=<%term%>">HotBot</a> -
<a target="new" href="http://www.infind.com/infind/infind.exe?query=<%term%>">Infind</a> -
<a target="new" href="http://www.infoseek.com/Titles?qt=<%term%>">Infoseek</a> -
<a target="new" href="http://www.lycos.com/cgi-bin/pursuit?matchmode=and&cat=lycos&query=<%term%>">Lycos</a> -
<a target="new" href="http://search.go2net.com/crawler?general=<%term%>&method=0">MetaCrawler</a> -
<a target="new" href="http://search.netscape.com/cgi-bin/search?search=<%term%>">Netscape</a> -
<a target="new" href="http://www.northernlight.com/nlquery.fcg?qr=<%term%>">Northern Light</a> -
<a target="new" href="http://search.dmoz.org/cgi-bin/search?search=<%term%>">Open Directory</a> -
<a target="new" href="http://www.webcrawler.com/cgi-bin/WebQuery?searchText=<%term%>">WebCrawler</a> -
<a target="new" href="http://search.yahoo.com/bin/search?p=<%term%>">Yahoo</a></small></td></tr>
</table><br>

Add this to have the words re-display in your search text area.
Code:
<input type="text" size=34 name="query" value="<%query%>">

This has a few added (27 to be exact - egroups deleted): I don't use templates:
$term for non-templates and <%term%> for templates.

Code:
<a target="new" href="http://www.alltheweb.com/cgi-bin/search?type=all&query=$term">All the Web</a> |
<a target="new" href="http://www.altavista.com/cgi-bin/query?q=$term">AltaVista</a> |
<a target="new" href="http://www.amazon.com/exec/obidos/external-search/?keyword=$term&tag=googlinc05">Amazon</a> |
<a target="new" href="http://netfind2.aol.com/dirsearch.adp?query=$term">AOL Netfind</a> |
<a target="new" href="http://askjeeves.com/main/askJeeves.asp?origin=0&qSource=4&site_name=Jeeves&metasearch=yes&ask=$term">Ask Jeeves</a> |
<a target="new" href="http://www.directhit.com/fcgi-bin/DirectHitWeb.fcg?service=web&type=srch&fmt=html&template=search&qry=$term">Direct Hit</a> |
<a target="new" href="http://rover.dogpile.com/texis/search?q=$term&fs=web&to=thirty">Dogpile</a> |
<a target="new" href="http://www.euroferret.com/cgi-bin/ferret?DB=ferret&P=$term&B=&THRESHOLD=0">EuroFerret</a> |
<a target="new" href="http://www.euroseek.net/query?iflang=uk&query=$term&domain=world&lang=world">EuroSeek</a> |
<a target="new" href="http://search.excite.com/search.gw?search=$term">Excite</a> |
<a target="new" href="http://www.google.com/search?num=10&query=$term">Google</a> |
<a target="new" href="http://www.goto.com/d/search/?Keywords=$term">GoTo</a> |
<a target="new" href="http://www.hotbot.com/?MT=$term">HotBot</a> |
<a target="new" href="http://www.infind.com/infind/infind.exe?query=$term">Infind</a> |
<a target="new" href="http://www.infoseek.com/Titles?qt=$term">Infoseek</a> |
<a target="new" href="http://www.looksmart.com/r?comefrom=nethome-search&key=$term&search=1">Looksmart</a> |
<a target="new" href="http://www.lycos.com/cgi-bin/pursuit?matchmode=and&cat=lycos&query=$term">Lycos</a> |
<a target="new" href="http://magellan.excite.com/search.gw?search=$term&look=magellan">Magellan</a> |
<a target="new" href="http://search.go2net.com/crawler?general=$term&method=0">MetaCrawler</a> |
<a target="new" href="http://search.msn.com/results.asp?q=$term&co=20&RS=CHECKED&FORM=SMCB&ba=0&v=1&un=doc">MSN</a> |
<a target="new" href="http://search.netscape.com/cgi-bin/search?search=$term">Netscape</a> |
<a target="new" href="http://www.northernlight.com/nlquery.fcg?qr=$term">Northern Light</a> |
<a target="new" href="http://search.dmoz.org/cgi-bin/search?search=$term">Open Directory</a> |
<a target="new" href="http://www.snap.com/search/directory/results/1,61,-0,00.html?tag=st.v2.fdsb.1&keyword=$term">Snap</a> |
<a target="new" href="http://search.thunderstone.com/texis/websearch/?q=$term&max=20&dsbu=1">Thunder Stone</a> |
<a target="new" href="http://www.webcrawler.com/cgi-bin/WebQuery?searchText=$term">WebCrawler</a> |
<a target="new" href="http://search.yahoo.com/bin/search?p=$term">Yahoo</a>


[This message has been edited by wesley (edited January 24, 2000).]
Quote Reply
Re: Now search these (23) engines! In reply to
Hi,

this version does not need that much space:
Code:
<script language="JavaScript">
<!-- Hide from old browsers
function surfto(form) {
if (!form){
var myindex=form.dest.selectedIndex
window.open(form.dest.options[myindex].value, "", "");
}
}
//-->
</SCRIPT>
<FORM NAME="myform">
<SELECT NAME="dest" SIZE=1>
<OPTION SELECTED VALUE="">--- Choose One ---</OPTION>
<OPTION VALUE="http://www.alltheweb.com/cgi-bin/search?type=all&query=<%term%>">All the Web</OPTION>
|
|
|
<OPTION VALUE="http://search.yahoo.com/bin/search?p=<%term%>">Yahoo</a>
</SELECT>
<INPUT TYPE="BUTTON" VALUE="GO NOW!" onClick="surfto(this.form)">
but it does need Javascript Wink

Glide
Quote Reply
Re: Now search these (23) engines! In reply to
I like this idea, except I changed mine to a select menu with a go button to take up less space. Smile Nice work wesley! Smile
Quote Reply
Re: Now search these (23) engines! In reply to
Thanks a lot - very nice

------------------
HumorLinks Comedy Search, Humor DVD and Video Store

humorlinks.com

humorlinks@humorlinks.com
Quote Reply
Re: Now search these (23) engines! In reply to
I would also recommend not using _blank, because it will open many multiple windows. The new window should be named something like target=_search.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: Now search these (23) engines! In reply to
Good point!
Made changes above. Smile
Quote Reply
Re: Now search these (23) engines! In reply to
Another suggestion is to use a perl based redirection script, like the following:

Code:
#!/usr/bin/perl
#############################################
# Redirection script
# redirect.cgi
#############################################

read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});

@pairs = split(/&/, $buffer);

foreach $pair (@pairs)
{
($name, $value) = split(/=/, $pair);
$value =~ tr/+/ /;
$value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;

$value =~ s/~!/ ~!/g;
$FORM{$name} = $value;
}

#READ DATA.
$url = $FORM{'goto'};
print ("Location: $url\n");
print ("Content-type: text/html\n\n");

Save this into a file named something like redirect.cgi or redirect.pl depending on the appropriate files that your Hosting Company allows. Also make sure that the Perl Path in the first line of the script is correct. Then change the file permissions to 755. Upload the file into your cgi-bin directory.

Then use the codes that wesley has provided for the drop-down menu, with the exception of adding form codes, like the following:

Code:
<form action="/cgi-bin/redirect.cgi" method="POST" target="_search">
<select name="goto" size="1">
<option value="">Choose one of the following</option>
<option value="http://www.alltheweb.com/cgi-bin/search?type=all&query=<%term%>">All the Web</option>
<option value="http://www.altavista.com/cgi-bin/query?q=<%term%>">Altavista</option>
</select>
<input type="submit" name="I1" value="Search">
</form>

These codes can be added to your search_results.html template file. Also you could add these codes to your category.html file and instead of using <%term%>, you can use <%category_clean%>. To see this type of application in action, go to the following URL:

anthrotech.com/resources/Applied_Anthro/

Hope this helps.

Regards,


------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us

[This message has been edited by Eliot (edited October 03, 1999).]

[This message has been edited by Eliot (edited October 03, 1999).]

[This message has been edited by Eliot (edited October 05, 1999).]
Quote Reply
Re: Now search these (23) engines! In reply to
Excuse me but i don't find where i must write this :
<input type="text" size=34 name="query" value="<%query%>">

Thanx...
Quote Reply
Re: Now search these (23) engines! In reply to
Cyberben,

Hello. You put those codes in the search_results.html template file.

If you have the small one line search box in your search_results.html template file, then you replace the codes for the text field with the codes you have.

Hope this makes sense.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: Now search these (23) engines! In reply to
If your using site_html.pl, these are the necessary changes.
Under the heading:

Search Results

Delete $site_menu
and replace with:

Code:
<center>
<form action="$build_search_url" method="GET">
<h2>Search</h2>
<div class="margin">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td><strong class="search">Looking for something in particular?</strong></td></tr>
<tr><td><input type="text" size=15 name="query" value="<%query%>"> <input type=submit value="Search!"></td></tr>
<tr><td><small class="more"><a href="$build_search_url">More search options</a></small></td></tr>
</table>
</div>
</form>
</center>

<then the code above>

[This message has been edited by wesley (edited October 07, 1999).]
Quote Reply
Re: Now search these (23) engines! In reply to
I'm a bit confused here. When I add Wesley's code into my search_results.html and try it, it opens another frame ("search") as in my IE browser when I click on one of the engines, the browser goes into search mode and opens up a window.

Also, isn't there a way to implement these engines directly into the single line search field and search both the Links HTML pages and also like Alta Vista and other whatever engines and display them accordingly?

Thank you!

Quote Reply
Re: Now search these (23) engines! In reply to
Yeah it's meant to open up a new 'window' and search the specified search engine, externally. This cannot bring their search results into your links site.

I'm sure this can be done, ie Altavista, with all engines but there may be legal implications and such.

You cay it opens a "frame" I take it your using frames in your site, or you may be talking abbout that silly frame IE5 uses for searching, if these search engines are opening up in a frame portion of your site, you may want to try target="_new" or target="search" without the underscore '_'

I think,
Good luck
Quote Reply
Re: Now search these (23) engines! In reply to
target="new"

IE 5 has that stupid search frame, so this will prevent it from opening that useless frame!

As you can see I am not a big fan of IE5, go Netscape!
Quote Reply
Re: Now search these (23) engines! In reply to
Hey Eliot (or anyone else),

Do you have a text file version of your redirect.cgi posted anywhere? I tried cutting and pasting it from this thread into notepad, but everything was jumbled together and may be what is causing problems for me (500 server errors).

I made sure to move the # so theyre not commenting out the code, and I chmod'ed to 755, and the drop menu is pointing to the cgi file.

I looked in the Links mod section. If anyone has it posted somewhere, I'd appreciate it if you could reply with the URL.
Quote Reply
Re: Now search these (23) engines! In reply to
I have uploaded a text file of the redirect.cgi file:


Here are some helpful tips:

1) Make sure that you save this file as either .pl or .cgi.

2) Change the Perl Path in the first line of the file to your Perl Path.

3) Change the permission of this file to 755 or (rwx-r-x-r-x).

Hope this helps.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us

[This message has been edited by Eliot (edited October 22, 1999).]
Quote Reply
Re: Now search these (23) engines! In reply to
this is some code for a really simple redirect script..

Code:
#!/usr/local/bin/perl

$ENV{'QUERY_STRING'} =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;

print "Location: $ENV{'QUERY_STRING'}\n\n";

too simple?..

to use.. you can just type:

http://url.to/redirect.cgi?http://www.widgetz.com/

of course.. it would be better to type

http://url.to/redirect.cgi?http%3A%2F%2Fwww.pdamania.com%2F

but not like i care..

jerry

[This message has been edited by widgetz (edited October 22, 1999).]
Quote Reply
Re: Now search these (23) engines! In reply to
Thanks Eliot, Jerry.

You two are some of the most helpul posters on here.

- Luis
Quote Reply
Re: Now search these (23) engines! In reply to
Just trying to help others....Jerry is the real Perl expert here...and to think he is only in ninth grade. He is going to be making a six figure income by the time he is twenty and may be the next Bill Gates...so, watch out.

Smile

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us