|
How To Pages
FTP Help |
Setup |
Spreadsheet/Database |
Spreadsheet and Header Files |
FAQ
|
Options |
Misc. Stuff (Ideas, Hints, Etc.) |
Pull Down Menus (1st in a series) | Help
mailto's and whatnot
"I notice that some search engines are charging advertisers for "Priority"
placement on the Search Results Page. Can Web Search do this?"
Absolutely!
Try the 2 forms below using the following terms one at a time and see the
results from both forms.
photo software digital
Regular Listing
All you need to do to convert Web Search into a priority listing search engine is add one more column to your spreadsheet file. Do NOT give this column a name as you have for other columns. Simply leave the header blank. When a customer chooses a "Priority Listing" option, simply type in the letter "z" in the appropriate column with their listing. The key to how the listing becomes a "priority listing" is shown in the following form. Notice the placement of the following code.
(Col4 just happens to be this database's format, any column number will work)<INPUT TYPE="hidden" NAME="sort" VALUE="col4rev">The search results are being sorted by what appears in column 4 and in reverse alphabetical order. The letter "z" was chosen simply to avoid conflicts with other listings. Typing in the letter "w" in a listing's column 4 would simply assign that listing a lower rating than one given the letter "z". This does not effect how the actual search is carried out. A listing must still have appropriate keywords to appear as a result. This just brings that listing to the top should the appropriate keywords be entered.You can also use numbers to sort the priority listings. In your sample database you'll notice a column of numbers. Most are given the number "5". To give a listing a higher rating, simply give it a higher number. I.E. "9" The listing will now appear at the top of the results as long as the submit form has the following tag:
<INPUT TYPE="hidden" NAME="sort" VALUE="col4numrev">
<FORM ACTION="http://www.web-search.com/cgi-bin/person2.cgi"> Match <SELECT NAME="allcomp"> <OPTION VALUE=""> the exact phrase <OPTION VALUE="any"> any of the words <OPTION VALUE="all"> all of the words </SELECT> <INPUT NAME="all"> <INPUT TYPE="hidden" NAME="link1" VALUE="2"> <INPUT TYPE="hidden" NAME="sort" VALUE="col4rev"> <INPUT TYPE="submit"> <INPUT TYPE="hidden" NAME="1sp-license" VALUE="websearch"> <input type="hidden" NAME="begin" VALUE="<TR>"> <input type="hidden" NAME="middle" VALUE="none"> <input type="hidden" NAME="end" VALUE="</TR>"> <input type="hidden" NAME="top" VALUE="<TABLE border=5 cellpadding=5>"> <input type="hidden" NAME="bottom" VALUE="</TABLE>"> </FORM>
full.cgiand your spreadsheet file is
full.cgi.txtthen just put the new "footer" HTML in a file called
full.cgi.foot.txtSee this text example (Also on Disk 1)
or how it actually looks!
Sorting is normally alphabetical.
<INPUT TYPE="hidden" NAME="sort" VALUE="col4">To sort in reversealphabetical:
<INPUT TYPE="hidden" NAME="sort" VALUE="col4rev">If columns of numbers, Numerical sorting:
<INPUT TYPE="hidden" NAME="sort" VALUE="col4num">Reverse numerical sorting:
<INPUT TYPE="hidden" NAME="sort" VALUE="col4numrev">And lastly....random sorting:
<INPUT TYPE="hidden" NAME="sort" VALUE="col4random">Here is the search form for Web Search showing WHERE this tag is placed.
<FORM ACTION="http://www.web-search.com/cgi-local/websearch.cgi" METHOD="post"> <font size="+1" color="blue"><B>Match</B></font> <SELECT NAME="comp1col3"> <OPTION VALUE="any"> any of the words <OPTION VALUE="all"> all of the words <OPTION VALUE=""> the exact phrase </SELECT> <INPUT NAME="col1col3" VALUE=""> <INPUT TYPE="hidden" NAME="link2" VALUE="2"> <INPUT TYPE="hidden" NAME="sort" VALUE="col4rev"> <INPUT TYPE="submit" VALUE="Submit"> <INPUT TYPE="reset" VALUE="Reset"> <INPUT TYPE="hidden" NAME="1sp-license" VALUE="websearch"> </FORM>
<FORM ACTION="http://www.web-search.com/cgi-bin/person2.cgi"> Match <SELECT NAME="allcomp"> <OPTION VALUE=""> the exact phrase <OPTION VALUE="any"> any of the words <OPTION VALUE="all"> all of the words </SELECT> <INPUT NAME="all" VALUE="Maine"> <INPUT TYPE="hidden" NAME="link1" VALUE="2"> <INPUT TYPE="hidden" NAME="sort" VALUE="col4rev"> <INPUT TYPE="submit"> <INPUT TYPE="hidden" NAME="1sp-license" VALUE="websearch"> </FORM>
<FORM ACTION="http://www.web-search.com/cgi-bin/person2.cgi"> Match <SELECT NAME="allcomp"> <OPTION VALUE=""> the exact phrase <OPTION VALUE="any"> any of the words <OPTION VALUE="all"> all of the words </SELECT> <INPUT NAME="all" VALUE="Maine"> <INPUT TYPE="hidden" NAME="link1" VALUE="2"> <INPUT TYPE="hidden" NAME="sort" VALUE="col4rev"> <INPUT TYPE="submit"> <INPUT TYPE="hidden" NAME="1sp-license" VALUE="websearch"> <input type="hidden" NAME="begin" VALUE="<TR>"> <input type="hidden" NAME="middle" VALUE="none"> <input type="hidden" NAME="end" VALUE="</TR>"> <input type="hidden" NAME="top" VALUE="<TABLE border=5 cellpadding=5>"> <input type="hidden" NAME="bottom" VALUE="</TABLE>"> </FORM>
<FORM ACTION="http://www.web-search.com/cgi-bin/person2.cgi"> Match <SELECT NAME="allcomp"> <OPTION VALUE=""> the exact phrase <OPTION VALUE="any"> any of the words <OPTION VALUE="all"> all of the words </SELECT> <INPUT NAME="all" VALUE="Maine"> <INPUT TYPE="hidden" NAME="link1" VALUE="2"> <INPUT TYPE="hidden" NAME="sort" VALUE="col4rev"> <INPUT TYPE="submit"> <INPUT TYPE="hidden" NAME="1sp-license" VALUE="websearch"> <input type="hidden" NAME="begin" VALUE="<DT>"> <input type="hidden" NAME="middle" VALUE="<DD>"> <input type="hidden" NAME="end" VALUE="<HR>"> <input type="hidden" NAME="top" VALUE="<DL>"> <input type="hidden" NAME="bottom" VALUE="</DL>"> </FORM>
Note: Although we don't recommend the following options, you may find a specific need for these options depending on the content of your spreadsheet/database.Check back often as we will continue to do more refining on this code.
To make searching of column 3 case sensitive (e.g. "WEB" won't match"web"): (cm: "case matters".)
<INPUT TYPE="hidden" NAME="comp3" VALUE="cm">To match only on "whole words" (e.g.,"game" won't match "games"):
<INPUT TYPE="hidden" NAME="comp3" VALUE="ww">You can combine these two options:
<INPUT TYPE="hidden" NAME="comp3" VALUE="cmww"> [or] <INPUT TYPE="hidden" NAME="comp3" VALUE="wwcm">Placement of Code
<FORM ACTION="http://www.web-search.com/cgi-bin/person2.cgi"> Match <SELECT NAME="allcomp"> <OPTION VALUE=""> the exact phrase <OPTION VALUE="any"> any of the words <OPTION VALUE="all"> all of the words </SELECT> <INPUT NAME="all" VALUE="Maine"> <INPUT TYPE="hidden" NAME="comp3" VALUE="ww"> <INPUT TYPE="hidden" NAME="link1" VALUE="2"> <INPUT TYPE="hidden" NAME="sort" VALUE="col4rev"> <INPUT TYPE="submit"> <INPUT TYPE="hidden" NAME="1sp-license" VALUE="websearch"> <input type="hidden" NAME="begin" VALUE="<DT>"> <input type="hidden" NAME="middle" VALUE="<DD>"> <input type="hidden" NAME="end" VALUE="<HR>"> <input type="hidden" NAME="top" VALUE="<DL>"> <input type="hidden" NAME="bottom" VALUE="</DL>"> </FORM>
<FORM ACTION="http://www.web-search.com/cgi-bin/person2.cgi"> Match <SELECT NAME="allcomp"> <OPTION VALUE=""> the exact phrase <OPTION VALUE="any"> any of the words <OPTION VALUE="all"> all of the words </SELECT> <INPUT NAME="all" VALUE="software"> <INPUT TYPE="hidden" NAME="link1" VALUE="2"> <INPUT TYPE="hidden" NAME="snap" VALUE="UL"> <INPUT TYPE="submit"> <INPUT TYPE="hidden" NAME="1sp-license" VALUE="websearch"> <input type="hidden" NAME="begin" VALUE="<DT>"> <input type="hidden" NAME="middle" VALUE="<DD>"> <input type="hidden" NAME="end" VALUE="<BR> <IMG SRC=http://www.web-search.com/rain_lin.gif>"> <input type="hidden" NAME="top" VALUE="<DL>"> <input type="hidden" NAME="bottom" VALUE="</DL>"> </FORM>
As we discussed earlier in "Stacking the Deck", it's very easy to link an advertiser to a keyword search.Try the word "software" then "ftp", then both. Copy and Paste this Code Into your selected page
In the following we'll show you how to combine this "Priority Listing" with returning a banner ad hotlinked to the advertiser's home page.
<FORM ACTION="http://www.web-search.com/cgi-bin/person2.cgi"> Match <SELECT NAME="allcomp"> <OPTION VALUE="any"> any of the words <OPTION VALUE=""> the exact phrase <OPTION VALUE="all"> all of the words </SELECT> <INPUT NAME="all"> <INPUT TYPE="hidden" NAME="link1" VALUE="2"> <INPUT TYPE="hidden" NAME="snap" VALUE="UL"> <INPUT TYPE="hidden" NAME="sort" VALUE="col4rev"> <INPUT TYPE="submit"> <INPUT TYPE="hidden" NAME="1sp-license" VALUE="websearch"> <input type="hidden" NAME="begin" VALUE="<DT>"> <input type="hidden" NAME="middle" VALUE="<DD>"> <input type="hidden" NAME="end" VALUE="<HR>"> <input type="hidden" NAME="top" VALUE="<DL>"> <input type="hidden" NAME="bottom" VALUE="</DL>"> </FORM>All that has taken place here is an image file is replacing the Text Name of the Company in the Title Column.
Instead of entering a Text Link in the appropriate title cell, like (Web-Search)
just use the following format without quotation marks.
<IMG SRC=http://www.web-search.com/images/webse.gif>
The image location MUST be a full url path.
Instead of a simple text link, a small image will appear instead.
Example
Web-Search Copyright © 1996,
Web-Search.Com Inc. All rights reserved.