phpFreeChat and MyBB: User/Group Identifying

I’ve already posted blogs on both my way of configuring phpFreeChat to authenticate users based on multiple groups in phpBB3, as well as identifying users and authenticating based on their groups in SMF 2.x.

Well, I’ve also posted up a sample phpFreeChat configuration for identifying and authenticating users based on groups in MyBB 1.6.x. Believe it or not, this was the most difficult of the three to get working – and that was thanks to MyBB’s extremely lacking documentation on its functions. If you decide to use my example, you’ll see that I also include some conditions, such as keeping the phpFreeChat configuration file (the file your chatters access to open phpFreeChat) within the MyBB directory. This isn’t really a big deal, however, because you can place these files anywhere outside of phpFreeChat’s installation directory and simply point them to it when loading the chat application. In fact, this actually caused me to stop pointing to my phpFreeChat directory from phpBB and SMF, and instead follow suit and starting placing the php files that held the configurations for them within the board directories as well.

But the point is that using MyBB required me to do this. I did, however, have a separate configuration arrangement with MyBB that may have contributed to the problem. My structure for MyBB was – but I had the forums accessed at – mirroring the mybb directory to the forums parent directory – which also required some particular settings in MyBB’s configuration for paths and what-not. I don’t know if this could be the reason that querying user information from MyBB required the file that was doing it to be in the MyBB directory or not, and I didn’t want to bother re-installing MyBB just to test it. If anyone else does and notices a difference, feel free to share your experiences. Either way, I hope the example configuration I’ve posted helps someone else who might be trying to query MyBB user info and group assignment for other purposes outside of MyBB itself.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.