Previous Thread
Next Thread
Print Thread
Rate Thread
XMPP Shoutbox bridge #318563 04/05/2010 1:49 PM
Joined: May 1999
Posts: 1,715
Gardener Offline OP
Addict
OP Offline
Addict
Joined: May 1999
Posts: 1,715
The last couple of days I've been hacking on a small script that lets users use the shoutbox via a jabber/xmpp client.

It's not a real gateway though. It's a simple client that connects to an xmpp conference room as a user. Then it inserts everything written in the room to the shoutbox, and everything written in the shoutbox is sent to the chat room.

If a user has entered their Jabber ID in a profile field and are using that id to chat, the messages will be shown as that user. Otherwise the messages will be entered as the anonymous user, with the JID as the name.

Messages from the shoutbox sent to the chat room will be prepended with the UBB.threads username.

The script requires Python 2.6 and a couple of libraries (MySQLdb and Twisted).

The script can be found here:
http://github.com/ollej/shoutbridge

There's still a few kinks to work out, but it works more or less right now.

Last edited by Gardener; 06/03/2010 6:49 AM. Reason: Updated link
Sponsored Links
Re: XMPP Shoutbox bridge [Re: Gardener] #318569 04/18/2010 1:00 PM
Joined: May 1999
Posts: 1,715
Gardener Offline OP
Addict
OP Offline
Addict
Joined: May 1999
Posts: 1,715
This silly little program now also has support for running without direct access to the MySQL database.

This means that the script can run anywhere and just relay info from any shoutbox to a xmpp/jabber conference room. This mode does not however support relaying messages back from the conference room to the shoutbox yet. Since that would require an added script in the UBB.threads installation.

Re: XMPP Shoutbox bridge [Re: Gardener] #318615 09/05/2010 12:25 PM
Joined: May 1999
Posts: 1,715
Gardener Offline OP
Addict
OP Offline
Addict
Joined: May 1999
Posts: 1,715
OK, here's an update on this little script...

The script can now run independently of the UBB.threads server. It will read and post messages using a new server-side script. So it will work whether or not you have direct access to the UBB.threads database from where you are running the Shoutbridge software. It is also possible to run the script without UBB.threads as a Jabber/XMPP bot only.

There is also a plugin system added, with a lot of plugins created. This makes it possible to add functionality quite easily without modifying the script itself.

Among the available plugins is a Twitter integration. This means that all messages can be mirrored out to a twitter account. It can also read mentions to the twitter account and insert these into the shoutbox.

I've been chatting via Adium on the Mac to my site quite frequently in the last months. And I think some of the plugins have increased the usage of web chat as well. One of the commands is an "ice breaker", which can ask questions for the visitors to answer.

More info can be found in the readme on the development site:
http://github.com/ollej/shoutbridge


Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,787
Joined: January 2000
Forum Statistics
Forums63
Topics37,493
Posts293,672
Members13,829
Most Online5,166
Sep 15th, 2019
Top Posters(All Time)
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,787
Greg Hard 4,625
Top Posters(30 Days)
isaac 5
DCPhil 2
Gizmo 1
Today's Statistics
Currently Online 621
Topics Created 0
Posts Made 1
Users Online 2
Birthdays 17
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2019 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Snapshot build 20191117.dev)
Responsive Width:

PHP: 5.4.45 Page Time: 0.033s Queries: 21 (0.011s) Memory: 3.2338 MB (Peak: 3.4435 MB) Data Comp: Zlib Server Time: 2019-11-17 21:04:31 UTC
Valid HTML 5 and Valid CSS