Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
aao_friendfeed a Plugin for your sidebar
Hello,
I’ve got a nice Textpattern plugin that adds your FriendFeedFeed to your blog.
Features:
- some sort of basic caching: the feed file is written on the server disk and requested from friendfeed.com only if it expire
- you can change the expiration time
- you can select what sources to display from your feed
- you can limit the number of items to display
- you can use CSS to style the output, the ul element has aao-friendfeed as class, while the li uses aao-friendfeed-entry
Missing features:
- probably other issues with other types of feed sources
- comments maybe?
but, hey it works for Twitter / Flickr / Youtube :)
Requirements:
- a working installation of PHP 5 with simplexml and curl extensions enabled
- Textpattern (of course), tested on 4.0.5 and 4.0.6 but I guess it should work on any other 4.0+ version
Basic usage:
<txp:aao_friendfeed username="YOUR-FRIENDFEED_USERNAME" limit="10" />
Options:
- username: string, mandatory, your FriendFeed username
- limit: int, optional, how many items to display (default: 5)
- expire: int, optional, after how many seconds the “cache” should expire (default: 600sec. – that’s 10min.)
- path: string, optional, the path where to save the cache file (default: /tmp), the user that runs your webserver should have read/write access to that folder
- sources: comma separated strings, limit only to the given sources (default: no limit on sources)
Download: version 0.3.
Source-code first.
Some more docs in textile format :)
Demo on my blog, checkout the bottom – right sidebar (if you get adsense you must be using Internet Explorer, FF/Safari/Opera/and other users are ad free).
I’ll like to make this plugin available under the MIT license (or BSD 3 clause licence), but maybe one can enlighten me if it will conflict the Textpattern 4.0 GPL. If so, then I’ll change it to GPL v3.
Improvements / Patches are welcomed!
Remember, this is a work in progress.
Thanks!
Changelog:
- 0.3 (22.April.2008)
- images from “media” sources like youtube and flikr are displayed
- the url on the username points to user profile on the given service
- 0.2 (22.April.2008)
- renamed to aao_friendfeed (was locknet_friendfeed)
- 0.1 (22.april.2008)
- initial release
Last edited by aurelian (2008-04-22 20:32:53)
Offline
#2 2008-04-22 00:17:06
- Ruhh
- Member
- From: dakota dunes
- Registered: 2008-01-20
- Posts: 305
Re: aao_friendfeed a Plugin for your sidebar
Never heard of FriendFeed. So the plugin will allow a user to show Twitter feeds along with customization?
<txp:Ruhh />
Offline
Re: aao_friendfeed a Plugin for your sidebar
Good work aurelian :) Remember to:
- Rename your plugin: Textpattern plugin’s use three letter author prefix (xxx_friendfeed, where xxx is your unique prefix).
- Rename your plugin’s functions – they must be unique aka using the prefix and the main function should be same as the plugin name.
- Those will prevent conflicts in the future with another plugins/core.
Offline
Re: aao_friendfeed a Plugin for your sidebar
Ruth: FriendFeed.com is a new service to aggregate your feeds from various other sources (like ma.gnolia bookmarks, flickr pictures, youtube faves, facebook – I guess – and other 35 more) into one: the friend feed feed :)
They add some social networking spicy into this and you can share this feed with your friends and they also can comment on whatever item added there.
My plugin reads this feed and outputs the result on your textpattern blog. So it’s not just about Twitter.
Gocom: I’ll do those changes later today, thanks for the info!
Last edited by aurelian (2008-04-22 08:22:10)
Offline
Re: aao_friendfeed a Plugin for your sidebar
I’ve renamed the plugin to aao_friendfeed to match Textpattern naming conventions.
Anyone knows how to add my aao extension to the list of reserved plugin prefixes?
Offline
Offline
Re: aao_friendfeed a Plugin for your sidebar
Why is it necessary to use your plug-in for the friendfeed feed?
Why not use i.e. the generic SimplePie approach to subscribe to the friendfeed feed?
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline
Re: aao_friendfeed a Plugin for your sidebar
hakjoon: thanks!
merz1: I don’t know what’s SimplePie, I’ll try to find more infos about it.
Anyway, I’m not forcing anyone to use my plugin.
Anyone care to share some knowledge about the license?
Offline
#9 2008-04-22 15:08:17
- Ruhh
- Member
- From: dakota dunes
- Registered: 2008-01-20
- Posts: 305
Re: aao_friendfeed a Plugin for your sidebar
Hm alright. Do I have to make a registration at FriendFeed in order to use the plugin?
<txp:Ruhh />
Offline
Re: aao_friendfeed a Plugin for your sidebar
sure, it’s about you and your friends feed, do know if anyone is interested in getting the public timeline.
you can read more about this service on the about page.
Offline
Re: aao_friendfeed a Plugin for your sidebar
> Anyway, I’m not forcing anyone to use my plugin.
I didn’t want to sound unfriendly but there are already stable generic solutions to include feeds into Textpattern. And as the friendfeed feed is public you can simply fetch it with any RSS solution (like the SimplePie plug-in). SimplePie (Link to plug-in) is a very stable and well known feed fetching library which solves mostly all the problems someone can have with an RSS feed.
The SimplePie plug-in now has a new maintainer and here is the forum thread.
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline
Re: aao_friendfeed a Plugin for your sidebar
merz1: cool thanks for mention it (didn’t knew about it before) and I’ll give it a try at one point.
Offline