Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Branded Search: Possible?

Quote Reply
Branded Search: Possible?
I was wondering if this is possible:

I am providing our search codes to users of personal sites to embed in their pages. Thus, they can put our site's box on theirs to search for related sites. As it is, the results will come up on ourdomain.com as if the person searched from our site.

Is there any way to allow users to embed the search results, using a template or something, so that they appear within John Doe's site?

Quote Reply
Re: Branded Search: Possible? In reply to
Use hidden fields in the search form.

Example:

Code:

<input type="hidden" name="atitle" value="INSERT TITLE">
<input type="hidden" name="asite" value="INSERT URL">
<input type="hidden" name="bgcolor" value="INSERT COLOR">
<input type="hidden" name="logo" value="INSERT URL OF LOGO">
<input type="hidden" name="link" value="INSERT LINK COLOR">
<input type="hidden" name="text" value="INSERT TEXT COLOR">


Then in your search_results.html file, add the following codes:

For Links and Title

Code:

<%if asite%>
<%if atitle%>
<a href="<%asite%>"><%atitle%></a>
<%endif%>
<%endif%>


Then in create a new header file called searchheader.txt. Replace <%include header.txt%> with <%include searchheader.txt%> in the search_results.html file.

Then in this new template file, add the following codes:

Code:

<%if bgcolor%>
<body bgcolor="<%bgcolor%>">
<%endif%>
<%if bgcolor%>
<%if text%>
<%if link%>
<body bgcolor="<%bgcolor%>" text="<%text%>" link="<%link%>">
<%endif%>
<%endif%>
<%endif%>


AND the following codes for the Logo:

Code:

<%if logo%>
<%logo%>
<%endif%>
<%ifnot logo%>
<img src="/path/to/yourlogo.gif">
<%endif%>


Hope this helps.

Regards,

Eliot

Quote Reply
Re: Branded Search: Possible? In reply to
I think someone has done something like that for the 2.0 version, and maybe for this one as well. Since it's an external call to your search.cgi, it shouldn't be too hard -- as long as you don't check referrers.

You could actually probably just give them the html for your standard search box, using fully qualified domain/url's.

I've done this as a simple link from my site1 to my site2 and vice versa.

Again, you can't check referrers, or you'd have to list every site that has your search box on it, which sort of defeats the purpose.

http://www.postcards.com
FAQ: http://www.postcards.com/FAQ/LinkSQL/

Quote Reply
Re: Branded Search: Possible? In reply to
Collision.... I gotta have a button on my screen that lights up when Eliot is posting ;)

http://www.postcards.com
FAQ: http://www.postcards.com/FAQ/LinkSQL/