Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Search enhancement and sharing idea..

Quote Reply
Search enhancement and sharing idea..
Hi

I want an easy way to users to place a search box on their site for us, YET keeping the header and footer design.

- I have created a header and footer column in the users table.

- The user will add a will add a hidden field to their search form:

<INPUT type="hidden" name="" value="somename">

- Now the trouble is: I need a way to get search.cgi upon recieving the search_Username input to pull that users header and footer and use them insteed of ours, orelse return ours.

I hope that was claer..Any ideas on this?

May be someone has a better way to do it all together.
Regards
KaTaBd

Users plug In - Multi Search And Remote Search plug in - WebRing plug in - Muslims Directory
Quote Reply
Re: [katabd] Search enhancement and sharing idea.. In reply to
I did something for our site but did not push it too far yet. I think it might be interesting for you to use:

Code:


#!/usr/bin/perl
use strict;
use CGI();
use LWP::Simple;
my $in = new CGI;

####################################################################
# Enter the path and filename of the script here
####################################################################
my $HOME_URL = "http://www.mydomain.com/path/to/cgi";

####################################################################
# Enter your personal header here
####################################################################
my $HEADER =
qq~
<html>
<head>
</head>
<body>
<p>Your header</p>
~;

####################################################################
# Enter your personal footer here
####################################################################
my $FOOTER =
qq~
<p>Your footer</p>
</body>
</html>
~;

####################################################################
# Please do not make any changes here
####################################################################
my $g = $in->param('g') || undef;
my $url = "http://www.yourdomain.com/...mp;t=partner&d=1";
my $content = get($url);
$content =~ s/http:\/\/www.yourdomain.com\/page.cgi/$HOME_URL/g;
$content =~ s/&d=1//g;
$content =~ s/&t=partner//g;

print $in->header();
print qq~
$HEADER
$content
$FOOTER
~;
exit;
Quote Reply
Re: [katabd] Search enhancement and sharing idea.. In reply to
... where mydomain.com is your customers domain, yourdomain is yourdomain where you have linkssql and you have created one easy template set within /templates/partner

Regards

Niko
Quote Reply
Re: [el noe] Search enhancement and sharing idea.. In reply to
Thanks

I am looking through many ideas to see which one fits my site contents the most.

I will publish the solution when I have it.
Regards
KaTaBd

Users plug In - Multi Search And Remote Search plug in - WebRing plug in - Muslims Directory
Quote Reply
Re: [katabd] Search enhancement and sharing idea.. In reply to
Here is a solution to give your members how have a web site a way to place a search engine on their site with them keeping the header links to themself.

See:

http://www.2muslims.com/...gi?answer=1064378606
Regards
KaTaBd

Users plug In - Multi Search And Remote Search plug in - WebRing plug in - Muslims Directory
Quote Reply
Re: [katabd] Search enhancement and sharing idea.. In reply to
Hi there -

I tested out the code and the results are still appearing on your site.

I don't know if this might help, but I've attached two files that Virginia (GT) sent me for remote searching. I haven't offered it to my users yet, but it seems pretty straight forward. The users will have to make their own results template, which actually gives them full graphical control.
Quote Reply
Re: [SSmeredith] Search enhancement and sharing idea.. In reply to
Hi

We have explored that idea.. it is great..

Our whole target to still get a piece of the ad sales of the search page by keeping the footer under our control.. The remote_search script could not offer that to us..

Thanks a lot any ways.
Regards
KaTaBd

Users plug In - Multi Search And Remote Search plug in - WebRing plug in - Muslims Directory
Quote Reply
Re: [katabd] Search enhancement and sharing idea.. In reply to
I see...

For us it wouldn't be a problem because we use the PPC plugin in which we would get click thrus.