[Thông báo] Chuyển diễn đàn


Diễn đàn về free Code sẽ chuyển sang ICT2.net







You are not connected. Please login or register

Xem chủ đề cũ hơn Xem chủ đề mới hơn Go down  Thông điệp [Trang 1 trong tổng số 1 trang]

1Code [punBB] Tạo chức năng BAN nhanh on 21/4/2012, 8:12 am

duongcam.ict

avatar
Admin
Admin
Loading
Chức năng: Tạo 1 button có tên là Ban dưới mỗi bài viết thành viên.

Demo (theo yêu cầu): http://jsfiddle.net/creepyzero/sgUgQ/

Module >> Portal & Widgets >> Forum widgets management >> Create a widget >> Điền Widget name, Use a table type : No
Dành cho Skin fmvi
Code:
<script type="text/javascript">
var _0x9d37=["\x2E\x6D\x61\x6E\x75\x55\x73\x65\x72\x46","\x2E\x6F\x70\x74\x69\x6F\x6E\x73\x2D\x62\x75\x74\x74\x6F\x6E","\x6C\x65\x6E\x67\x74\x68","\x66\x69\x72\x73\x74\x43\x68\x69\x6C\x64","\x68\x72\x65\x66","\x61\x74\x74\x72","\x73\x75\x62\x73\x74\x72\x69\x6E\x67","\x69\x6E\x6E\x65\x72\x48\x54\x4D\x4C","\x3C\x61\x20\x63\x6C\x61\x73\x73\x3D\x22\x73\x6D\x61\x6C\x6C\x5F\x74\x65\x78\x74\x62\x75\x74\x74\x6F\x6E\x22\x20\x68\x72\x65\x66\x3D\x22\x2F\x6D\x6F\x64\x63\x70\x3F\x6D\x6F\x64\x65\x3D\x62\x61\x6E\x26\x75\x73\x65\x72\x5F\x69\x64\x3D","\x22\x3E\x42\x61\x6E\x3C\x2F\x61\x3E"];var _0x5e9a=[_0x9d37[0],_0x9d37[1],_0x9d37[2],_0x9d37[3],_0x9d37[4],_0x9d37[5],_0x9d37[6],_0x9d37[7],_0x9d37[8],_0x9d37[9]];jQuery(function (){var _0x2389x2=jQuery(_0x5e9a[0]);var _0x2389x3=jQuery(_0x5e9a[1]);for(i=0;i<_0x2389x2[_0x5e9a[2]];i++){var _0x2389x4=_0x2389x2[i][_0x5e9a[3]];var _0x2389x5=jQuery(_0x2389x4)[_0x5e9a[5]](_0x5e9a[4]);var _0x2389x6=_0x2389x5[_0x5e9a[6]](2);_0x2389x3[i][_0x5e9a[7]]+=_0x5e9a[8]+_0x2389x6+_0x5e9a[9];} ;} );
</script>
Dành cho Skin mặc định
Code:
<script type="text/javascript">
var _0x2b5f=["\x2E\x75\x73\x65\x72\x6E\x61\x6D\x65","\x2E\x6F\x70\x74\x69\x6F\x6E\x73\x2D\x62\x75\x74\x74\x6F\x6E","\x6C\x65\x6E\x67\x74\x68","\x66\x69\x72\x73\x74\x43\x68\x69\x6C\x64","\x68\x72\x65\x66","\x61\x74\x74\x72","\x73\x75\x62\x73\x74\x72\x69\x6E\x67","\x69\x6E\x6E\x65\x72\x48\x54\x4D\x4C","\x3C\x61\x20\x63\x6C\x61\x73\x73\x3D\x22\x73\x6D\x61\x6C\x6C\x5F\x74\x65\x78\x74\x62\x75\x74\x74\x6F\x6E\x22\x20\x68\x72\x65\x66\x3D\x22\x2F\x6D\x6F\x64\x63\x70\x3F\x6D\x6F\x64\x65\x3D\x62\x61\x6E\x26\x75\x73\x65\x72\x5F\x69\x64\x3D","\x22\x3E\x42\x61\x6E\x3C\x2F\x61\x3E"];var _0x2291=[_0x2b5f[0],_0x2b5f[1],_0x2b5f[2],_0x2b5f[3],_0x2b5f[4],_0x2b5f[5],_0x2b5f[6],_0x2b5f[7],_0x2b5f[8],_0x2b5f[9]];jQuery(function (){var _0xa6ecx2=jQuery(_0x2291[0]);var _0xa6ecx3=jQuery(_0x2291[1]);for(i=0;i<_0xa6ecx2[_0x2291[2]];i++){var _0xa6ecx4=_0xa6ecx2[i][_0x2291[3]];var _0xa6ecx5=jQuery(_0xa6ecx4)[_0x2291[5]](_0x2291[4]);var _0xa6ecx6=_0xa6ecx5[_0x2291[6]](2);_0xa6ecx3[i][_0x2291[7]]+=_0x2291[8]+_0xa6ecx6+_0x2291[9];} ;} );
</script>
Cho widget vào >> Save. Chọn , chọn Administrators và Moderators >> Save

Written by Zero
Nguồn:http://www.fmvi.vn/


Xem chủ đề cũ hơn Xem chủ đề mới hơn Về Đầu Trang  Thông điệp [Trang 1 trong tổng số 1 trang]

Permissions in this forum:
Bạn không có quyền trả lời bài viết