Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Mod for Gossamer Threads Links2

Quote Reply
Mod for Gossamer Threads Links2
I saw the Mod for altavista search engine but is there a Mod for Gossamer Threads Links2

I have two site running Links2, i want my siteA is able to search siteB and SiteA at the same time
Can some help me
Quote Reply
Re: Mod for Gossamer Threads Links2 In reply to
What you can do is use the Search Redirection Mod found at the following URL:

lookhard.hypermart.net/links-mods/

You will have to do the following:

1) Create two search.cgi for LINKS. One would require the first .def file and the second script would require the second .def file.

2) Then you would change the query string found in the new sub-routine taken from the Mod mentioned above to the query string of your second search script. Call this new-sub...sub second_search.

3) Then you would have to use the following codes at the top of your sub main routine in the first search.cgi script:

Code:
($in{'mode'} eq "2") and &second_search ();

4) Then put the following codes in your search form codes:

Code:
<select name="mode">
<option value="">Links Directory #1</option>
<option value="2">Links Directory #2</option>
</select>

NOTE: This is a quick and dirty solution that will allow users to select which database they want to search. To search both databases at the same time would be quite complicated and you would have to hack MANY files in LINKS to get it to work.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.