MyBB Community Forums

Full Version: Dictionary and Thesarus MyCode
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
These MyCodes will look up the specified word on Dictionary.com/Thesaurus.com.

Dictionary:

Title:
Dictionary

Short Description:
This will put a link to dictionary.com, searching the word you enter.

Regular Expression:
\[dict\](.*?)\[/dict\]

Replacement:
<a href="http://dictionary.reference.com/browse/$1">$1</a>

What it will come out as:
Input:
[dict]test[/dict]

Output:
test

Thesaurus:

Title:
Thesaurus

Short Description:
This will put a link to thesaurus.com, searching the word you enter.

Regular Expression:
\[thes\](.*?)\[/thes\]

Replacement:
<a href="http://thesaurus.reference.com/browse/$1">$1</a>

What it will come out as:
Input:
[thes]test[/thes]

Output:
test
Pretty nice code. You may consider shortening the tags as writing [dictionary]test[/dictionary] is about as long as actually getting the link yourself. :p
okay, howabout [dict]test[/dict]?

Edit: Edited the post.
That looks better. Good job.
Thanks Smile