Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
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  -  Translate all to Translated (View all originals)   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
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Singpolyma  
View profile  
 More options Mar 8 2008, 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!


 
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 2008, 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

 
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 2008, 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


 
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 2008, 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:


 
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 2008, 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:


 
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 2008, 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:


 
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 2008, 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:


 
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 2008, 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:


 
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 2008, 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:


 
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 10 2008, 12:53 pm
From: Pras Sarkar <pras.sar...@gmail.com>
Date: Mon, 10 Mar 2008 09:53:31 -0700 (PDT)
Local: Mon, Mar 10 2008 12:53 pm
Subject: Re: MT Action Streams => PHP
I agree with Steve. It probably needs to start with some basic level
of guid matching (where available), but in a lot of cases where guid
is not available, or simply not preserved/changed, the deduping code
needs some form of similarity matching. Using some basic distance
calculation algos, deduping can be fairly accurate as the time-to-scan
is short (most aggregators will have sourced and syndicated the
content within hours of the original service).

-Pras

On Mar 10, 9:16 am, Steve Ivy <steve...@gmail.com> wrote:


 
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 10 2008, 1:02 pm
From: Pras Sarkar <pras.sar...@gmail.com>
Date: Mon, 10 Mar 2008 10:02:27 -0700 (PDT)
Local: Mon, Mar 10 2008 1:02 pm
Subject: Re: MT Action Streams => PHP
Thanks for the link back Steve. Appreciate it.

Whenever you get a chance, could you correct my last name on your link
to headphono.us to "Sarkar"?

Thanks a bunch,

Pras.

On Mar 10, 9:25 am, Steve Ivy <steve...@gmail.com> wrote:


 
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 10 2008, 1:12 pm
From: "Stephen Paul Weber" <singpol...@gmail.com>
Date: Mon, 10 Mar 2008 13:12:30 -0400
Local: Mon, Mar 10 2008 1:12 pm
Subject: Re: [diso-project] Re: MT Action Streams => PHP
GUID done and done.  the YAML has a field to specify 'identifier'
(usually url, id on atom, guid on rss2, depends on the service) - this
is hashed (sha1) and used as the database key.  So if you bookmark the
same thing in delicious and magnolia (for example) they wouldn't both
show up.

Twitter settings just now use the atom ID - which is not likely to be
the same as any id on tumblr or similar.  That's where my pattern
matching thought came in.  Thoughts?

Pras has confirmed the polling bug.  Fixed on my version, should be
posted this evening.

A note about the YAML - if no URL is given in the action_streams
section, the URL from the profile_services section is used and we
autodetect RSS/ATOM with <link>s.  My implementation supports rss2:
similar to the atom: from the original (which I also support).

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

Which list?  You mean to remove a service, what do you do?  Right now
there is no way to do that (lazy me) - to change your username on a
service just 'add' it again and it will overwrite.

List of available services?  config.yaml

Or something else?

--
 - Stephen Paul Weber (Singpolyma)

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


 
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.
Don Park  
View profile  
 More options Mar 10 2008, 1:41 pm
From: Don Park <don.p...@gmail.com>
Date: Mon, 10 Mar 2008 10:41:16 -0700 (PDT)
Local: Mon, Mar 10 2008 1:41 pm
Subject: Re: MT Action Streams => PHP

On Mar 10, 10:12 am, "Stephen Paul Weber" <singpol...@gmail.com>
wrote:

> section, the URL from the profile_services section is used and we
> autodetect RSS/ATOM with <link>s.  My implementation supports rss2:
> similar to the atom: from the original (which I also support).

> "What about editing that list of URLs? Where should one go to do that?" - Steve

> Which list?  You mean to remove a service, what do you do?  Right now
> there is no way to do that (lazy me) - to change your username on a
> service just 'add' it again and it will overwrite.

What about using the XHTML Friends Network 'me' attribute to detect
the list of activitystream feeds? Give the plugin a single URL, and
that url can be spidered for 'me' links which describe my other
services. For instance if you use friendfeed, the services listed on
your home page have the 'me' attribute. Changes to the list of
services wouldn't be as immediate as managing a list in the plugin
since the plugin would have to check the given URL occasionally for
changes.

I've been playing with this idea and making graphs at:
http://donpark.org:3301/?url=http://donpark.org
(its not accepting new URLs as the spider was going crazy but there is
enough data already to get the idea)
The graphs are inline SVG and Im using FF3b3, other browsers may have
trouble.

Don


 
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 10 2008, 1:50 pm
From: "Stephen Paul Weber" <singpol...@gmail.com>
Date: Mon, 10 Mar 2008 13:50:07 -0400
Local: Mon, Mar 10 2008 1:50 pm
Subject: Re: [diso-project] Re: MT Action Streams => PHP
I currently support the diso-profile plugin and any services listed
there.  I could auto-spider the current user's profile url with sgapi
-- not sure about the user experience of getting them to enter a URL
to their profile when they are (presumably) on their own site.  If
people want it, it wouldn't be hard to do though :)

--
 - Stephen Paul Weber (Singpolyma)

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


 
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 2008, 4:01 pm
From: Steve Ivy <steve...@gmail.com>
Date: Mon, 10 Mar 2008 13:01:02 -0700 (PDT)
Local: Mon, Mar 10 2008 4:01 pm
Subject: Re: MT Action Streams => PHP
I've been thinking about the profile and action streams plugins...
Both make use of "me" links and have different ways of storing them.
Why don't we change them both to use a new category of blogroll Link -
"My Sites" - all marked as "me" (or just filter on "me" links from the
blogroll, though i like the idea of making it explicit. Then the user
either uses the default link editor, or we hook into the links from a
new editor...

Thoughts?

On Mar 10, 10:50 am, "Stephen Paul Weber" <singpol...@gmail.com>
wrote:


 
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 10 2008, 4:30 pm
From: "Stephen Paul Weber" <singpol...@gmail.com>
Date: Mon, 10 Mar 2008 16:30:35 -0400
Local: Mon, Mar 10 2008 4:30 pm
Subject: Re: [diso-project] Re: MT Action Streams => PHP
The profile plugin (permissions) acutally supports this.  The issue is
that we need this data for more than one user.  For actionstreams we
could arguably limit it to just one user, but I haven't done that yet.
 for profiles we need rel=me data for /contacts/, not really for the
blog owner at all, so we definitely need the data for more than one
user.

Although caching this data is not a bad idea.  At all.  (Depending on
WP-caching is not smart, even if sgapi requests are lightning-fast).

--
 - Stephen Paul Weber (Singpolyma)

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


 
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 2008, 5:33 pm
From: Steve Ivy <steve...@gmail.com>
Date: Mon, 10 Mar 2008 14:33:29 -0700 (PDT)
Local: Mon, Mar 10 2008 5:33 pm
Subject: Re: MT Action Streams => PHP
Hm, i wonder if there's a mod that provides non-admin-user ownership
of Links?

On Mar 10, 1:30 pm, "Stephen Paul Weber" <singpol...@gmail.com> wrote:


 
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 11 2008, 12:13 am
From: "Stephen Paul Weber" <singpol...@gmail.com>
Date: Tue, 11 Mar 2008 00:13:31 -0400
Local: Tues, Mar 11 2008 12:13 am
Subject: Re: [diso-project] Re: MT Action Streams => PHP
Tumblr support added (thanx Pras!) - polling bug fixed.  I've uploaded
0.11 to the same URL as before.  I should post about this on my blog,
since so many others seem to be... heh

On Mon, Mar 10, 2008 at 1:12 PM, Stephen Paul Weber

--
 - Stephen Paul Weber (Singpolyma)

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


 
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.
cesar dubo  
View profile  
 More options Mar 11 2008, 11:02 am
From: cesar dubo <cesard...@gmail.com>
Date: Tue, 11 Mar 2008 08:02:22 -0700 (PDT)
Local: Tues, Mar 11 2008 11:02 am
Subject: Re: MT Action Streams => PHP
I get this error when entering to the actionstream under the users
menu:

Warning: Invalid argument supplied for foreach() in /home/.filofax/
newdisco/dubo.cl/wp-content/plugins/diso-actionstream/actionstream.php
on line 283

On Mar 11, 1:13 am, "Stephen Paul Weber" <singpol...@gmail.com> wrote:


 
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 11 2008, 11:05 am
From: "Stephen Paul Weber" <singpol...@gmail.com>
Date: Tue, 11 Mar 2008 11:05:08 -0400
Local: Tues, Mar 11 2008 11:05 am
Subject: Re: [diso-project] Re: MT Action Streams => PHP
Ah, my plugin assumes there is content to preview :)  Add a source and
that will go away.  I should add a sanity check there :)  thx!

