<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
* 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
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.