A Neat Little Dictionary Script

Snitz™ Forums 2000
https://forum.snitz.com/forumTopic/Posts/67086?pagenum=1
05 November 2025, 09:06

Topic


leatherlips
A Neat Little Dictionary Script
18 May 2008, 21:12


I found a neat little dictionary script that you can very easily add to your forum.
What it does is allow you to simply double click ANY word in your forum (except for links) and it will pop up a dictionary page (Merriam Webster) with the definition of the word complete with an audio pronunciation! The great thing is that you can also use it to double click in the post box where you enter your message to get the right spelling of a word if you need it. It is very simple to add to your forum.
You can test it out on my test forum. You can log in as demo/demo. Just double click on any non-linked word.
First download the dictionary.js file and upload it to your forum.
Then in inc_header.asp around line 231 look for:

'## END - REMOVAL, MODIFICATION OR CIRCUMVENTING THIS CODE WILL VIOLATE THE SNITZ FORUMS 2000 LICENSE AGREEMENT

After that add:

Response.Write "<script src=""dictionary.js""></script>"

That's it!
Let me know what you think. It may not be useful for a lot of forums but it could come in handy. smile<

 

Replies ...


leatherlips
18 May 2008, 21:51


Playing around with this a little more, you could also instead make it open up Wikipedia.
To do that, download the wikipedia.js file and upload it to your forum.
Then in inc_header.asp around line 231 look for:

'## END - REMOVAL, MODIFICATION OR CIRCUMVENTING THIS CODE WILL VIOLATE THE SNITZ FORUMS 2000 LICENSE AGREEMENT

After that add:

Response.Write "<script src=""wikipedia.js""></script>"

The default language is set to english, but if you want a different language open up the wikipedia.js file and look for line 21. Look for the section that says:

http://en.wikipedia.org/wiki/Special:Search?search=

Change the part in red to the language you prefer. If you go to www.wikipedia.org you can hover over the different language links and notice the first two letters of the URL. Put those letters in place of the ones above in red.
For example, if you wanted French you would change it to:

http://fr.wikipedia.org/wiki/Special:Search?search=

That's it!<
thelodger
19 May 2008, 15:00


What a great forum addition, nice one, my members will love it.<
leatherlips
19 May 2008, 15:48


I have another idea for this script that could be really useful in my forum but I am stuck. blackeye
If I were to type in the URL for a search term for my forum and have it show the results, how would I do that?
For example: Say I want to search for snitz. I would like to go something like this:

http://www.myforum.com/search.asp=snitz

However, it does not work. Can this be done? If it can, then my idea will be pretty cool. tongue<
Bassman
19 May 2008, 16:22


This is so good bigsmile thanks

edit: one little problem, if you make a neuw post and whant to select a word to make it bold ore so, it brings you to wiki to.

Moving the .js to forum.asp works great, still includes the quik response to move the user.<
thelodger
19 May 2008, 17:53


I am told it doesnt work in the Browser "Safari" or Firefox but only in the post box mode(when your typing a new post or are replying to one.)<
leatherlips
19 May 2008, 21:08


I have noticed that it does not work in Safari. But for me it works in both IE and FF. I'm still working with it. I have some other ideas that may help and be more useful for the forum. However, I need to know if it is possible to have a search work from the URL as in my question above.<
© 2000-2021 Snitz™ Communications