[OGo-Discuss] Bug 1852: support creation of xmpp: field typesin OGo
Sebastian Reitenbach
discuss@opengroupware.org
Sat, 24 Mar 2007 19:49:18 +0100
discuss@opengroupware.org wrote:
> > Question #2) If the Bug#1852 solution is used perhaps we should consider
> > created an extended attribute type of each of the *major* IM service
> > types so a corresponding URL can be generated. XMPP, OSCAR (AIM/ICQ),
> > MSN, SIP, YMSG (Yahoo) and Skype? (ex types 20, 21, 22, 23, 24, and 25?
> > Can each of these services be referenced via URL?
>
> According to wikipedia AIM users can be addressed via URL like:
> <a href="aim:goim?screenname=notarealuser">Send Message</a>
>
If it is the way it shall go, as I submitted the patch, I can say it would
be easy to add url types for other kinds of instant messaging types.
But in the end, wouldn't it be more flexible to add a Default like
OGoExtendedUrlAttributesMap = (
{ type = email; urlpattern = "mailto:%@"; },
{ type = xmpp; urlpattern = "xmpp:%@"; },
{ type = aim; urlpattern = "aim:goim=screenname=%@"; },
{ type = url; urlpattern = "%@"; },
);
make at least the types url and email mandatory, as they are used already.
and use this in the link generation method. I think that would be easy to
implement.
kind regards
Sebastian