Random Words is another completely futile plugin which aims to bring entropy and randomness into your pages and even posts.
Ever got bored by comment pages with the same "Joe said", "Jim said" all page long ? Wouldn't it be funnier and more attractive if it printed something randomly from "thought", "wrote", "said" and "commented" ? Here we are.
Random Words is a Wordpress Plugin allowing you to manage a number of lists with any items, and display random items from these lists. Everything is managed from within the Admin interface of your blog, in a very neat interface. It stores its data in two fields of Wordpress' built-in Options table, and displays random entries at no cost (no extra SQL query used to fetch items)
Get it
ozh-random-words.zip
Extract and upload to your blog, preserving directory structure if any.
Note: download counter here and stats on wordpress.org may differ and reflect the number of downloads before this plugin was hosted on the plugin directory
Activate it, go the options page and follow the instructions.
Use it
Use the following syntax :
- In .php documents :
<?php wp_ozh_randomwords('name_of_list') ?>
If you want the result returned but not echoed, add a second parameter with value zero :
<?php $test = wp_ozh_randomwords('name_of_list', 0) ?> - In Posts or Pages :
[random:name_of_list]
I don't see any reasonable use for this in posts, but well, I had to do it :)
Watch it
For example, I created a list named "you_are" with the following entries :
-
a nice person
-
a <em>porn star</em>
-
so <em>cute</em> !
-
<span style="color:purple">teh master of teh intarweb</span>
-
reloading the page
-
pretty. Well, sort of.
In this page I wrote :
-
I see, I see ... that you are [ random: you_are ]
The result is (reload to see it change) :
I see, I see ... that you are teh master of teh intarweb
Keep list names short and avoid funky characters, but use anything including HTML in the entries. It has to be one-liners, but you can insert a manual <br/>
Push it
A few suggestions, or examples of use (name of the list, followed by items of the list)
-
trackback: trackback, pingback, chmlmlback, stuffback, sumthinback, trackpingback
-
comment: wrote, said, replied, thought, commented
-
emphasis: extremely, wickedly, awesomely, completely
You could also use it as a Quote of the Second script : create a list named "quotes" and add entries like :
-
<em>640K ought to be enough for anybody.</em><br />»<strong>Bill Gates</strong>, 1981
-
<em>A fast word about oral contraception. I asked a girl to go to bed with me, she said 'no'.<br />»<strong>Woody Allen</strong>, yesterday
-
...
Tell me
Got a suggestion, a bug report, something to tell, to thank or to complain about ? Using this plugin on your blog ? Made something fun with it ? Tell me !
Pages: « 1 2 3 [4] Show All
thought, on 15/Aug/08 at 1:53 pm # :
Leif Kendall » random word from a user defined list, yes. Randomly generated word, no.
pingback on 01/Sep/08 at 2:52 pm # :
[...] Ozh’ Random Words: ???Wordpress??????. [...]
commented, on 08/Sep/08 at 8:38 pm # :
hi
i activate the random words plugin
but when i click the "random words" inthe admin control panel this comes :
"Fatal error: Call to undefined function: add_action() in /home/bulexcom/public_html/wp-admin/wp_ozh_randomwords.php on line 327"
commented, on 08/Sep/08 at 9:28 pm # :
bulent » Don't know. You uploaded/edited/did it wrong.
said, on 08/Sep/08 at 10:42 pm # :
dont think
so it is so simple to upload and activate a plugin
anyway
i will look for another plugin then
pingback on 25/Sep/08 at 5:48 am # :
[...] Ozh’ Random Words: ???Wordpress??????. [...]
pingback on 02/Oct/08 at 9:58 am # :
[...] Random Words von Ozh erlaubt es mehrere Listen mit Worten oder Phrasen anzulegen. Die Worte oder Phrasen können dann in Templates oder mittels eines Tags in Beiträge oder Seiten eingebaut werden und werden an diesen Stellen in zufälliger Reihenfolge eingeblendet. Bookmarks setzen: Diese Icons verlinken auf Bookmark Dienste bei denen Nutzer neue Inhalte finden und mit anderen teilen können. [...]
pingback on 08/Nov/08 at 2:45 pm # :
[...] Ozh’ Random Words: ???Wordpress??????. [...]