toksta* chat plugin for BuddyPress

The toksta* chat plugin for BuddyPress makes it easy to add toksta* chat and webcam to your BuddyPress site.


The plugin doesn’t working any more. A new version will be released soon.

Features:

  1. Chat widget, click on an online user to invite to a chat.
  2. Chatbar, shows friends online, number of users online, set online status (online/offline) etc.
  3. Localized plugin , makes it easy to translate.
  4. Site admin control panel.

Prerequisite:

  1. BuddyPress (doh!)
  2. toksta* account (it’s free)

Tested: Using my Mac, the plugin has been tested with

  • IE 6.x on Windows XP
  • IE 7.x on Windows Vista
  • FireFox 3.x and Safari 3.2.1 on Mac OS X 10.5.6

Version history (change log):

0.93 (Mars 2 2009) NOTE, does not support BuddyPress r1303+, a version supporting r1303+ will be released soon

  • Bugfix, fixed bug in ps_bp_toksta_my_friends.php (thanks Miguael)

0.92 (Mars 1 2009)

  • Bugfix, max members to show in chat widget
  • Moved “max members to show in chat widget” to  Site Admin->toksta* configuration
  • Updated ps_bp_toksta.po

0.91 (February 27 2009)

  • Updated  the ps_bp_toksta.po file (previous version was empty, thank you Dan for pointing out this)

0.9 (February 26 2009)

  • First public release

Installation:

  1. Download the latest zip file and extract the files
  2. Copy ps_bp_toksta.php to wp-content/mu-plugins
  3. Copy ps_bp_toksta.po to wp-content/languages
  4. Copy ps_bp_toksta_my_friends.php to your WordPress MU root folder

Configuration:

  1. In the BuddyPress dashboard, open Site Admin -> toksta* configuration
    1. Enter your Application ID and Application Password. You’ll find this in your control panel at toksta* (toksta* chat plugin for BuddyPress will not work until you’ve added the application id and application password).
    2. Choose Show Site Admin if you want do show  site admin in Chat
  2. In the BuddyPress dashboard, open Apperance -> Widgets (the Chat widget control is only available to the site admin)
    1. Add the Chat widget to your BuddyPress theme.
    2. Select Edit and set Maximum number of members to show Moved to Site Admin -> toksta* configuration
  3. Go to toksta* and configure the chat and chatbar. If you want to display a friends list in the chatbar, on the settings page, select import friends and add http://example.org/ps_bp_toksta_my_friends.php?my_user_id=%userid% (example.org is your BuddyPress site).
    Security tips: rename ps_bp_toksta_my_friends.php to “my secret filename”.php
  4. If you need to translate the plugin, in wp-content/languages:
    1. Copy ps_bp_toksta.po to ps_bp_toksta-countrycode_LANGUAGECODE.po e.g: ps_bp_toksta-no_NB.po
    2. Edit the file using poedit or its like, and save the .mo file

If you are using the plugin, it would be nice if you posted the url to your site in a comment to this post.

btw, the music in the video is by Ugress playing Redrum

26 thoughts on “toksta* chat plugin for BuddyPress

  1. miguael

    WOW – thanks! This seems very cool! Could it be that the friend import doesn’t work yet? Or am I missiong something? This would mean, that my BP-Friends would be imported to the chat – right?!

    Reply
  2. tekanji

    4. Copy ps_bp_toksta_my_friends.php to your blog root

    I suggest changing “blog root” to “WordPress MU root folder” in order to avoid confusion. I thought the “blog root” was the individual blog root directory, not the WPMU directory.

    Reply
  3. Jeff

    Everything looks great but the chat widget is HUGE. It’s taking up a majority of the sidebar. Any clues on fixing this?

    Reply
  4. Jeff

    PerS,

    Thanks for the response, I realized that it wasn’t working in the main body of the page but when it’s placed in the sidebar, it works just fine.

    Thanks!

    Jeff

    Reply
  5. Ivan Petkov

    works great, it’s very much like facebook kind of chat, but not exactly, I have some issues with accept/deny buttons in internet explorer they just expand to the widest possible button.

    Reply
    1. PerS Post author

      If a user has a lot of friends, displaying the friends list in the chatbar can slow down loading the toksta javascript.

      Reply
  6. bebop

    on the new trac release of buddypress
    all the files from buddypress are in a different folder so that your plugin seems not to find bd-core.php

    i think you should have a look to fix this in advance

    Reply
    1. PerS Post author

      I know, caught me with surprise (did a svn up). I’m working on next release, will be a wpmu 2.7.1 and up version. The current one will be the only one supporting wpmu 2.7.0

      Reply
  7. Paul

    I’m getting “An error occured. This Chat-Session is invalid”
    I’m sorry, I’m not familiar how to understand the versions so I’m on BP RC1 and WPMU 2.7 using 0.93

    Are they incompatible or should they work?

    Thanks

    Reply
  8. Ed

    Hi, How to uninstall it. I remove all the files but there are tabs in the left bottom corner of the site. Please advise.

    Reply
  9. Aaron

    Thanks for your great plugin, this is an amazing feature!
    I’m building (hopefully) an academic group site for Game Studies, and I know the profs will love this.

    One question- the users are integrated very well, and I’ve tested chat, but adding a friend in buddypress doesn’t add a user to your friend menu in the chat bar at the bottom. Is this normal?

    Thanks!~

    Reply
  10. PerS Post author

    @paul, if you are running pre BuddyPress r1303, there shouldn’t be any problems. From the error you get, check if your toksta* Application ID and Application Password is correct (without leading/trailing space).

    @Ed, flush the browser cache. toksta is written in javascript, så there might be “remains” even though you’ve removed the plugin files.

    @Aaron, try to open the url to your ps_bp_toksta_my_friends.php?my_user_id=X, where X is a userid with friends. It should return a XML page

    Reply
  11. Paul

    hmm, frustrating, those are not the problems causing the error. At all possible that it is related to Toksta’s release of premium tiers? I see that the free version no longer support friend syncronization; would that break the capability here?

    Reply
  12. PerS Post author

    @paul .. Got an email today from toksta about their new pricing model and feature change. I have no problem understanding their need for money, and we still get webcam chat for free. I will during the next days rewrite my toksta plugin to fit the new features.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">