Chat by Siropu

Chat by Siropu [Paid] 1.25.1

No permission to buy (€29.99)
Another thing we noticed:

Let's say a user goes to the "General Chat Room".

Then they launch a second browser tab, navigate to chat again, but choose a private room. Then, the messages they type in one tab/room will go to both rooms. I can see this being a problem.
 
Last edited:
The maximized mode increases the chat's height. If you have changed the height via style properties or CSS, you probably won't see any difference.
 
@Siropu getting more and more of these errors,

Code:
ErrorException: Undefined index: message - library/XenForo/ViewPublic/Helper/Message.php:27
Generated By: Jacob Fox, 11 minutes ago

Code:
#0 /var/www/vhosts/wweforums.net/httpdocs/library/XenForo/ViewPublic/Helper/Message.php(27): XenForo_Application::handlePhpError(8, 'Undefined index...', '/var/www/vhosts...', 27, Array)
#1 /var/www/vhosts/wweforums.net/httpdocs/library/XenForo/ViewPublic/Helper/Message.php(112): XenForo_ViewPublic_Helper_Message::getBbCodeWrapper(Array, Object(XenForo_BbCode_Parser), Array)
#2 /var/www/vhosts/wweforums.net/httpdocs/library/Siropu/Chat/ViewPublic/Public.php(31): XenForo_ViewPublic_Helper_Message::bbCodeWrapMessages(Array, Object(XenForo_BbCode_Parser))
#3 /var/www/vhosts/wweforums.net/httpdocs/library/XenForo/ViewRenderer/Abstract.php(227): Siropu_Chat_ViewPublic_Public->renderJson()
#4 /var/www/vhosts/wweforums.net/httpdocs/library/XenForo/ViewRenderer/Json.php(88): XenForo_ViewRenderer_Abstract->renderViewObject('Siropu_Chat_Vie...', 'Json', Array, 'siropu_chat_mes...')
#5 /var/www/vhosts/wweforums.net/httpdocs/library/XenForo/FrontController.php(605): XenForo_ViewRenderer_Json->renderView('Siropu_Chat_Vie...', Array, 'siropu_chat_mes...', NULL)
#6 /var/www/vhosts/wweforums.net/httpdocs/library/XenForo/FrontController.php(158): XenForo_FrontController->renderView(Object(XenForo_ControllerResponse_View), Object(XenForo_ViewRenderer_Json), Array)
#7 /var/www/vhosts/wweforums.net/httpdocs/index.php(13): XenForo_FrontController->run()
#8 {main}

Code:
array(3) {
  ["url"] => string(44) "https://wweforums.net/index.php?chat/refresh"
  ["_GET"] => array(1) {
    ["chat/refresh"] => string(0) ""
  }
  ["_POST"] => array(12) {
    ["room_id"] => string(1) "0"
    ["last_id"] => string(5) "14857"
    ["inverse"] => string(1) "0"
    ["hide_bot"] => string(1) "0"
    ["no_users"] => string(1) "0"
    ["show_ignored"] => string(1) "0"
    ["all_pages"] => string(1) "1"
    ["embedded"] => string(1) "0"
    ["_xfRequestUri"] => string(47) "/raw-november-23rd-2015-live-discussion.t47808/"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfToken"] => string(8) "********"
    ["_xfResponseType"] => string(4) "json"
  }
}
 
I've made some changes for the next release and that should fix these errors. I don't know when I'll be releasing the next version because at the moment I have some technical difficulties and can't do much codding. Hopefully by the end of this week.
 
Hi @Siropu, just like @Solidus I am getting some issues too, They started around 4am GMT this morning and nobody can submit messages, the error log is below.

ErrorException: preg_match(): Unknown modifier '/' - library/Siropu/Chat/Helper.php:428
Generated By: iMage, Today at 5:47 AM
Stack Trace
#0 [internal function]: XenForo_Application::handlePhpError(2, 'preg_match(): U...', '/home/~removed~...', 428, Array)
#1 /home/~removed~/public_html/library/Siropu/Chat/Helper.php(428): preg_match('/\\://', 'allo', Array)
#2 /home/~removed~/public_html/library/Siropu/Chat/ControllerPublic/Chat.php(1046): Siropu_Chat_Helper::isSmilieLimitReached('allo', '3')
#3 /home/~removed~/public_html/library/XenForo/FrontController.php(351): Siropu_Chat_ControllerPublic_Chat->actionSubmit()
#4 /home/~removed~/public_html/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#5 /home/~removed~/public_html/index.php(13): XenForo_FrontController->run()
#6 {main}
Request State
array(3) {
["url"] => string(60) "http://www.generaldiscussionforums.com/index.php?chat/submit"
["_GET"] => array(1) {
["chat/submit"] => string(0) ""
}
["_POST"] => array(13) {
["message"] => string(4) "allo"
["room_id"] => string(1) "0"
["last_id"] => string(4) "2944"
["inverse"] => string(1) "0"
["hide_bot"] => string(1) "0"
["no_users"] => string(1) "0"
["show_ignored"] => string(1) "0"
["all_pages"] => string(1) "0"
["embedded"] => string(1) "0"
["_xfRequestUri"] => string(1) "/"
["_xfNoRedirect"] => string(1) "1"
["_xfToken"] => string(8) "********"
["_xfResponseType"] => string(4) "json"
}
}

This is really strange though as I haven't touched the server in days unless an automatic update caused this?

Please note I edited out my Apache username with ~removed~

EDIT: I've also sent a ticket on your site.
 
Last edited:
It will be fixed in the next release. This can be fixed by disabling the chat smilie limit. There seems to be a conflict with some smilies.
 
  • Like
Reactions: W.D
Suggestion:
Add Minimum Interval Times before Bot send response of the same keyword. Without limitation Bot will send too many chat if our users are talking about a certain keyword. For other option is add Minimum Interval chat # before sending the same response.

0cbc33cdcd47e5d71805f44b8d632a16.png
 
I'm trying to add "w/" as a whisper command.

I tried doing this:
Code:
if (inputData.match(/whisper/)) {
                    chatInput.val(inputData.replace(']', ', ' + username + ']')).focus();
                } else if {
                    chatInput.val('/whisper [' + username + '] ').focus();
                } else {
                    chatInput.val('/w [' + username + '] ').focus();

But that didn't work. Any suggestions?
 
Back
Top Bottom