Work » Programming

 Recently in Programming Category

Embedding YouTube videos from Action Streams

(0) (0)
The next logical step from displaying a thumbnail of your posted or favourite videos is to actually enable playing of the video in your own webpage.  Thankfully, this is simple with youtube's embed code and your Action Stream.  I've now added this to my video calendar page and i think it looks good and works rather well.  It may be a little to much to add it to the home page, plus we don't want that to slow down any, it's already having to grab resources from all over the place anyway, so adding 9 embedded videos may be a little too much!

Code after the jump..


Action Stream 2.0 field list

(0) (0)
Please Note: This is for version 2.0 of the Action Streams plugin, for the 1.0 list see this post.

Differences and additions between v1 and v2 are highlighted in yellow.

Additionally, v2 has not yet been officially launched, as such this list may change between now and launch and I will only be highlighting differences from v1 to v2, not from now to v2.

The following is a description of all the fields found in the default plugin (without any additional profile plugins) in the following format:

  • service_type
    • stream_type
      • MTStreamActionVar name="xx"
One important difference to note is that between "stream_type" and "service_type". The difference is a stream type gathers together similar feeds, i.e. the photos stream_type will be all services where you post photos to, whereas a service_type of “flickr” will just be all actions based on flickr (including favourites etc).

YUI Editor in Movabletype v1.1

(2) (0)
This update merely makes the plugin use the latest (2.6.0) library.

A small change was made in config.js, so back that up if you've made your own customisations, and change ConfigYUIBase to be "http://yui.yahooapis.com/2.6.0/build/".

The other change is in load.js, so if you are hosting the YUI scripts locally you'll still need the update.

Download YUI Rich Text Editor for Movabletype 4 v1.1

Sporepedia Action Stream v0.3

(0) (0)
Updated to show creations now that the official site has an RSS feed.

Working on achievements and Sporecasts for the next versions

Action Stream field list

(2) (0)
The Action Stream plugin provides a lot of information about your profiles which isn't accessed by default.  With a little playing (as described in my previous posts) you can really start making your action streams work for you and provide a "lifestream" to your own blog.

The following is a description of all the fields found in the default plugin (without any additional profile plugins) in the following format:

  • service_type
    • stream_type
      • MTStreamActionVar name="xx"
I will try to keep this up to date as new streams are added to the plugin.  One important difference to note is that between "stream_type" and "service_type". The difference is a stream type gathers together similar feeds, i.e. the photos stream_type will be all services where you post photos to, whereas a service_type of “flickr” will just be all actions based on flickr (including favourites etc).

Collating Action Streams

(7) (0)
Yves Luther has come up with another great idea for action streams, however his solution didn't quite fit with what I expected it to do, plus it doesn't "strap on" to the default action stream templates very well.

The problem is when you use feeds that are updated frequently, Last.FM listened to tracks and uploading whole sets of photos, it floods your action stream with so many entries that other things can get lost in the noise.  Now if you're like me and listen to music all day every day, then you would normally just turn off something like the last.fm feeds.

However, wouldn't it be nice to capture and show that information in a way that doesn't compromise the importance of other items in your action stream?

Varying display of Action Streams based on content

(1) (0)
Following on from my last post about combining Action Stream data with entries (which has been superceded by an offical MT post and plugin from one of their devs), the next thing to do with Action Streams is to change their appearence based on their content/source.

The mechanisms to do this are all included in the plugin, but require a little tender love and care to get the desired effect.  Here is how I did it.

Combining entries with Action Stream data

(1) (0)
First off, credit where credit is due; this method is entirely the property of Yves Luther, I am merely providing it in English in an instructional capacity.

So, you can see on my home page that my blog posts are nicely mixed in with my action stream entries, which for blogs with infrequent updates or personal sites, means you have a collection that summarises (most of) your activity on the web as a whole.  The beuty of Yves solution is it's simplicity and flexibility.  Once set up, the choice of exactly how to display your home page is completely up to you.

Also on my home page are variations on styling and content based on the service providing the action, this is something I will detail in a later post.

YUI Editor in Movabletype v1.0

(2) (0)
At last I can make this 1.0!

IE6 is not yet perfect, but as good as it can get until Yahoo! update the CSS for the editor.

Download YUI Rich Text Editor for Movabletype 4 v1.0

Version Notes:
1.0
  • Width tweaked to make IE6 look better

 

Sporepedia Action Stream v0.2

(0) (0)
Updated version to include URLs properly and default show (not hide)

Download Sporepedia Action Stream Plugin for MovableType v0.2

Recent Comments

  • Hi Tom, Sorry I only just saw this comment, I didn't get a notification from MT (unless it was caug

  • Richard, Noticed you commented on this plugin here: http://plugins.movabletype.org/rich-text-editor-

  • Thanks for the link to your main index page Richard, it will give me a better understanding of what

    toni.hambilton.myopenid.com
    Collating Action Streams
  • Hi Chris, The YUI editor strips out tags it thinks may be harmful, but you can affect which tags it

  • Hi Toni, That trick is not included in the examples here, I based them on the default code. It's q

  • Hi Richard, I added all the above code and checked out your add-twitter page, and the short version

    toni.hambilton.myopenid.com
    Collating Action Streams
  • Great plugin Richard. Until recently this worked as expected, but now I'm getting the re-feed every

    toni.hambilton.myopenid.com
    MT.org Action Stream 0.1
  • If you don't want to pay the extra money is P&P included? I would have thought a huge ballista would

  • I haven't tried it, but you should be able to use <mt:actionstreams service_type="digg"

  • Hey Richard, this plugin is great on the formatting and usability side. There's one slight (well, bi

    me.chrisfullman.com
    YUI Editor in Movabletype v1.0
  • Many thanks, Richard. This is very useful. I have to confess that I am having great difficulty wrap

joke