|
|
Mời bạn đăng ký để giao lưu kết bạn nhé <3
Bạn phải đăng nhập để xem được nội dung, nếu bạn chưa có tài khoản? hãy Đăng ký
x
Demo như 4rum NGT-O đang dùng: http://thpt-ngogiatu.com/diendan ... _Dress&module=memcp
Các bạn có thể xem thêm tại: http://thpt-ngogiatu.com/diendan/school-6796-1-1.ngt-o
Mình đã việt hóa sơ nếu bro nào thích dùng thì reply undefined ở đây mình chỉ post code gốc của Thái.
Các bạn nhớ Backup data lại trước khi tiến hành việc cài mod này!
Vào việc nào:
1. Upload các files trong Folder upload lên ngang hàng với root, file DisPlu_install.php trong Folder Readme lên ngang hàng với root
2. Chạy tiến trình cài đặt cơ sở dữ liệu DisPlu_install.php.
Nếu bạn chạy sai, phải được cài đặt bằng tay. Thực hiện như trong hình dưới.
File SQL trong Readme/SQL.txt
3. Impert Plugin trong Readme/discuz_plugin_DisPlu_Dress.txt
vào Admincp > Extended/ Plugins/ Import
4. Mở viewthread.php tìm:- $query = $sdb->query("SELECT p.*, m.uid, m.username, m.groupid, m.adminid, m.regdate, m.lastactivity, m.posts, m.digestposts, m.oltime,
Sao chép mã Thay bằng:- $query = $sdb->query("SELECT bg.membg, bg.conbg, p.*, m.uid, m.username, m.groupid, m.adminid, m.regdate, m.lastactivity, m.posts, m.digestposts, m.oltime,
Sao chép mã Tìm tiếp:- LEFT JOIN {$tablepre}memberfields mf ON mf.uid=m.uid
Sao chép mã Thay bằng:- LEFT JOIN {$tablepre}memberfields mf ON mf.uid=m.uid LEFT JOIN displu_dress_users bg ON bg.uid=m.uid
Sao chép mã Tìm nữa:- $postlist[$post['pid']] = viewthread_procpost($post);
Sao chép mã Thêm vào:- include_once './plugins/DisPlu_Dress/displu_config.php';
- $membg = $conbg = array();
- if($postlist[$post['pid']]['number'] <= $bgfloor || $bgfloor == 0){
- if($postlist[$post['pid']]['membg']!=''){
- $membg = unserialize($postlist[$post['pid']]['membg']);
- if($membg[active]&&$membg[expiration]>$timestamp) $postlist[$post['pid']]['membg'] = 'style="background-image:url(plugins/DisPlu_Dress/images/bg/'.$membg[file].');background-repeat:'.$membg[repeat].';background-position:'.$membg[position].';"';
- }
- if($postlist[$post['pid']]['conbg']!=''){
- $conbg = unserialize($postlist[$post['pid']]['conbg']);
- if($conbg[active]&&$conbg[expiration]>$timestamp) $postlist[$post['pid']]['conbg'] = 'style="background-image:url(plugins/DisPlu_Dress/images/bg/'.$conbg[file].');background-repeat:'.$conbg[repeat].';background-position:'.$conbg[position].';"';
- }
- }
Sao chép mãKhách: Nội dung này bị ẩn, bạn cần bấm Thank để xem.
Download file: |
Cảm ơn
-
Xem tất cả
|