Administration Panel > Modules > Chatbox > Configuration
Activate the chatbox : yes
[Only admins are allowed to see this image]
Administration Panel > Display > Pictures and colors > Colors > CSS stylesheet
Dán zô rùi sumbit
Administration Panel > Modules > HTML & JAVASCRIPT > Javascript codes management > Create a new script
Title: Popup ChatBox
Placement: In all the pages (Nếu muốn nó xuất hiện tất cả các trang)
Dán code dưới vào Javascript Code:
[Only admins are allowed to see this image]
Vậy là xong rùi đó , khách thì popup ko hiện nhưng mem thì thấy nó hiện.
Có thể thay Open Chat trong code js bằng tiêu đề mình thích
nguồn: [Only admins are allowed to see this link]
Activate the chatbox : yes
[Only admins are allowed to see this image]
Administration Panel > Display > Pictures and colors > Colors > CSS stylesheet
Dán zô rùi sumbit
- Code:
/*Chatbox*/
#chatButton{
box-shadow:0px 10px 6px rgba(255,255,255, 0.2) inset, 0px -10px 6px rgba(0,0,0, 0.2) inset;
padding:10px 20px 10px 20px;
background-color:#257;
border:1px solid #146;
font-weight:bold;
font-size:10px;
z-index:999;
color:#fff;
}
#chatButton:hover{
cursor:pointer;
color:#ff8;
background-color:#368;
}
#chatBox iframe{
z-index:999;
border:none;
height:500px;
width:700px;
}
Administration Panel > Modules > HTML & JAVASCRIPT > Javascript codes management > Create a new script
Title: Popup ChatBox
Placement: In all the pages (Nếu muốn nó xuất hiện tất cả các trang)
Dán code dưới vào Javascript Code:
- Code:
jQuery(document).ready(function(){
jQuery('body').append('<span id="chatButton" title="Open/Close Chatbox">Open Chat</span><div id="chatBox"><iframe src="/chatbox/index.forum"></iframe></div>');
jQuery('#chatBox').hide();
jQuery('#chatButton').css('position', 'fixed').css('right', '0px').css('bottom', '0px');
jQuery('#chatBox iframe').css('position', 'fixed').css('right', '10px').css('bottom', '45px');
if(!document.getElementById('logout')){
jQuery('#chatButton').hide();
jQuery('#chatBox').hide();}
jQuery('#chatButton').click(function(){
jQuery('#chatBox').fadeToggle();
});
});
[Only admins are allowed to see this image]
Vậy là xong rùi đó , khách thì popup ko hiện nhưng mem thì thấy nó hiện.
Có thể thay Open Chat trong code js bằng tiêu đề mình thích
nguồn: [Only admins are allowed to see this link]