04-07-2013, 05:44 PM
Săn tiện up lại cái này cho bạn nào cần nhé:
Demo http://haiquan.zz.mu/F@rum/ (nhìn bên phải có cái hình)![[Image: 3935353655_32c6d2bb30_o.png]](http://farm3.static.flickr.com/2636/3935353655_32c6d2bb30_o.png)
Nhấn vào là thấy hiện chatbox ngay. Đang xem bài viết , đang viết bài mới vẫn có thể chat với mọi người được rồi nhá.
![[Image: haiquan.info-chat.jpg]](https://lh5.googleusercontent.com/-qI3Jgo9IQPw/UdVIc-wo20I/AAAAAAAAA8o/ZvDiRjB1AuQ/haiquan.info-chat.jpg)
Trước tiên các bạn vào
AdminCP » Template Sets » Your_templates » Edit Template => footer
chèn đoạn code này vào cuối cùng
Code: (Select All)
Tiếp đến Edit file changfcb.php (ChangUonDyU - Extra File Chatbox 3.6.0) như sau:
Mở file changfcb.php tìm:
Code: (Select All)
Sửa thành
Code: (Select All)
Vậy là xong. Chúc các bạn thành công.
Demo http://haiquan.zz.mu/F@rum/ (nhìn bên phải có cái hình)
![[Image: 3935353655_32c6d2bb30_o.png]](http://farm3.static.flickr.com/2636/3935353655_32c6d2bb30_o.png)
Nhấn vào là thấy hiện chatbox ngay. Đang xem bài viết , đang viết bài mới vẫn có thể chat với mọi người được rồi nhá.
![[Image: haiquan.info-chat.jpg]](https://lh5.googleusercontent.com/-qI3Jgo9IQPw/UdVIc-wo20I/AAAAAAAAA8o/ZvDiRjB1AuQ/haiquan.info-chat.jpg)
Trước tiên các bạn vào
AdminCP » Template Sets » Your_templates » Edit Template => footer
chèn đoạn code này vào cuối cùng
Code: (Select All)
Code:
<!----Chat box---->
<style type="text/css">
#gb{
position:fixed;
top:250px;
z-index:+1000;
}
* html #gb{position:relative;}
.gbtab{
height:150px;
width:30px;
float:left;
cursor:pointer;
background:url('http://farm3.static.flickr.com/2636/3935353655_32c6d2bb30_o.png') no-repeat;
}
.gbcontent{
float:left;
border:2px solid #990000;
background:#F5F5F5;
padding:10px;
}
</style>
<script type="text/javascript">
function showHideGB(){
var gb = document.getElementById("gb");
var w = gb.offsetWidth;
gb.opened ? moveGB(0, 30-w) : moveGB(20-w, 0);
gb.opened = !gb.opened;
}
function moveGB(x0, xf){
var gb = document.getElementById("gb");
var dx = Math.abs(x0-xf) > 10 ? 5 : 1;
var dir = xf>x0 ? 1 : -1;
var x = x0 + dx * dir;
gb.style.right = x.toString() + "px";
if(x0!=xf){setTimeout("moveGB("+x+", "+xf+")", 10);}
}
</script>
<div id="gb">
<div class="gbtab" onclick="showHideGB()"> </div>
<div class="gbcontent">
{$changfcb}
<div style="text-align:right">
<a href="javascript:showHideGB()">
[Hide]
</a>
</div>
</div>
</div>
<script type="text/javascript">
var gb = document.getElementById("gb");
gb.style.right = (30-gb.offsetWidth).toString() + "px";
</script>
Tiếp đến Edit file changfcb.php (ChangUonDyU - Extra File Chatbox 3.6.0) như sau:
Mở file changfcb.php tìm:
Code: (Select All)
Code:
$plugins->add_hook("global_end", "changfcb_main");
Sửa thành
Code: (Select All)
Code:
$plugins->add_hook("global_start", "changfcb_main");
Vậy là xong. Chúc các bạn thành công.