Per Søderlind

I code for fun

  1. wp-plugins
  2. toksta* chat plugin for BuddyPress

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.


  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.


  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


  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


  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 ( 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




AHP Sitewide Recent Posts Widget for WPMU


  1. vida

    This is really well done. Thank you.

  2. 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?!

  3. 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.

  4. miguael

    Thanks for the tipps – but I think I have installed it correctly. But when I call your link (in my case it shows me just a blank page…
    Any other ideas?

  5. Jeff

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

  6. miguael

    Perfekt – it works :-) now…

  7. Jeff


    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.



  8. 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.

  9. great job. Thanks a lot for this.

  10. Alberto

    Thanks a lot for toksta* chat

  11. Looks good so far. I’ll be interested to see it in action when there’s more users… configuration was easy

    • PerS

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

  12. NBG-RAP


    how can I visit the chat or invite someone to chat?

  13. Can you add this to the WP plugin repo so it shows up on the site?


  14. 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

    • PerS

      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

  15. 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?


  16. 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.

  17. 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?


  18. PerS

    @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

  19. 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?

  20. PerS

    @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.

Leave a Reply

Powered by WordPress & Theme by Anders Norén