Shoutbox by Siropu

Shoutbox by Siropu [Paid] 1.10.2

No permission to buy (€14.99)
Siropu updated Shoutbox by Siropu with a new update entry:

New Features, Improvements & Bug Fixes

New Features
Added active user list - Will display a simple list of active users at the bottom of the shoutbox that will refresh every minute.

Added top user list - Will display a list of top x users based on their number of shouts. By default 25 and can be changed from admin options.

Improvements
Made some changes to auto "loading more shouts" feature to require "View archive" permission.
Allow only admins to ban moderator/staff users.
Added shout action links into a menu...

Read the rest of this update entry...
 
I get this error when the user uses emoji.
Code:
Server error log
XF\Db\Exception: MySQL query error [1366]: Incorrect string value: '\xF0\x9F\x91\xB3\xE2\x80...' for column 'shout_message' at row 1 src/XF/Db/AbstractStatement.php:230
Generated by: erikvomland Dec 12, 2021 at 11:06 PM
Stack trace
INSERT  INTO `xf_siropu_shoutbox_shout` (`shout_message`, `shout_user_id`, `shout_date`) VALUES (?, ?, ?)
------------

#0 src/XF/Db/Mysqli/Statement.php(198): XF\Db\AbstractStatement->getException('MySQL query err...', 1366, '22007')
#1 src/XF/Db/Mysqli/Statement.php(79): XF\Db\Mysqli\Statement->getException('MySQL query err...', 1366, '22007')
#2 src/XF/Db/AbstractAdapter.php(96): XF\Db\Mysqli\Statement->execute()
#3 src/XF/Db/AbstractAdapter.php(223): XF\Db\AbstractAdapter->query('INSERT  INTO `x...', Array)
#4 src/XF/Mvc/Entity/Entity.php(1514): XF\Db\AbstractAdapter->insert('xf_siropu_shout...', Array, false)
#5 src/XF/Mvc/Entity/Entity.php(1246): XF\Mvc\Entity\Entity->_saveToSource()
#6 src/addons/Siropu/Shoutbox/Pub/Controller/Shoutbox.php(166): XF\Mvc\Entity\Entity->save()
#7 src/XF/Mvc/Dispatcher.php(352): Siropu\Shoutbox\Pub\Controller\Shoutbox->actionSubmit(Object(XF\Mvc\ParameterBag))
#8 src/XF/Mvc/Dispatcher.php(263): XF\Mvc\Dispatcher->dispatchClass('Siropu\\Shoutbox...', 'Submit', Object(XF\Mvc\RouteMatch), Object(Siropu\Shoutbox\Pub\Controller\Shoutbox), NULL)
#9 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(Siropu\Shoutbox\Pub\Controller\Shoutbox), NULL)
#10 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#11 src/XF/App.php(2351): XF\Mvc\Dispatcher->run()
#12 src/XF.php(517): XF\App->run()
#13 index.php(20): XF::runApp('XF\\Pub\\App')
#14 {main}
Request state
array(4) {
  ["url"] => string(26) "/index.php?shoutbox/submit"
  ["referrer"] => string(23) "https:"
  ["_GET"] => array(1) {
    ["shoutbox/submit"] => string(0) ""
  }
  ["_POST"] => array(6) {
    ["last_id"] => string(5) "68221"
    ["shout"] => string(52) "👳‍♂️👳‍♀️👮‍♂️👮‍♀️"
    ["_xfRequestUri"] => string(1) "/"
    ["_xfWithData"] => string(1) "1"
    ["_xfToken"] => string(8) "********"
    ["_xfResponseType"] => string(4) "json"
  }
}
 
When I delete or edit my own messages the results don't reflect for other users unless they refresh the page. Is that suppose to be that way?
 
Siropu updated Shoutbox by Siropu with a new update entry:

New Feature

Added "Real-Time" mode which allows you to improve performance and server load by calling a JSON file on the server every second, instead of querying the database every x seconds, handling more active users at the same time and performing shout edits and deletes almost instantly.

Please note that while using this option, shouts will be accessible to anyone (who knows what they are doing), so do not use it if you want total privacy.

Also, if bandwidth is a server limitation on your web...

Read the rest of this update entry...
 
Since the new update, I have this that appears...
I've noticed that. The reason is, the add-on has the file empty at first and it gets modified when "real-time" mode is enabled. Will try a different solution, like creating the json file when enabling the option.
 
I've noticed that. The reason is, the add-on has the file empty at first and it gets modified when "real-time" mode is enabled. Will try a different solution, like creating the json file when enabling the option.
Hello, thank you for your answer :)
Doesn't matter then?
Cordially
 
How to clear top users list? Even after running a prune command to delete all shouts the list still displays top users.
 
Top Bottom