Hello,
Users on slow connection may see the blank chat board before it finishes loading, and could get confused. Here the "Loading..." message can be quite helpful. I'm hoping that this feature will be built into the future release of the module, however, here is how to do it yourself for now:
In template.php, add this:
function phptemplate_chatroom_chat_board() {
return '<div id="chatroom-board"><p id="loading" style="margin:20px">Loading...</p></div>';
}
In style.css, create this:
.x-display-none {
display:none;
}
... we will use it to hide the loading script once it's done.
Now find the following function in chatroom.js:
Drupal.chatroom.chat.updateMsgList = function(msgs) {
... and at the very end, add this:
var loading = $('#loading');
loading.addClass('x-display-none');
Enjoy!
Best,
Andrey.
Comments
Comment #1
Anonymous (not verified) commentedplease reopen if this bug is still present in the 6.x-2 branch.