Open shermdog opened 11 years ago
Thanks. I encourage you to share this with the SMF community if you have a place there you can show them. Glad chat is working for you. I hear there are session issues with the SMF integration, if you have any input on that issue it would be appreciated.
The only issue I've had w/ SMF was having logout set as_POST (didn't work for me). I based my install off the older SMF module floating around and then updated the chat source files. (I manually merge changes now as I've tweaked too many files to wholesale replace. I also don't use Shoutbox, so I think that helps quite a bit.
Cool, thanks.
I'll be removing the change to logout as POST and instead adding a security token to the logout to handle the exploit.
UPDATE: The code in js/lang/en.js seems to cause issues for me as well. I found that it causes the chat to blank out, and no one is able to log in or out.
Nice concept, and I hope someone more talented than I gets a similar script working.
I've extended chat to support SMF karma. The code is not the cleanest or most secure (not checking if users are allowed to modify karma or limiting how many times per hour they modify), but my user base is small and trusted.
Hopefully this is a good start for anyone wanting to build on this.
The syntax in chat is /points (username) /crisp username /soggy username
(That's what we call good and bad :)
lib/class/CustomAjaxChat.php
js/custom.js
js/lang/en.js (whatever languages you support.