Action 'areas'

0 views
Skip to first unread message

Stephen Paul Weber

unread,
Apr 25, 2008, 4:27:50 PM4/25/08
to DiSo Project
There are some actions which it may make sense to have integrated into
the interface of a DiSo profile (such as 'add as friend') but which
may make sense, at least for now, to have the logic client side. I
have created a set of 'add as friend' bookmarklets, for example, that
detect hCards on a page, list them, and link to your Wordpress site
(or wherever) to have you add them as a friend/contact. It would be
cool if such a link/button could be injected into a nice-looking place
on the page, that is, if a nice hook could be provided for client side
implementations (bookmarklets, greasemonkey scripts, et al) to use if
they find it. Something like this:

<a class="diso-contact-add" title="NAME" href="PROFILE URL"
style="display:none;"><img src="/button.png" alt="Add me as a friend"
/></a>

Script comes along, executes //*[@class='diso-contact-add'] on the
page, finds that there's a nice button just waiting to be hooked onto,
and does this:

node.href = 'http://my.site.com/wp-admin/link-add.php?name=' +
node.title + '&linkurl=' + node.href;
node.style.display = 'block';

et voila! a working, nicely integrated, button for add as friend.

--
- Stephen Paul Weber (Singpolyma)

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

Steve Ivy

unread,
Apr 25, 2008, 4:39:05 PM4/25/08
to diso-p...@googlegroups.com
I love the idea, it might work a bit better like this:

* create an add-friend feature javascript widget, possibly hosted on
diso-project.org or distributedsocial.net. this widget creates a
hidden button on your site that says "add me as a friend"
* a companion script is in the wp-admin/options. it sets a cookie with
your diso-site url, so that the cookie host is the same
* when you surf to a diso site, the javascript finds the diso cookie
and unhides the friend button
* clicking the button loads a popup window pointing to YOUR
wp-admin/options to add a friend, with the stuff pre-populated.

thoughts?

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

Stephen Paul Weber

unread,
Apr 25, 2008, 4:42:21 PM4/25/08
to diso-p...@googlegroups.com
This assumes that the user is allowing Javascript to manipulate
cookies - although I guess most users are.

We could easily do both. If the widget finds the cookie, it unhides,
otherwise it ouputs in a way that's easy for other scripts to latch
onto.

Chris Messina

unread,
Apr 25, 2008, 4:45:16 PM4/25/08
to diso-p...@googlegroups.com
I like the idea of having a set of bookmarklets that come with DiSo that you add to your browser bookmark bar and allow you to do "things" -- like join an ad-hoc group, to add a friend, and to execute commands discovered in XRDS-Simple documents that are found in the head of documents.

The browser aspect of this is key ... and I really want to start pushing browser customizations through Fluid and Prism apps... especially since they support Greasemonkey natively.

BTW, you guys might take a look at Spyder X, a browser built for MySpace, that might give us some ideas of how we could built a browser-layer on top of a distributed/portable social network:


Obviously SpyderX is keyed to MySpace, so the idea would be for us to enable all the functionality that SpyderX offers, but through the DiSo technologies.

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
Reply all
Reply to author
Forward
0 new messages