[buddypress-dev] Common Ticketing/Action API?
Casey Bisson
casey.bisson at gmail.com
Tue May 5 12:21:31 GMT 2009
WP and WPMU both have a couple different ways they generate tickets
(for password resets, email confirmation, etc) that are later
confirmed by the user (usually by clicking a one time link).
The BuddyPress forums, meanwhile, have hosted a bit of discussion
about invitation systems which would probably also work similarly in
that an email would be sent to the invitee with a one time link of
some sort.
And a site I'm working on has needs like that, plus the need to
confirm phone numbers (via text messages), allow password resets by
phone (again, via text messages), invite people with different kinds
of relationships (friend, family, teacher, student), and other such.
Wouldn't it be a bit easier if there were a common way of tracking the
one-time "tickets" that are used for these different actions?
I've put together some code as a plugin that does pretty much what I'm
talking about:
http://maisonbisson.com/blog/post/13862/wordpress-action-ticketing-api/
http://plugins.trac.wordpress.org/browser/wp-ticket-framework/trunk/ticket-framework.php
I'll soon be posting another plugin that uses the API to confirm email
address changes, allow people to enter (and confirm) a secondary email
address, and does the same for phone numbers.
The simple idea is that a ticket is a unique string associated with an
action (in the do_action() sense) and some data that is sent to that
action. The API could be used to keep track of short URLs (the ticket
doesn't have to be deleted after the first use), or nuclear launch
codes (where deleting the ticket is kind of redundant).
Is this useful to anybody else?
--Casey
http://maisonbisson.com/
http://www.plymouth.edu/
http://about.scriblio.net/
More information about the buddypress-dev
mailing list