11
ajaxbr
Re: dictionary modules
  • 2004/3/10 3:12

  • ajaxbr

  • Quite a regular

  • Posts: 276

  • Since: 2003/10/25


Well, although it's not actually what you asked for...
You could use a custom block with a form that has a text field (tf) and a submit button. Set form action to Quote:
http://www.google.com/search?q=define:(tf.value)
(not sure about sintax, probably needs javascript or php, but you get the idea).
You'd need to adapt your code to solve "word word" queries (usually sent as word+word).
Lots of different resources can be accessed this way:
Quote:
I believe you shouldn't have any kind of copyright issues using their content this way.

[edit]
I guess it'll be easier to put this stuff in a block than it was to get this post to display properly [/edit]

12
ajaxbr
Re: dictionary modules
  • 2004/3/10 6:49

  • ajaxbr

  • Quite a regular

  • Posts: 276

  • Since: 2003/10/25


Ok, got this working with a bit of javascript.
Check http://www.zoologia.bio.br/dicts.html.
Feel free to combine those forms, make'em pretty, etc.
My part of the job is being released to the Public Domain and I'm not liable for copyright violations or any kind of damage or mass destruction resulting from the use of this code

Now...
I guess this could be done very quickly in PHP (perhaps with XOOPSForm ) so that people with javascript off (do they still make those?) could use the service.

Perhaps this could result in a nice module:
A "Search" block, a stats one, and an admin interface with blacklisted words and stats info. Ideally, tons of search engines/databases/dictionaries should be included, with all sorts of search-engine-specific functions, and the admin would set which ones are available (user options to search using more than one would be nice). An interface to add your own search engines would be cool, but would have to be very foolproof.
The module could count queries (like in MyLinks visit.php) and have statistics of the most popular words, most searchy users , preferred engines, etc. Oh, and if there's a way to include referrer info in the queries*, people searching from your site would be spreading your url on referrer lists

*Just tried it... how about sending searches like
Quote:
search terms searchterms -"Referring Page: http://www.xoopssearch.module.com"
?
I know I would spot this kind of thing on my server logs

13
ajaxbr
Re: dictionary modules
  • 2004/4/9 1:20

  • ajaxbr

  • Quite a regular

  • Posts: 276

  • Since: 2003/10/25


Bumpty

Just to let ppl know that I've updated that dictionaries stuff . Right here.

Login

Who's Online

146 user(s) are online (105 user(s) are browsing Support Forums)


Members: 0


Guests: 146


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits