wp-diso-contactlist patch

0 views
Skip to first unread message

Stephen Paul Weber

unread,
Dec 22, 2007, 4:43:08 PM12/22/07
to Steve Ivy, diso-p...@googlegroups.com
Hello :)
I've done some editing to the wp-diso-contactlist plugin. My
version can be seen at <http://singpolyma.net/cl.txt> and an svn diff
at <http://singpolyma.net/cl-diff.txt> -- sorry for the stylistic
changes in the diff, it's a bad habit of mine.

Big things:

1) Fixed issue #5
2) Fixed issue #13
3) Added a way of displaying the list (shown at
<http://singpolyma.net/contacts>) -- if one contact has multiple links
it puts them is a sublist
4) WP admin page code made more valid (no raw >, use &gt;)

Looking at:

I still dislike the way it detects if an entry matches a user. Should
go into the wp-openid guts like getting an openid for a userid does.
There really should be a function added to the wp-openid plugin to get
OpenID for userid and userid for OpenID so that things like this can
be done without relying on the table structure.

is_friend and similar for logged in user.

--
- Stephen Paul Weber, Amateur Writer
<http://www.awriterz.org>

MSN/GTalk/Jabber: singp...@gmail.com
ICQ/AIM: 103332966
BLOG: http://singpolyma.net/

James D Kirk

unread,
Dec 22, 2007, 5:14:33 PM12/22/07
to DiSo Project
Hey Stephen,

Is this just a straight drop-in replacement for the last version of
the plugin?
If so, maybe Chris will update the version number to reflect your
additions, changes and fixes?

I'll check it out and let you know what happens (here or over at the
code site.)

Thanks.

James.

Chris Messina

unread,
Dec 22, 2007, 5:20:34 PM12/22/07
to diso-p...@googlegroups.com
I think I'd like to make some more improvements (slight) to the plugin
before we release and bump the version number... that said, I think
Stephen's doing some awesome work here which needs to have some UI
work to go along with it.

For example, once we're able to publish or list your entire blogroll
as hcards publicly, how can we begin to segment/group that list
(categories of course, but would WordPress' new tags infrastructure be
applicable?), how can we provide better internal management tools? And
is it conceivable to allow a blog's users to friend each other and
have that reflected either on the site (/author/authorname/contacts)
or in the backend?

Just ideas for now, and maybe even opportunities for secondary
plugins, since very quickly, once we have this portable list of
contacts for one person, it becomes interesting to think about how we
can begin to make use of it to solve some real problems!

Chris

--
Chris Messina
Citizen-Participant &
Open Source Advocate-at-Large
Work: http://citizenagency.com
Blog: http://factoryjoe.com/blog
Cell: 412.225.1051
IM: factoryjoe
This email is: [ ] bloggable [X] ask first [ ] private

Stephen Paul Weber

unread,
Dec 22, 2007, 5:20:42 PM12/22/07
to diso-p...@googlegroups.com
This file is based on the mot recent SVN trunk and could easily just
replace it, but since I made more than one change, it may not be that
simple ;) I just made it do what I want and posted, hehe :)

--

Stephen Paul Weber

unread,
Dec 22, 2007, 5:23:54 PM12/22/07
to diso-p...@googlegroups.com
What's the difference between Wordpress categories and tags?

XFN is another option -- maybe let one list only family members or something.

Users friending each other sounds... odd... unless you're on MU.

--

Chris Messina

unread,
Dec 22, 2007, 6:24:31 PM12/22/07
to diso-p...@googlegroups.com
On Dec 22, 2007 2:23 PM, Stephen Paul Weber <singp...@gmail.com> wrote:
>
> What's the difference between Wordpress categories and tags?

Not sure, other than the way that they're stored and accessed in
WordPress seems different. Tags also seem somewhat easier and more
flexible to create on the fly, and, should someone feel so bold, allow
us to synchronize with external CRM-type systems like Highrise or
Blinksale, which use tags throughout.

> XFN is another option -- maybe let one list only family members or something.

Certainly. XFN is the start and should be the basis for any
relationship connections. That said, you might have "WoW friends" or
"Favorite Photographers" and so on that don't fit those semantics, or
at least are important enough that someone might want a way to call
out those groups in their personal settings. Furthermore, we should
again look at Facebook's or Gmails' approach to friend grouping for
prior art:

http://www.readwriteweb.com/archives/facebook_launches_friend_lists.php

> Users friending each other sounds... odd... unless you're on MU.

