Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Great thing: Using altavista mod without LWP

Quote Reply
Great thing: Using altavista mod without LWP
Hi, I am very very interested to search links and another big search engine like altavista with one click. The altavista mod is great, but my provider doesn't give me LWP, so

I FOUNT OUT: The sript PLEBIUSVISTA
http://www.plebius.org/cgi-bin/article.pl?aid=000091&q=
is exact we need, but I have no perl-knowledge, so can anybody help me to integrate this in the altavista-mod,
so that the results apear in the links search-results.html-Template.

The cgi-file lies on http://www.guxme.de/plebiusvista.txt
as .txt-file

The search works as follwing: (example on my site)
http://www.guxme.de/plebiusvista.pl?q=auto

IS IT possible to integrate that direct to search cgi as a sub and only to have some more variables for the search-results-template?

The pl-file has the formating included, maybe we can use the variable $output direct?

Hoping for response, Chris

Quote Reply
Re: Great thing: Using altavista mod without LWP In reply to
Does your hosting company offer IO::Socket module???

You need this module installed in order to use the code hack you found.

Regards,

Eliot Lee
Quote Reply
Re: Great thing: Using altavista mod without LWP In reply to
This looks great....I haven't been able to utilize the altavista mod because of the lack LWP---but it looks like I have the IO module installed.......sweet! Actually, Eliot it looks like he also has the socket---the script is already on his server and running (I think??). Anyway, I'm going to see if I can come up with a way to integrate this...if I figure it out, I'll be sure to post it.

Quote Reply
Re: Great thing: Using altavista mod without LWP In reply to
That was NOT a question for the original poster...but for anyone who is interested in this code hack!

Wink

You need to have IO::Sockets installed in your server in order for this code hack!

My point...it requires a Perl module that that you need to verify that you have before wasting time installing the code hack.

Wink

Regards,

Eliot Lee
Quote Reply
Re: Great thing: Using altavista mod without LWP In reply to
Interesting....then what should I do to the av-mod after having IO::SOCKET ??

Quote Reply
Re: Great thing: Using altavista mod without LWP In reply to
Hi Eliot,

yes it is installed on my sever, I used a little scipt
www.guxme.de/cgi-bin/perl-check.cgi

My provider wont install LWP and the other script seems very simple???

Chris

Quote Reply
Re: Great thing: Using altavista mod without LWP In reply to
Hi Domenic,

do you looked after that script? Do you think it's possible to use with seach.cgi?

Chris

Quote Reply
Re: Great thing: Using altavista mod without LWP In reply to
Actually, I just ended up redirecting to that script, which works almost as welll. The only downfall is that you are not able to give your users the option to search both your directory and altavista at the same time. For my purposes, that's all I really need. Anyway, Bmxer created the redirection codes you need to place in your search.cgi file and they are located in the resource center.

Quote Reply
Re: Great thing: Using altavista mod without LWP In reply to
And these redirection codes can be found at:

http://lookhard.hypermart.net/links-mods/

And you could probably use the Mod listed in this Thread to have two listings...your directory and the Web via the Altavista Mod listed in this Thread.

All you have to do is copy the sub that does the searching in this Mod, then make the codes look similar to the one that jdgamble wrote for the LWP version, using variables like $link_results2. If I didn't have LWP, I would probably work on hacking this Mod, but since I do...not a priority project for me.

Smile

Regards,

Eliot Lee
Quote Reply
Re: Great thing: Using altavista mod without LWP In reply to
It's http://lookhard.hypermart.net/links-mods/ ;)

Quote Reply
Re: Great thing: Using altavista mod without LWP In reply to
Right...and I have edited my previous posting.

WinkTongue

Regards,

Eliot Lee