Siropu
Well-known member
Usernames in message content (mentions, bot notifications) cannot be rich.how come the usernames in chat can be rich?
What add-on have you installed that adds the avatar in mentions?
Usernames in message content (mentions, bot notifications) cannot be rich.how come the usernames in chat can be rich?
Usernames in message content (mentions, bot notifications) cannot be rich.
What add-on have you installed that adds the avatar in mentions?
Because the chat displays the username using the [USER] BBcode which doesn't support rich usernames. Unless I use a custom BBCode instead. We'll see.Why cant it be?
Try this in extra.less template:Here is the ads-on
.siropuChatMessageText .avatar
{
display: none;
}
Because the chat displays the username using the [USER] BBcode which doesn't support rich usernames. Unless I use a custom BBCode instead. We'll see.
All Pages mode doesn't work in UI.X themes.
I will make some changes.
Stack trace
#0 src/addons/Siropu/Chat/Pub/View/Chat.php(31): XF::handlePhpError(8, '[E_NOTICE] Unde...', 's...', 31, Array)
#1 src/XF/Mvc/Renderer/AbstractRenderer.php(77): Siropu\Chat\Pub\View\Chat->renderJson()
#2 src/XF/Mvc/Renderer/Json.php(60): XF\Mvc\Renderer\AbstractRenderer->renderViewObject('Siropu\\Chat:Cha...', '', Array)
#3 src/XF/Mvc/Dispatcher.php(332): XF\Mvc\Renderer\Json->renderView('Siropu\\Chat:Cha...', '', Array)
#4 src/XF/Mvc/Dispatcher.php(303): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#5 src/XF/Mvc/Dispatcher.php(44): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'json')
#6 src/XF/App.php(1879): XF\Mvc\Dispatcher->run()
#7 src/XF.php(328): XF\App->run()
#8 index.php(13): XF::runApp('XF\\Pub\\App')
#9 {main}
Request state
array(4) {
["url"] => string(22) "/index.php?chat/update"
["referrer"] => string(61) "https://XXX.XX/resources/resource.6/"
["_GET"] => array(1) {
["chat/update"] => string(0) ""
}
["_POST"] => array(11) {
["channel"] => string(4) "room"
["room_id"] => string(1) "1"
["last_id"] => array(1) {
[3] => string(3) "198"
}
["conv_id"] => string(1) "0"
["conv_only"] => string(1) "0"
["conv_last_active"] => string(10) "1512382592"
["is_chat_page"] => string(5) "false"
["_xfRequestUri"] => string(45) "/resources/resource.6/"
["_xfWithData"] => string(1) "1"
["_xfToken"] => string(8) "********"
["_xfResponseType"] => string(4) "json"
}
}
Stack trace
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Template public...', 's...', 564, Array)
#1 src/XF/Template/Templater.php(564): trigger_error('Template public...', 512)
#2 src/XF/Template/Templater.php(519): XF\Template\Templater->getTemplateData('public', 'alert_siropu_ch...')
#3 src/XF/Template/Templater.php(1229): XF\Template\Templater->getTemplateCode('public', 'alert_siropu_ch...')
#4 src/XF/Alert/AbstractHandler.php(67): XF\Template\Templater->renderTemplate('alert_siropu_ch...', Array)
#5 src/XF/Entity/UserAlert.php(67): XF\Alert\AbstractHandler->render(Object(XF\Entity\UserAlert))
#6 [internal function]: XF\Entity\UserAlert->render()
#7 src/XF/Template/Templater.php(920): call_user_func_array(Array, Array)
#8 internal_data/code_cache/templates/l1/s6/public/alert_macros.php(18): XF\Template\Templater->method(Object(XF\Entity\UserAlert), 'render', Array)
#9 src/XF/Template/Templater.php(643): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, Array)
#10 internal_data/code_cache/templates/l1/s6/public/account_alerts.php(28): XF\Template\Templater->callMacro('alert_macros', 'row', Array, Array)
#11 src/XF/Template/Templater.php(1230): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array)
#12 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('account_alerts', Array)
#13 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#14 src/XF/Mvc/Dispatcher.php(332): XF\Mvc\Renderer\Html->renderView('XF:Account\\Aler...', 'public:account_...', Array)
#15 src/XF/Mvc/Dispatcher.php(303): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#16 src/XF/Mvc/Dispatcher.php(44): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#17 src/XF/App.php(1879): XF\Mvc\Dispatcher->run()
#18 src/XF.php(328): XF\App->run()
#19 index.php(13): XF::runApp('XF\\Pub\\App')
#20 {main}
Request state
array(4) {
["url"] => string(15) "/account/alerts"
["referrer"] => string(28) "https://XXX.XX/login/login"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
You can't. It only works with all pages mode.Can I have this as well as the chat window above the forum list?
Where do you want to add links?Can I add custom links to that chat bar?
We use essential cookies to make this site work, and optional cookies to enhance your experience.