Well, what about being able to pull in a remote XFN list and match the
remote identifiers with the local identifiers to see where your
friends have commented on the blog you're currently reading? Seems to
me that rather than think about this from a "friending" perspective,
we should look at this from a functionality perspective... IF there
are overlaps in friends lists between two people (or on two blogs),
then what kind of information can we reveal that might be of greater
interest to the visiting person? Think about the functionality that
MyBlogLog offers and then distribute it off the central server... and
think about what's possible. That's what should drive this plugin.

James D Kirk

unread,
Dec 22, 2007, 7:02:39 PM12/22/07
to DiSo Project

> > Users friending each other sounds... odd... unless you're on MU.
>
> Well, what about being able to pull in a remote XFN list and match the
> remote identifiers with the local identifiers to see where your
> friends have commented on the blog you're currently reading? Seems to
> me that rather than think about this from a "friending" perspective,
> we should look at this from a functionality perspective... IF there
> are overlaps in friends lists between two people (or on two blogs),
> then what kind of information can we reveal that might be of greater
> interest to the visiting person? Think about the functionality that
> MyBlogLog offers and then distribute it off the central server... and
> think about what's possible. That's what should drive this plugin.
>
> Chris

I'm completely with Chris on this aspect. And to respectfully insert
my thoughts to you, Stephen, regarding the MU thing. One of the
underlying premises for this group is that it is about creating social
networking from the inside out. One doesn't need any specific CMS in
order to make a network for whatever purposes. WordPress happened to
be the one the founders of DiSo chose to use, first.

So, from my perspective I am looking at running my blog and still
having the options to begin to create my own private social network,
which is observable how? Well, by the output of the plugins the really
smart folks here are generating and refining. So, if I can enable the
contacts list plugin and have the output show a list of people that I
consider myself connected to (however, friends, associates, blogger
buddies, etc.) and can customize what list of contacts might get shown
where, then cool.

If we can create the functionality that will allow me to display not
only their name and web address, but a picture/avatar image of them,
now we are really getting somewhere. When someone hits my site right
now (http://boldlygoing.com), they'll see output from the three big
networking sites: MBL, BC, and BumpZee. But all that output shows is
whom from those networks have viewed my pages. Is there any reason
that we can't create similar functionality with our work that could
also show a visual representation of those that have left comments at
my blog, and are DiSo-enabled? I would think that should be very easy
given all that's swirling at this group right now.

So, now I have a nice configurable "friends list" (or contacts, or
whatever your fave term is!) with images, names, links, and any other
hCard, FOAF, XRD related data. Social networking is all about the
connections of your contacts. There is simply no reason to think that
it would only be required for something like WPMU, which is really
nothing more than allowing for the creation of multiple blogs to run
on top of one domain.

My engineering partner and I have been working and running our own
version of WP self hosted code that allows us to run a number of
different domain web sites on top of a SINGLE install of WordPress. To
date, I believe we are stably running 12 or 13 domains on that install
and have been for over a year now. And the best part is that we
haven't hacked the core of WP, so we are easily able to maintain the
code with all new updates and upgrades. Joseph is in the process of
writing up all of our work and hopefully he'll find the time to create
everything as a plugin that would easily allow someone that has a self
hosted install and control of DNS, etc to be able to start running,
who knows how many web sites, on the single instance of code. And each
with their own space, theme selection, set of active plugins, etc.

The main reason we wanted to join this group was to be able to work at
bringing these social networking capabilities into our body of work.
We figure this would be a great place to release our work back to the
community when it's ready for prime time as well.

So, yeah, I don't feel that having the ability to "friend" is solely
in the domain of MU. (Guess I could just have said that, huh!?!)

James.

Stephen Paul Weber

unread,
Dec 22, 2007, 7:15:08 PM12/22/07
to diso-p...@googlegroups.com
> whom from those networks have viewed my pages. Is there any reason
> that we can't create similar functionality with our work that could
> also show a visual representation of those that have left comments at
> my blog, and are DiSo-enabled? I would think that should be very easy
> given all that's swirling at this group right now.

Actually, since we have openid login code and hcard importing code,
all that would be needed is a plugin to add the most recent visitor
user IDs to a list somewhere internally and render as a widget.

James D Kirk

unread,
Dec 22, 2007, 10:11:03 PM12/22/07
to DiSo Project
Guessing there are probably a gazillion of those types of recent
visitor plugins. Deal would obviously be about tying them into the
"hooks"(?) from our plugins, right? And then adding the capability to
either display an hCard photo (probably easier if the hCard photo is
encoded as text??) or calling over to a gravatar system, or whatever.

Getting pretty exciting, these things they are!

James.

Steve Ivy

unread,
Dec 22, 2007, 10:30:13 PM12/22/07
to diso-p...@googlegroups.com
I only have a minute, but...

Stephen, I like the work you're doing on the contacts. I've made you a
member (ie, committer) on the repository, and if you visit
diso.googlecode.com and view the source tab, it will give you
instructions for checking out the repo over https.

Also, I've added an experimental branch under wp-diso-contactlist. Go
ahead and commit your changes to the experimental branch and we can
all review them.

Cheers,

--Steve


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

Stephen Paul Weber

unread,
Dec 22, 2007, 10:37:43 PM12/22/07
to diso-p...@googlegroups.com
I've committed my version to the experimental branch :)

James D Kirk

unread,
Dec 22, 2007, 11:15:08 PM12/22/07
to DiSo Project
Guessing one has to have "Project Member" status to see that
experimental branch? I can do more testing if necessary; guess I'd
need to become one of the "in group" ;)

