Categories

Jisko for WordPress

Jisko for WordPress displays yours latest jisko notes 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 jisko-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 Jisko messages:

jisko_messages('username');

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

jisko_messages('username', [msgs], [list], [timestamp], ['link'], [hyperlinks], [jisko_users], [encode_utf8]); 
  • username: your jisko username
  • msgs: number of jisko notes to show
  • list: show jisko notes in a unordered list
  • timestamp: show a relative timestamp
  • linked: the link options
    • ‘all’: puts a link to the tweet status in all the tweet (the old-school way). This option disables the link discover features.
    • false or ”: no link at all to the tweet status
    • true or ‘something’: enable the link to the tweet status. You can customize the text.
  • hyperlinks: show URLs as clickable links
  • jisko_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:

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

This is: 1 tweet, not in a list, with timestamps, with a # link to each tweet, 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, no links and encode_utf8, I would use the following:

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

Customization

The plug in provides the following CSS classes:

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

Live Demo

jisko_messages('rick', 5, true, true, '>>', true, true, false);

>’, true, true, false); ?>

Download

Version History

1.0 – 2008/07/15

  • 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