On: 2005/04/29 Viewed: 68077 times
Shorter URL for this page: http://ozh.in/l4

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

Download the plugin :
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 :

  1. a nice person
  2. a <em>porn star</em>
  3. so <em>cute</em> !
  4. <span style="color:purple">teh master of teh intarweb</span>
  5. reloading the page
  6. pretty. Well, sort of.

In this page I wrote :

  1. 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 so cute !

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)

  1. trackback: trackback, pingback, chmlmlback, stuffback, sumthinback, trackpingback
  2. comment: wrote, said, replied, thought, commented
  3. 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 :

  1. <em>640K ought to be enough for anybody.</em><br />&raquo;<strong>Bill Gates</strong>, 1981
  2. <em>A fast word about oral contraception. I asked a girl to go to bed with me, she said 'no'.<br />&raquo;<strong>Woody Allen</strong>, yesterday
  3. ...

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 !

Shorter URL

Want to share or tweet this page? Please use this short URL: http://ozh.in/l4

Metastuff

This page "WordPress Plugin : Random Words" was posted on 29/04/2005 at 9:45 pm
Watch this discussion : Comments RSS 2.0.

87 Blablas

    Pages: « 1 [2] Show All

  1. 51
    rayven United States »
    said, on 28/Dec/07 at 7:22 pm # :

    interesting. how difficult would it be to make this plugin return a random member of your WP blog? for example, if i wanted to hold contests like: sign up now! random winners chosen daily.

  2. 52
    Ozh France »
    thought, on 28/Dec/07 at 10:06 pm # :

    rayven » such a plugin wouldn't be difficult to do (before you might ask: no, I cant' do it) but Random Words would not even be an interesting start for it. The only code they would share would probably be a one liner randomizer function.

  3. 53
    g. Canada »
    thought, on 05/Jan/08 at 4:20 am # :

    Had loads of fun with this! Thanks so much. I put it in my title tags and comments worked great. I want to duplicate the fun in my RECENT COMMENTS on my sidebar – so far to no avail.
    this is my code and it won't show up!

    %comment_author: %comment_excerpt

    any ideas? thanks.
    g.

  4. 54
    g. Canada »
    wrote, on 05/Jan/08 at 4:22 am # :

    i think i'm dead. so sorry!
    let me try again:
    Had loads of fun with this! Thanks so much. I put it in my title tags and comments worked great. I want to duplicate the fun in my RECENT COMMENTS on my sidebar – so far to no avail.
    this is my code and it won't show up!

    %comment_author: %comment_excerpt

  5. 55
    Les United Kingdom »
    wrote, on 08/Apr/08 at 9:06 am # :

    I had the "page not found" problem on first installing the plugin. Moving it out of the containing folder, so the file sits loose in the plugins folder made it behave itself.

  6. 56
    50+ Wordpress???? - ??????? China »
    pingback on 02/Jul/08 at 11:55 am # :

    [...] Ozh’ Random Words: ???Wordpress??????. [...]

  7. 57
    ?? » Blog Archive » Wordpres... United States »
    pingback on 11/Jul/08 at 3:34 am # :

    [...] ???????. Quote Rotator: ???Wordpress??????. Ozh’ Random Words: ???Wordpress??????. Favourite Bible Verses: ????????. Tinin [...]

  8. 58
    50+ Wordpress????????????? | Idiigo.com China »
    pingback on 14/Jul/08 at 1:49 pm # :

    [...] Ozh’ Random Words: ???Wordpress??????. [...]

  9. 59
    mesky blogs » Blog Archive »... China »
    pingback on 12/Aug/08 at 4:16 am # :

    [...] Ozh’ Random Words: ???Wordpress??????. [...]

  10. 60
    Leif Kendall United Kingdom »
    replied, on 15/Aug/08 at 10:55 am # :

    Hi, Could this plugin be adapted to generate random words? I'd really like a WP plugin that allows me to have a box on a page of my WordPress website in which a random word is inserted whenever the page is viewed. Is that possible? (Thanks for adding to the wealth of WordPress wonderfulness!)

  11. 61
    Ozh France »
    replied, on 15/Aug/08 at 1:53 pm # :

    Leif Kendall » random word from a user defined list, yes. Randomly generated word, no.

  12. 62
    WordPress?? » Blog Archive »... China »
    pingback on 01/Sep/08 at 2:52 pm # :

    [...] Ozh’ Random Words: ???Wordpress??????. [...]

  13. 63
    bulent Turkey »
    replied, 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″

  14. 64
    Ozh France »
    wrote, on 08/Sep/08 at 9:28 pm # :

    bulent » Don't know. You uploaded/edited/did it wrong.

  15. 65
    bulent Turkey »
    thought, 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

  16. 66
    50+ Wordpress???? China »
    pingback on 25/Sep/08 at 5:48 am # :

    [...] Ozh’ Random Words: ???Wordpress??????. [...]

  17. 67
    Random Words - WP Plugin Archive Germany »
    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. [...]

  18. 68
    Wordpress ???????????? | ???? United States »
    pingback on 08/Nov/08 at 2:45 pm # :

    [...] Ozh’ Random Words: ???Wordpress??????. [...]

  19. 69
    D Australia »
    replied, on 29/Nov/08 at 3:51 am # :

    Howdy!
    I downloaded the zip file 2 days back, unzipped it, copied it into the plugins folder, FTPed it to my blog, activated it on the plugins page, hit the manual&setup link & got, "Cannot load wp_ozh_randomwords.php."

    The PHP file is definitely there on the blog. Did I miss a step? Curse these uninformative error messages!

    D

  20. 70
    Graham Canada »
    commented, on 03/Dec/08 at 7:29 am # :

    Great idea for a plugin and would be very useful for something i have planned :-)

    doesn't work in wp 2.7 (trunk)

    error message is

    "Cannot load wp_ozh_randomwords.php."

    after activating and going to options

  21. 71
    Ozh France »
    thought, on 04/Dec/08 at 10:58 pm # :

    Graham » Fixed, upgrade!

  22. 72
    SAP Lobby » 50+ Wordpress???? zz United States »
    pingback on 25/Dec/08 at 5:28 pm # :

    [...] Ozh’ Random Words: ???Wordpress??????. [...]

  23. 73
    Ozh’ Random Words United States »
    pingback on 31/Jan/09 at 12:14 am # :

    [...] old boring comment pages full of "Joe said" with something random like "Joe thought", "Joe …..read more Download Plugin! Version 1.0.1 Last Updated: December 4, 2008 Author: Ozh Visit Plugin's [...]

  24. 74
    Wordpress???? | 123??-My IT Blog China »
    pingback on 14/Feb/09 at 2:56 pm # :

    [...] Ozh’ Random Words: ???Wordpress??????. [...]

  25. 75
    50+ Wordpress???? | Jack 's blog China »
    pingback on 06/Apr/09 at 3:36 am # :

    [...] Ozh’ Random Words: ???Wordpress??????. [...]

  26. 76
    50+ Wordpress???? | ???????... United States »
    pingback on 11/Apr/09 at 11:04 am # :

    [...] Ozh’ Random Words: ???Wordpress??????. [...]

  27. 77
    Arno Switzerland »
    commented, on 17/Apr/09 at 3:59 pm # :

    I can't access the setup (I 've got WordPress 2.8)

    Error message is:
    "Cannot load wp_ozh_randomwords.php."

    Please help me.

  28. 78
    ??? » Blog Archive » 50+ Wor... United States »
    pingback on 18/Apr/09 at 11:49 am # :

    [...] Ozh’ Random Words: ???Wordpress??????. [...]

  29. 79
    ???Wordpress???? | ?????????? China »
    pingback on 03/Jul/09 at 3:47 pm # :

    [...] Ozh’ Random Words: ???Wordpress??????. [...]

  30. 80
    50+ Wordpress???? | ???? China »
    pingback on 17/Aug/09 at 11:50 pm # :

    [...] Ozh' Random Words: ???Wordpress??????. [...]

  31. 81
    sgazzetti Bulgaria »
    said, on 07/Sep/09 at 8:38 am # :

    Hi Ozh–
    I love your plugin and have been using it for a variety of things on my blog for about five years, through various versions of WordPress, with never a hiccup — until the latest upgrade I did, to WP 2.8.4. Everything was problem-free except for your plugin. When I click on the 'Manual & Setup' link I get an error message: 'You do not have sufficient permissions to access this page.'

    I've tried various fixes tossed up by Google, but none have worked, and as I am having the problem only with Random Words (all other plugins allow me to access their configuration pages), I wonder if it's some problem with RW and WP 2.8.4.

    Thanks so much for authoring this plugin, and if you can offer any suggestions for a fix, I'd love to hear them.

  32. 82
    John Mexico »
    commented, on 25/Sep/09 at 4:16 pm # :

    Ozh, is it at all possible that you can fix your fantastic Random Words plugin? It is not a futile plugin. It is very important to me and I have a specific way that I use it and it is tremendously valuable to me.

    Thank you kindly.

  33. 83
    John Mexico »
    commented, on 29/Oct/09 at 2:01 am # :

    For those of you looking for a random text replacement to Ozh's that is WordPress 2.8 compatible, Pants On Head's RandomText plugin just gained shortcode support (at my begging).

    http://www.pantsonhead.com/wordpress/randomtext/

  34. 84
    sbox Hong Kong »
    commented, on 18/Mar/10 at 5:25 am # :

    Is this plugin support Chinese Characters or UTF-8 encoding?

  35. 85
    Rob United States »
    wrote, on 26/Apr/10 at 7:44 pm # :

    I've been using this for ages, thank you!

  36. 86
    Jul Germany »
    replied, on 29/Apr/10 at 11:07 pm # :

    So the output of this is dynamic and changes each time you refresh the page? Or isn't it? I'm desperately looking for something to choose a random phrase from a list only once, without changing when refreshing. Does/can this plugin do the job?

  37. 87
    Ozh France »
    said, on 29/Apr/10 at 11:21 pm # :

    Jul » assuming the plugin works (wrote it a loooooong time ago and didn't check it recently) (it should work anyway) yes it will do the job.

Pages: « 1 [2] Show All

Leave a Reply

Comment Guidelines or Die

  • HTML: You can use these tags: <a href=""> <em> <i> <b> <strong> <blockquote>
  • Posting code: Post raw code (no <> &lt; etc) within appropriate tags : [php][/php], [css][/css], [html][/html], [js][/js], [sql][/sql], [xml][/xml], or generic [code][code]
  • Gravatars: Curious about the little images next to each commenter's name ? Go to Gravatar.
  • Spam: Various spam plugins on patrol. I'll put pins in a Voodoo doll if you spam me.
  • I will mark as Spam test comments, all comments with SEO names (ie "My Cool Online Shop" instead of "Joe") or containing forum-like signatures.