Hide the main chatbox
(Versions 1.6+)This very simple plug-in will prevent users from using the chatbox at the address /chatbox on your forum, so they can no longer view the full page chatbox, and therefore only use your installation of AvacWeb Chat.
First of all, we'll hide the chatbox with CSS. Add this CSS to your forum:
- Code:
[panda=css]body.chatbox {
visibility: hidden;
}
#chatbox {
display: none;
}
Therefore if they visit the big chatbox, it will appear as a blank page.
However this will also affect AWC, so we must add a small onload event, to fix it.
- Code:
[panda=js]avacweb_chat_config.add_event('onload', function() {
avacweb_chat.id('chatbox').style.display = 'block';
});
You're done. Your users will only be able to use the big chatbox if they know how to use a DOM Inspector and change elements CSS properties.
Additionally if you want to hide the links to the big chatbox at the bottom of the home page, add this CSS [tip=(!)]This CSS has only been tested on phpbb3 and so will likely only work on phpbb3[/tip]:
- Code:
[panda=css]p.page-bottom + .h3, p.page-bottom + .h3 + div.page-bottom, #chatbox_popup {
display: none;
}