Customizing metasearch

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

Customizing metasearch

Post by admin50 »

I would like to customize the metasearch part of webinator so the input and results match my sites' layout and feel. Is this possible?

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

Customizing metasearch

Post by John »

Sure, you just need to edit the meta script.
John Turnbull
Thunderstone Software
admin50
Posts: 8
Joined: Sun Dec 17, 2000 2:18 pm

Customizing metasearch

Post by admin50 »

I'm trying to customize the metasearch script and I'm getting the same error: 015 /webinator/narrowmeta1:149: Tag missing closing `>' bracket

I checked line# 149 and there is a closing bracket in place...

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

Customizing metasearch

Post by John »

You may have unbalanced quotes somewhere, so it doesn't see the '>'.
John Turnbull
Thunderstone Software
admin50
Posts: 8
Joined: Sun Dec 17, 2000 2:18 pm

Customizing metasearch

Post by admin50 »

Hello, I'm getting the same error message:
015 /webinator/narrowmeta1:162: No HTML/text allowed outside functions
When I make a slight correction(wrapping text onto one line) then the error message is the same except it's one line further down. (ie.line #163)
I've included the part of the script where the error is occurring.(line #162 is noted)


<table width=500 border=0 align=center cellspacing=0 cellpadding=2>
<tr><td height=10></td></tr><tr><td colspan=2 bgcolor=black>

**line#162 below**

<font size=2 color=white face=arial><i>Top Results from $searchhost</i>
</font></td></tr><tr><td height=10></td></tr>
<timport max=10 ROW $actimports $html>
<tr><td align=right nowrap><font size=2 face=arial><b>$next .&nbsp;</b></font></td><td align=left><font size=2 face=arial><b><abstract $Title 75 dumb><$Title=$ret><upper $Title><$Title=$ret><fmt "<a href=%s> %s </a>" $Link $Title></b></font></td></tr>
<tr><td></td><td align=left><font size=2 face=arial><abstract $Abstract 78 dumb><send $ret>...</font></td></tr>
<tr><td></td><td align=left><font size=2 face=arial><small><i><abstract $ShowURL 75 dumb><send $ret></i></small><BR><fmt "<a href=%s target=_new>[open in new window]</a>" $Link>&nbsp;&nbsp;<fmt "<a href=/texis/open/translate?searchprovider=translate&q=%U target=_new>[translate]</a>" $Link></font></td></tr>
<tr><td></td><td align=left height=15></td></tr>
</timport><flush>
<if $loop eq 0><tr><td colspan=2><font size=2 face=arial><i>$searchhost found no answers for <b>"$q"</b></i> or timed out.</font></td></tr><tr><td height=15></td></tr></table></if>
<if $loop eq 10 or $loop gt 0><tr><td></td><td align=left><font size=2 face=arial><a href="$searchurllook$q" Alt="Search for $q on $searchhost">[click here]</a> to get additional results from <b>$searchhost</b></font></td></tr><tr><td height=15></td></tr></table></if>
<flush></fetch>
</a>

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

Customizing metasearch

Post by mark »

I don't see any obvious problems in the excerpt. I would suggest starting with a freshly downloaded example script. Then carefully modify that a little at a time to get the desired output.
alistvideos
Posts: 26
Joined: Tue May 01, 2001 8:58 pm

Customizing metasearch

Post by alistvideos »

Hello, I customized webinator metasearch and I got it to work. When I try to add a new customization ie.(more search engines to the same script) it won't work. The error "Tag missing closing `>' bracket" comes up in the part of the script that has not been modified. When I remove the new customized part of the script the script works(header and footer etc appear)??

Thanks in advance for your help..
User avatar
John
Site Admin
Posts: 2623
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH

Customizing metasearch

Post by John »

Most likely you have some unbalanced code in your new code, that finally finds a match further down the file. The most common causes are unmatched quotes, either single or double, mismatched <a> </a> tags, or unterminated comments.
John Turnbull
Thunderstone Software