Categories

Plurk for WordPress

Plurk for WordPress displays yours latest plurks in your WordPress blog.

Features

  • Simply
  • Customizable
  • Widget ready
  • Uses WordPress resources (no extra files needed)
  • No options page (yes, it’s a feature)
  • Multiple widgets (Thanks to Michael Feichtinger)

Installation

Drop the plurk-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 Plurk messages:

plurk_messages('username');

Note: Your plurks must be unprotected (i.e. visible by the whole world)

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

plurk_messages('username', [msgs], [list], [timestamp], ['link'], [encode_utf8]); 
  • username: your plurk username
  • msgs: number of plurks to show
  • list: show plurks 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.
  • encode_utf8:turn it on if you have encoding problems

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

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

This is: 1 plurk, not in a list, with timestamps, with a # link to each plurk and without UTF8 encoding.

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

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

Customization

The plug in provides the following CSS classes:

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

Live Demo

plurk_messages('Ryck', 5, true, true, '>>', false);

>’, false); ?>

Download

Version History

1.0 – 2008/06/07

  • 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

22 replies on “Plurk for WordPress”

[…] Plurk for WordPress – Plurk is a better, more funky, cooler replacement for Twitter (which fell over a few weeks ago due to over use).  This plugin shows the last 5 or so ‘plurks’ that you have written.  Again, I think this nice for visitors to see and brings together your last couple of days (and automatically makes the website more up-to-date) […]

[…] convinced me. My latest tweet have also since been replaced by my latest plurk thanks to the “Plurk for WordPress” plugin by Ricardo González. Do join me at Plurk. Tags: plurk, twitter Topics: Internet […]

[…] Lalu bagaimana bagi pengguna blog WordPress? Sayangnya, sewaktu saya coba tadi, untuk pengguna WordPress.com tidak dapat menggunakan fasilitas ini. Namun, untuk pengguna WordPress.org bisa menempatkan kode blog widget tersebut langsung pada themes terkait, contohnya di file sidebar.php. Atau, kalau tidak ingin repot, Anda bisa langsung menggunakan plugin Plurk for WordPress. […]

[…] e deseja exibir seus últimos microposts na barra lateral do blog, a dica é utilizar o plugin Plurk for WordPress. Ele oferece um widget que poderá ser facilmente arrastado para seu menu lateral. Se quiser […]

[…] …   Plurk for WordPress displays yours latest plurks in your WordPress blog. …..read more Download Plugin! Version 1.0 Last Updated: June 7, 2008 Author: Ricardo González […]

[…] 設定非常的簡單,只要輸入帳號(USERNAME)、顯示訊息數(NUMBER OF LINKD)、連結方式(LINKED)即可。 「all」:把所有訊息都加上連結。 「false」:所有訊息都不加連結。 「???」:訊息後會多一個可以客製化的文字,讓那個文字連結到原文訊息。ex:true→訊息後就會多一個「true」連結原文。 其他更詳細設定可參考作者網址:http://rick.jinlabs.com/code/plurk/ […]

Leave a Reply

Your email address will not be published. Required fields are marked *