Customiing Results Page

admin50
Posts: 8
Joined: Sun Dec 17, 2000 2:18 pm

Customiing Results Page

Post by admin50 »

Hello, i'm getting the same error message as above:
015 /webinator/search:825: Unterminated <A> function
215 /webinator/search:205: started here

The problem is I don't have a line #825 my last line is #670??
Can you please explain where I might have gone wrong.

Thanks, Paul
User avatar
John
Site Admin
Posts: 2623
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH

Customiing Results Page

Post by John »

The most common reason reason for the "Unterminated <A> function" would be that you put an <A> tag of some nature to be output, and did not balance with a </A>. The place to start would be the function that begins at line 205.
John Turnbull
Thunderstone Software
admin50
Posts: 8
Joined: Sun Dec 17, 2000 2:18 pm

Customiing Results Page

Post by admin50 »

New problem - Now I get this error:
015 /webinator/search:67: No HTML/text allowed outside functions
Checked line #67 and it's the same(html code) as the line before it and the line after it..

Thanks, Paul
admin50
Posts: 8
Joined: Sun Dec 17, 2000 2:18 pm

Customiing Results Page

Post by admin50 »

Another question: For clarity - Am I suppose to place my header and footer code(html) into the search script -precisely after the !------------------------ HTML at the top of every page ---------------------> point?
Can you please confirm where my header and footer code would go.

Thanks, Paul
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Customiing Results Page

Post by mark »

Include that line of the script and a few lines around it in your message. Also indicate which one is 67.
admin50
Posts: 8
Joined: Sun Dec 17, 2000 2:18 pm

Customiing Results Page

Post by admin50 »

Here is the block of code: It's a nav map: line 67 is below under the link www.searchhawk.com/phone.htm
I added the closing </area> code even though I don;t think it's necessary??

<MAP NAME="NAVBAR">
<AREA HREF="http://www.searchhawk.com/index.htm" ALT="Back to main Page" SHAPE="rect" COORDS="3,0,88,24"></a></area>
<AREA HREF="http://searchhawk.com/weather.htm" ALT="Local Weather" SHAPE="rect" COORDS="101,0,180,22"></a></area>
<AREA HREF="http://www.searchhawk.com/news.htm" ALT="Daily News Stories" SHAPE="rect" COORDS="190,0,275,22"></a></area>
<AREA HREF="http://www.searchhawk.com/stocks.htm" ALT="Stock Quotes" SHAPE="rect" COORDS="288,0,365,22"></a></area>

*****LINE #67*****
<AREA HREF="http://www.searchhawk.com/phone.htm" ALT="Telephone Look Up" SHAPE="rect" COORDS="381,0,460,22"></a></area>

<AREA HREF="http://www.searchhawk.com/maps.htm" ALT="Maps & Directions" SHAPE="rect" COORDS="475,0,552,22"></a></area>
<AREA HREF="http://www.searchhawk.com/email.htm" ALT="Read All Your Email" SHAPE="rect" COORDS="572,0,655,22"></a></area></MAP>
User avatar
John
Site Admin
Posts: 2623
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH

Customiing Results Page

Post by John »

The </a> before the </area> is probably the problem, as you don't have a corresponding <a> tag, and one of the </a> is being treated as the end of the function. Since it's not the first one you probably have a few unclosed <a> tags before that.
John Turnbull
Thunderstone Software
admin50
Posts: 8
Joined: Sun Dec 17, 2000 2:18 pm

Customiing Results Page

Post by admin50 »

Hello again, I just want to make sure I'm doing the right thing here. What I want to do is make a customized metasearch engine for my site using webinator. Do I need to edit the /search file that came with the webinator package or work solely on the /meta/ and /main.html files. Some clarification would be most appreciated.

Thanks, Paul
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Customiing Results Page

Post by mark »

If all you want is a meta search all you need is the meta search demo script.

BTW, main.html is not a file. main is a function within the script.
resume.robot
Posts: 68
Joined: Sat Jan 13, 2001 1:23 am

Customiing Results Page

Post by resume.robot »

We want search results to be displayed with a different color background for each result, so the page will have alternating colored stripes.

In plain html it can be done like this:

xyz
<div style="background: ffffff ">
xyz
<div style="background: cccccc">
xyz
<div style="background: ccffcc">
xyz<br>


We are using webinator with a modified altavista clone.

After the sql select count and select routines, this vortex code prints the individual result:
====================================================
<IF $loop eq 0> <!-- If this is the first hit -->
<FONT SIZE=-1>

Documents $start - <if $end gt $fullquerycount>$fullquerycount of <else>$end of about</if><fmt " %kd " $fullquerycount>
matching the query, best matches first. <BR><BR></FONT>
<DL>
</IF>
<DT><A HREF="$Url" target="_blank"><STRONG><IF $Title eq "">-- No Title --<ELSE>$Title</IF></STRONG></A>
<DD><abstract $Body 360>$'ret'...<BR>
<CITE><A HREF="$Url" target="_blank">$Url</A>

</CITE><P>
====================================================

Can someone show me how to create the varying background colors?

Thanks

Mike Clark
robot@resumerobot.com