Let me know.

James D Kirk
http://jamesdkirk.com

Steve Ivy

unread,
Dec 22, 2007, 11:54:32 PM12/22/07
to diso-p...@googlegroups.com
No, anyone can see and check it out. It's located under:

<repo>/wordpress/wp-diso-contactlist/branches/experimental

--Steve

Stephen Paul Weber

unread,
Dec 23, 2007, 9:34:54 PM12/23/07
to diso-p...@googlegroups.com
I have committed some small CSS changes that make it look better (due
to CSS selectors getting in each other's way -- there can only be one
background)

I have also reimplemented user_from_uri to query the OpenID tables
directly, so they cannot be spoofed. This function (along with
openid_for_user) should definitely be moved into wp-openid (so one
plugin does not rely on the table structure of another, and so other
plugins could use it).

This whole thing could maybe be abstracted a bit though, so that other
plugins can somehow be worked in. For example, people can log into my
blog with Facebook accounts. It wold be neat if the plugin detected
those who are also on my contact list and noted that as well -- but it
would suck to have to build detection code for every login type into
this plugin. Not sure how abstraction would look yet -- ideas?

--

Stephen Paul Weber

unread,
Dec 23, 2007, 10:56:50 PM12/23/07
to diso-p...@googlegroups.com
> If we can create the functionality that will allow me to display not
> only their name and web address, but a picture/avatar image of them,
> now we are really getting somewhere. When someone hits my site right
> now (http://boldlygoing.com), they'll see output from the three big
> networking sites: MBL, BC, and BumpZee. But all that output shows is
> whom from those networks have viewed my pages. Is there any reason
> that we can't create similar functionality with our work that could
> also show a visual representation of those that have left comments at
> my blog, and are DiSo-enabled? I would think that should be very easy
> given all that's swirling at this group right now.

Something like you now see in the sidebar of my blog, maybe?

James D Kirk

unread,
Dec 24, 2007, 12:10:45 PM12/24/07
to DiSo Project
Something just like that. With the options of displaying more (names
with links to the sites might be nice, etc.)

What exactly have you done there Stephen? Is it something new or a
continuance of some other work you've included in one of these
plugins?

Very nice, by the way!

James.

Stephen Paul Weber

unread,
Dec 25, 2007, 11:04:25 AM12/25/07
to diso-p...@googlegroups.com
It's based on my hcard import plugin and my allavatars plugin. It has
the option to display names and the images/names link to the websites.

--

James D Kirk

unread,
Dec 25, 2007, 1:47:03 PM12/25/07
to DiSo Project
Ah, very cool. I've got one of those, and if you have the all avatars
plugin available at your site, I'll grab that as well. If I have some
time during my NYC trip, I'll try and get them installed on my dev
server and play around with their output. If' anyone in the group is
in or going to be in NYC from the 26th to the 29th let me know and
we'll grab something warm to drink and chat about DiSo or anything
else of interest.

my Dopplr: http://www.dopplr.com/traveller/jamesdkirk


James D Kirk
http://Boldlygoing.com
gTalk: ja...@boldlygoing.com
GrandCentral: 928.852.0522

Stephen Paul Weber

unread,
Dec 25, 2007, 6:06:50 PM12/25/07
to diso-p...@googlegroups.com
I have updated the experimental branch (at rev 77)

This update includes the option to display contacts grouped by category.

The code for generating the list now contains no SQL (yay!) but I
think it will only work on WP 2.1+

It is also easy for the code to generate the list for just one
category now, although the UI does not allow for this yet.

Reply all
Reply to author
Forward
0 new messages