Categories

Jaiku for WordPress

Jaiku for WordPress displays yours latest jaikus in your WordPress blog.

Features

  • Simply
  • Customizable
  • Widget ready
  • Uses WordPress resources (no extra files needed)
  • No options page (yes, it’s a feature)
  • Detects URLs, e-mail address and @username replies
  • Multiple widgets (Thanks to Michael Feichtinger)

Installation

Drop the jaiku-for-wordpress folder into /wp-content/plugins/ and activate the plug in.

Usage

If you use WordPress widgets, just drag the widget into your sidebar and configure.
If widgets aren’t your thing, use the following code to display your public jaiku messages:

jaiku_messages('username');

jaiku for WordPress also has several configurable options. Here’s what you can configure:

jaiku_messages('username', [msgs], [list], [timestamp], ['link'], [hyperlinks], [jaiku_users], [encode_utf8]); 
  • username: your jaiku username
  • msgs: number of jaikus to show
  • list: show jaikus in a unordered list
  • timestamp: show a relative timestamp
  • linked: the link options
    • ‘all’: puts a link to the jaiku status in all the jaiku (the old-school way). This option disables the link discover features.
    • false or ”: no link at all to the jaiku status
    • true or ‘something’: enable the link to the jaiku status. You can customize the text.
  • hyperlinks: show URLs as clickable links
  • jaiku_users: show @username replies as clickable links
  • encode_utf8:turn it on if you have encoding problems

Only username is required. The other parameters will take this default values:

jaiku_messages('', 1, false, true, '#', true, true, false);

This is: 1 jaiku, not in a list, with timestamps, with a # link to each jaiku, with URLs and @username replies displayed as clickable links.

So, if I wanted to show my last 3 messages, not in a list, with timestamps, with a Go link and no links, I would use the following:

jaiku_messages('username', 3, false, true, 'Go', false, false);

Customization

The plug in provides the following CSS classes:

  • ul.jaiku: the main ul (if list is activated)
  • li.jaiku-item: the ul items (if list is activated)
  • p.jaiku-message: each one of the paragraphs (if msgs > 1)
  • .jaiku-timestamp: the timestamp span class
  • a.jaiku-link: the jaiku link class
  • a.jaiku-user: the @username reply link class

Live Demo

jaiku_messages('ryck', 5, true, true, '>>', true, true);

>’, true, true); ?>

Download

Version History

1.2 – 2008/04/08

  • Now using human_time_diff() instead own function: better performance, less code and automagically i18n!

1.1 – 2008/04/03

  • Added encode_utf8 option in order to (hopefully) fix the encoding issues.

1.0 – 2008/03/04

  • Initial Release

Credits

Contact

Suggestion, fixes, rants, congratulations, gifts et al to rick[at]jinlabs.com or by my contact page.

Code

Maybe you could be interested in my other plugins: Code

71 replies on “Jaiku for WordPress”

Leave a Reply to froleprotrem Cancel reply