Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
68 lines (46 sloc) 1.35 KB

Introduction

It's a small PlurkRssParser used for Plurk.com/username.xml. You can compose your friends news in plurk all together as a widget in wordpress or anywhere as you wish.

Result

toArray()

Array ( [0] => Array ( [0] => EragonJ 來去睡了 希望明早可以八點起來寫程式 night [1] => 2010-11-13T18:15:55Z [2] => /p/8w9n1a )

  [1] => Array
      (
          [0] => EragonJ 現在只能靠一股衝勁了,要不然什麼事都一直拖
          [1] => 2010-11-13T18:05:24Z
          [2] => /p/8w9hxh
      )

)

toHTML()

...

Snapshot

Original

img

In wordpress widget

img

Online Demo

See it

Usage

<?php
  include_once("PlurkRssParser.php");

  $plurkUsers = array("http://www.plurk.com/EragonJ.xml","http://www.plurk.com/buweichiu.xml","http://www.plurk.com/BlackACE.xml");
  $rss = new PlurkRssParser($plurkUsers);
  print_r($rss->exec()->sortSeeds()->toHTML());
?>

Author

EragonJ 陳佳隆

Email: EragonJ@hax4.in

Blog: Here