--
 - Stephen Paul Weber (Singpolyma)

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


 
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.
cesar dubo  
View profile  
 More options Mar 11 2008, 11:07 am
From: cesar dubo <cesard...@gmail.com>
Date: Tue, 11 Mar 2008 08:07:19 -0700 (PDT)
Local: Tues, Mar 11 2008 11:07 am
Subject: Re: MT Action Streams => PHP
i tried adding 3 sources through the wp panel, but no luck with
that... should i edit some file manually?

On Mar 11, 12:05 pm, "Stephen Paul Weber" <singpol...@gmail.com>
wrote:


 
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.
cesar dubo  
View profile  
 More options Mar 11 2008, 11:18 am
From: cesar dubo <cesard...@gmail.com>
Date: Tue, 11 Mar 2008 08:18:51 -0700 (PDT)
Local: Tues, Mar 11 2008 11:18 am
Subject: Re: MT Action Streams => PHP
besides, the mysql actionstream table remains empty... here's a
screenshot if it helps:

http://img353.imageshack.us/img353/2863/ssfu1.jpg

On Mar 11, 12:07 pm, cesar dubo <cesard...@gmail.com> wrote:


 
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 11 2008, 11:25 am
From: "Stephen Paul Weber" <singpol...@gmail.com>
Date: Tue, 11 Mar 2008 11:25:38 -0400
Local: Tues, Mar 11 2008 11:25 am
Subject: Re: [diso-project] Re: MT Action Streams => PHP
It looks like your data is not being pulled in at all... what host are
you on?  Version of wordpress?  Do you get any other odd behaviour /
errors?

--
 - Stephen Paul Weber (Singpolyma)

Web: http://singpolyma.net/
Twitter: ...

read more »


 
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.
cesar dubo  
View profile  
 More options Mar 11 2008, 11:29 am
From: cesar dubo <cesard...@gmail.com>
Date: Tue, 11 Mar 2008 08:29:08 -0700 (PDT)
Local: Tues, Mar 11 2008 11:29 am
Subject: Re: MT Action Streams => PHP
Host: Dreamhost
Wordpress version: 2.3.3

I also tried deactivating all the plugins, and the same behaviour
remains.

Thank you Stephen!

On Mar 11, 12:25 pm, "Stephen Paul Weber" <singpol...@gmail.com>
wrote:

...

read more »


 
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.
Discussion subject changed to "DiSo Action Streams ready for repository, naming schemes," by Steve Ivy
Steve Ivy  
View profile  
 More options Mar 11 2008, 12:01 pm
From: Steve Ivy <steve...@gmail.com>
Date: Tue, 11 Mar 2008 09:01:42 -0700 (PDT)
Local: Tues, Mar 11 2008 12:01 pm
Subject: DiSo Action Streams ready for repository, naming schemes,
Stephen (and all),

I think this is ready to go into the repo. What do you think? Would
you mind checking it in to /wordpress/wp-diso-actionstreams/trunk/ ?
You should have commit access.

While you're in there, perhaps we could move diso-profile to wp-diso-
profile? I'd like to keep to the naming scheme wp-<plugin> in the case
of general technologies (oauth, openid) and wp-diso-<plugin> for more
social-specific code (actions streams, profiles, contacts, etc).

Finally, if we are going to agree on a BSD or MIT license, let's
finally decide, and make sure that each component has the right
license file and source headers in place. I'm excited about where we
are right now!! Additionally, I have a partially done Movable Type
blogroll plugin I'm going to donate in the next week or so (assuming I
can get it to a usable level).

--Steve

What does the group think?

On Mar 10, 9:13 pm, "Stephen Paul Weber" <singpol...@gmail.com> wrote:


 
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.
Messages 1 - 25 of 42   Newer >
« Back to Discussions « Newer topic     Older topic »