Previous Thread
Next Thread
Print Thread
Rate Thread
#318563 04/05/2010 2:49 PM
Joined: May 1999
Posts: 1,715
Addict
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 7:49 AM. Reason: Updated link
Sponsored Links
Joined: May 1999
Posts: 1,715
Addict
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.

Joined: May 1999
Posts: 1,715
Addict
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


Link Copied to Clipboard
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
Posts: 70
Joined: January 2007
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)