I’m building a community with posting that allows for multiple authors.
I would like to allow my users to chat to each other while they work together on a post.
Is there a way to display the chat box in the post editor page?
]]>Hi Nick,
As the title says, are you planning to implement a new version of this plugin? It’s of great use of my site, thanks a ton for the initial feature.
]]>So, here is a fix to let ‘admins’ (assuming only admins have the ‘manage_options’ capability) delete messages:
Change the following
wp-dashboard-chat.php:166-170
if ($message->user_id == $this->current_user->ID ) {
echo '<a href="javascript:void(0)" class="del" data-mid="' . $message->id . '"></a>';
} else {
echo '<a href="javascript:void(0)" class="rep" data-mid="' . $message->id . '" username="' . $author->nickname . '"></a>';
}
to
if ($message->user_id == $this->current_user->ID ) {
echo '<a href="javascript:void(0)" class="del" data-mid="' . $message->id . '"></a>';
} else {
if (current_user_can('manage_options')) {
echo '<a href="javascript:void(0)" class="del" data-mid="' . $message->id . '"></a>';
}
echo '<a href="javascript:void(0)" class="rep" data-mid="' . $message->id . '" username="' . $author->nickname . '"></a>';
}
]]>
How do I clear all the chat messages?
]]>Hello,
Hope you won’t mind me making separate tickets for each issue ??
It seems if a nickname contains spaces like Cor van Noorloos
, it breaks/displays as <a href="#">Cor</a> van Noorloos
Hello,
Just got this notice when having WP_DEBUG enabled
:
Notice: Undefined index: fn in /home/corvanno/public_html/klanten/html5/wp-content/plugins/wp-dashboard-chat/wp-dashboard-chat.php on line 54
Hello,
Looking at the admin recent entries, may I suggest changing/adding the following?
#wp_dashboard_chat .inside {
padding: 0 !important;
}
#wp_dashboard_chat .inside #messages tr td.avatar {
padding: 1em 10px;
}
#wp_dashboard_chat .inside #messages tr td.message {
padding: 1em 10px;
}
#wp_dashboard_chat .inside #messages tr td.actions {
padding: 1em 10px 1em 0;
}
Note, I’ve only listed the things needed to be changed/added. Some attributes can already contain other properties.
]]>does not support Cyrillic!
example: ??? ?? ??????
]]>