Google Groups Home
Help | Sign in
MT Action Streams => PHP
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  Messages 1 - 25 of 42 - Collapse all   Newer >
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Singpolyma  
View profile
 More options Mar 8, 4:06 pm
From: Singpolyma <singpol...@gmail.com>
Date: Sat, 8 Mar 2008 13:06:24 -0800 (PST)
Local: Sat, Mar 8 2008 4:06 pm
Subject: MT Action Streams => PHP
I've knocked up a basic implementation of action streams based on the
MT YAML file and a PHP YAML parser.

<http://groups.google.com/group/diso-project/web/actionstream.tar.bz2>

I supports the XPATH and ATOM stuff, but not CSS selectors, etc, since
I don't know of a PHP library for that.  All this code does is take an
array (hard-coded just now) of service => username pairs, and extract
the data.  Then it iterpolates it using the HTML template from the
YAML.  Small piece of code suddenly has lots of services it can handle!


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steve Ivy  
View profile
 More options Mar 8, 4:46 pm
From: "Steve Ivy" <steve...@gmail.com>
Date: Sat, 8 Mar 2008 14:46:18 -0700
Local: Sat, Mar 8 2008 4:46 pm
Subject: Re: [diso-project] MT Action Streams => PHP
Wow, Stephen, this is great! I wish I had half your time for this
stuff. :-) Good work. Is this a WP plugin yet?

On Sat, Mar 8, 2008 at 2:06 PM, Singpolyma <singpol...@gmail.com> wrote:

>  I've knocked up a basic implementation of action streams based on the
>  MT YAML file and a PHP YAML parser.

>  <http://groups.google.com/group/diso-project/web/actionstream.tar.bz2>

>  I supports the XPATH and ATOM stuff, but not CSS selectors, etc, since
>  I don't know of a PHP library for that.  All this code does is take an
>  array (hard-coded just now) of service => username pairs, and extract
>  the data.  Then it iterpolates it using the HTML template from the
>  YAML.  Small piece of code suddenly has lots of services it can handle!

--
Steve Ivy
http://redmonk.net // http://diso-project.org
This email is: [ ] bloggable [x] ask first [ ] private

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stephen Paul Weber  
View profile
 More options Mar 8, 6:19 pm
From: "Stephen Paul Weber" <singpol...@gmail.com>
Date: Sat, 8 Mar 2008 18:19:33 -0500
Local: Sat, Mar 8 2008 6:19 pm
Subject: Re: [diso-project] Re: MT Action Streams => PHP
Not yet -- right now it doesn't even cache the data -- WP integration
is the next step

--
 - Stephen Paul Weber (Singpolyma)

Web: http://singpolyma.net/
Twitter: http://twitter.com/singpolyma
IM: singpol...@gmail.com


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Singpolyma  
View profile
 More options Mar 9, 7:14 pm
From: Singpolyma <singpol...@gmail.com>
Date: Sun, 9 Mar 2008 16:14:13 -0700 (PDT)
Local: Sun, Mar 9 2008 7:14 pm
Subject: Re: MT Action Streams => PHP
And now for the WP plugin!

<http://singpolyma.net/diso-actionstream.tar.bz2>

See it in action at <http://singpolyma.net/#actionstream>

Big thanks to MT guys for most of the YAML (added last.fm stream,
edited flickr and youtube to display thumbnails) and all of the CSS/
icons and inspiration!

I hereby dual-license this plugin MIT and BSD (or compatible).

And, fancy de-duping!

Any scrapers that use HTML will not work.  These seem to be for more
obscure sites.
Digg seems to block the wp_remote_fopen user agent.  Blah.

To install, just untar in plugins/
Go to Users > Action Stream

If you have a url(s) (from standard or diso-profile enhanced profile)
that match a supported service, they are added automagically.  You can
add more.

A preview of you actionstream is shown right on the page.

To add elsewhere the template tag is actionstream_render();     (you
can pass an optional userid or user name, and number of items to
display, default 10)

Enjoy!

On Mar 8, 7:19 pm, "Stephen Paul Weber" <singpol...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Messina  
View profile
 More options Mar 9, 10:40 pm
From: Chris Messina <chris.mess...@gmail.com>
Date: Sun, 9 Mar 2008 21:40:04 -0500
Local: Sun, Mar 9 2008 10:40 pm
Subject: Re: [diso-project] Re: MT Action Streams => PHP
Sweet! Can't wait to try it!

Sent from a typo-prone iPhone.

On Mar 9, 2008, at 6:14 PM, Singpolyma <singpol...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pras Sarkar  
View profile
 More options Mar 9, 11:38 pm
From: Pras Sarkar <pras.sar...@gmail.com>
Date: Sun, 9 Mar 2008 20:38:24 -0700 (PDT)
Local: Sun, Mar 9 2008 11:38 pm
Subject: Re: MT Action Streams => PHP
This is great Stephen! Works like a charm; I have it up and running on
http://headphono.us

I'd like to help out. You mentioned something about de-duping? Are you
already working on that?

Thanks,

Pras.

On Mar 9, 4:14 pm, Singpolyma <singpol...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Singpolyma  
View profile
 More options Mar 10, 10:36 am
From: Singpolyma <singpol...@gmail.com>
Date: Mon, 10 Mar 2008 07:36:21 -0700 (PDT)
Local: Mon, Mar 10 2008 10:36 am
Subject: Re: MT Action Streams => PHP
Thoughts on more de-duping.  Right now it just de-dupes /inside/ a
service... but if someone adds their tumblr or something and has
twitter in tumblr, etc, you don't want the same update displaying
twice.

Can we safely just do something like:

$done = array();

foreach($items as $item)
   if(in_array($item, $done)) continue;

?  or do the other services often change it a fair bit?  Should that
be handled by cleanup inline (ie, facebook adds 'is twittering' - but
twitter adds 'username: ' and that gets detected and removed, so the
other could be as well...)

I think either way, detected dupes should be handled as current
"dupes" are - output the node anyway, but hide it (for scrapers, they
see the whole lifestream with all nodes)

On Mar 9, 10:38 pm, Pras Sarkar <pras.sar...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steve Ivy  
View profile
 More options Mar 10, 12:16 pm
From: Steve Ivy <steve...@gmail.com>
Date: Mon, 10 Mar 2008 09:16:16 -0700 (PDT)
Local: Mon, Mar 10 2008 12:16 pm
Subject: Re: MT Action Streams => PHP
I think de-duping will have to be more involved - prolly need to start
with the guid (in ATOM and some variants of RSS) as a basis, then
getting more esoteric from there.

On Mar 10, 7:36 am, Singpolyma <singpol...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steve Ivy  
View profile
 More options Mar 10, 12:25 pm
From: Steve Ivy <steve...@gmail.com>
Date: Mon, 10 Mar 2008 09:25:36 -0700 (PDT)
Local: Mon, Mar 10 2008 12:25 pm
Subject: Re: MT Action Streams => PHP
Stephen,

What about editing that list of URLs? Where should one go to do that?

Also:
* http://redmonk.net/archives/2008/03/10/action-streaming/
* http://flickr.com/photos/redmonk/2324628580/

On Mar 9, 4:14 pm, Singpolyma <singpol...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pras Sarkar