What is it?
My second WordPress widget is a simple one: it adds a dictionary to your site and displays words from it through ajax calls. All the words in the description are links themselves, so you can keep wandering through the words. If a word has no description, a small form is displayed to make one up.
It is not meant to be useful, so it has no search — you can only hope visitors will come up with nice, sarcastic or cryptic descriptions.
I have tried to combine all the necessary code in one file: it generates the widget class, the javascript; it also handles the server calls sent by the javascript. This widget creates a table in the database; in the options you’ll find acheckbox to delete all the entries. I think it’s relatively safe, it strips out all the html and transforms special characters to make it useless for refererspammers.
Extract the php-file and upload it to /wp-content/plugins/widgets. In the options you can set:
- widget title
- start with a random word or set the word to start with
- language (Dutch or English for now)
- email address for notification of new words
You can see it in action in my sidebar under “Wanderwords”.
Download
You can download the latest version from the WordPress Plugins Directory.
De technische dienst van 't web: bouwt sites (WordPress, html5, jQuery) en Android apps.
