Posts : 77 Points : 25226 Thanked : 10 Join date : 03/10/2012 Age : 31 Đến từ : Một nơi đầy nắng và gió Châm ngôn sống : Sáng lập https://clup69.forumvi.com/
Tiêu đề: [code] Level hình người đẹp cho forum Mon Oct 22, 2012 12:07 am
Demo: [Only admins are allowed to see this link]
hướng dẫn:
Bươc 1. thay đổi tên 3 mục trong mục profiles
ACP> Ql nhóm và người dùng> QLy người dùng> Profiles - tổng bài gửi > posts - điểm> points - reputation> thanked
Bước 2: chỉnh mục Points và Reputation - ACP> Modules> Points & Reputation - chỉnh như hình dưới:
[Only admins are allowed to see this link] [Only admins are allowed to see this link]
Bước 3. Tạo 1 HTML tên là level hình người để lấy link - ACP> Module> HTML & Javascripts> HTML - và chèn codes sau vào khung HTML rùi lấy link
function A1level(){ dir="https://i1228.photobucket.com/albums/ee457/ca3forum/Boy avatar/" var xperpost="5" var xperexp="35" var xperreptt="20" var xpneeded="25" var maxability="4000" var maxstrength=(xpneeded*600) var aq=[]; var level=[]; var posts=[]; var repts=[]; var ability=[]; var cts=[]; var firstchar=[]; var boom = new Array() boom[0]="[Only admins are allowed to see this image] Vỡ Lòng"; boom[1]="[Only admins are allowed to see this image] Vỡ Lòng"; boom[2]="[Only admins are allowed to see this image] Tập sự"; boom[3]="[Only admins are allowed to see this image] Nâng Cao"; boom[4]="[Only admins are allowed to see this image] Đường Phố"; boom[5]="[Only admins are allowed to see this image] Nghệp Dư"; boom[6]="[Only admins are allowed to see this image] Huấn Luyện"; boom[7]="[Only admins are allowed to see this image] Chuyên Nghiệp"; boom[8]="[Only admins are allowed to see this image] Đẳng Cấp"; boom[9]="[Only admins are allowed to see this image] Ưu Tú"; boom[10]="[Only admins are allowed to see this image] Bậc thầy"; boom[11]="[Only admins are allowed to see this image] Siêu Sao"; boom[12]="[Only admins are allowed to see this image] Huyền Thoại"; boom[13]="[Only admins are allowed to see this image] Vũ Thần"; boom[14]="[Only admins are allowed to see this image] Tinh Anh"; boom[15]="[Only admins are allowed to see this image] Xuất Chúng"; boom[16]="[Only admins are allowed to see this image] Đỉnh Cao"; boom[17]="[Only admins are allowed to see this image] Vĩ Đại"; boom[18]="[Only admins are allowed to see this image] Thiên Tài"; boom[19]="[Only admins are allowed to see this image] Siêu Cấp"; boom[20]="[Only admins are allowed to see this image] Chén Thánh "; boom[21]="[Only admins are allowed to see this image] Chén Thánh "; boom[22]="[Only admins are allowed to see this image] Chén Thánh "; boom[23]="[Only admins are allowed to see this image] Chén Thánh "; boom[24]="[Only admins are allowed to see this image] Chén Thánh "; boom[25]="[Only admins are allowed to see this image] Chén Thánh "; boom[26]="[Only admins are allowed to see this image] Chén Thánh "; boom[27]="[Only admins are allowed to see this image] Chén Thánh "; boom[28]="[Only admins are allowed to see this image] Chén Thánh "; boom[29]="[Only admins are allowed to see this image] Chén Thánh "; boom[30]="[Only admins are allowed to see this image] Chén Thánh "; boom[31]="[Only admins are allowed to see this image] Chén Thánh "; boom[32]="[Only admins are allowed to see this image] Chén Thánh "; boom[33]="[Only admins are allowed to see this image] Chén Thánh "; boom[34]="[Only admins are allowed to see this image] Chén Thánh "; boom[35]="[Only admins are allowed to see this image] Chén Thánh "; boom[36]="[Only admins are allowed to see this image] Chén Thánh "; boom[37]="[Only admins are allowed to see this image] Chén Thánh "; boom[38]="[Only admins are allowed to see this image] Chén Thánh "; boom[39]="[Only admins are allowed to see this image] Chén Thánh "; boom[40]="[Only admins are allowed to see this image] Chén Thánh "; boom[41]="[Only admins are allowed to see this image] Chén Thánh "; boom[42]="[Only admins are allowed to see this image] Chén Thánh "; boom[43]="[Only admins are allowed to see this image] Chén Thánh "; boom[44]="[Only admins are allowed to see this image] Chén Thánh "; boom[45]="[Only admins are allowed to see this image] Chén Thánh "; boom[46]="[Only admins are allowed to see this image] Chén Thánh "; boom[47]="[Only admins are allowed to see this image] Chén Thánh "; boom[48]="[Only admins are allowed to see this image] Chén Thánh "; boom[49]="[Only admins are allowed to see this image] Chén Thánh "; boom[50]="[Only admins are allowed to see this image] Chén Thánh "; x = document.getElementsByTagName('div') for(y=0;yif(x[y].className == "levelhinhnguoi"){ nick= x[y].parentNode.parentNode.parentNode.getElementsByTagName("A")[0].innerHTML; nic= x[y].parentNode.parentNode.parentNode.getElementsByTagName("A")[0].innerHTML; nict= x[y].parentNode.parentNode.parentNode.getElementsByTagName("A")[0].innerHTML; tks= x[y].parentNode.parentNode.parentNode.getElementsByTagName("A")[0].innerHTML; cts[nict]=parseInt(x[y].innerHTML.toLowerCase().split("pet: ")[1]); posts[nick]=parseInt(x[y].innerHTML.toLowerCase().split("posts: ")[1]); repts[nic]=parseInt(x[y].innerHTML.toLowerCase().split("points: ")[1]); ability[tks]=parseInt(x[y].innerHTML.toLowerCase().split("thanked: ")[1]); if(repts[nic]>=0){var levell=[]; var xp=[]; var firstchar=[]; xp[nick]=Math.floor(posts[nick]*xperpost/1000+(repts[nic]+ability[tks]*4)*xperreptt/1000) level[nick]=(xp[nick]/xpneeded) var exp = Math.floor((level[nick]-Math.floor(level[nick]))*xperexp) var phansonguyen = Math.floor(level[nick]+parseInt(1)); var title1="" if (phansonguyen > 50){(phansonguyen = "50")&&(exp = "100")&&(title1="")}
var width=(exp-1) var xptogo = "10000" if(xp[nick]>0){xptogo = Math.floor(ability[tks]*1900+posts[nick]*2+repts[nic])} var abilityperc = (Math.floor((xptogo/maxability)*1000)-2) if(xptogo > maxability) {(xptogo = maxability)&&(abilityperc = "9800")} var strengthperc = (Math.floor((xp[nick]/maxstrength)*1000)-2) if(xp[nick] > maxstrength) {(xp[nick]= maxstrength)&&(strengthperc = "98")} firstchar[nick]=nick.charAt(0); aq[nick]="Unknown" var medal=[]; var i=1; while (i>0){ if (phansonguyen==i){ boom[0]="[Only admins are allowed to see this image] Vỡ Lòng"; boom[1]="[Only admins are allowed to see this image] Vỡ Lòng"; boom[2]="[Only admins are allowed to see this image] Tập sự"; boom[3]="[Only admins are allowed to see this image] Nâng Cao"; boom[4]="[Only admins are allowed to see this image] Đường Phố"; boom[5]="[Only admins are allowed to see this image] Nghệp Dư"; boom[6]="[Only admins are allowed to see this image] Huấn Luyện"; boom[7]="[Only admins are allowed to see this image] Chuyên Nghiệp"; boom[8]="[Only admins are allowed to see this image] Đẳng Cấp"; boom[9]="[Only admins are allowed to see this image] Ưu Tú"; boom[10]="[Only admins are allowed to see this image] Bậc thầy"; boom[11]="[Only admins are allowed to see this image] Siêu Sao"; boom[12]="[Only admins are allowed to see this image] Huyền Thoại"; boom[13]="[Only admins are allowed to see this image] Vũ Thần"; boom[14]="[Only admins are allowed to see this image] Tinh Anh"; boom[15]="[Only admins are allowed to see this image] Xuất Chúng"; boom[16]="[Only admins are allowed to see this image] Đỉnh Cao"; boom[17]="[Only admins are allowed to see this image] Vĩ Đại"; boom[18]="[Only admins are allowed to see this image] Thiên Tài"; boom[19]="[Only admins are allowed to see this image] Siêu Cấp"; boom[20]="[Only admins are allowed to see this image] Chén Thánh"; boom[21]="[Only admins are allowed to see this image] Vỡ Lòng"; boom[22]="[Only admins are allowed to see this image] Vỡ Lòng"; boom[23]="[Only admins are allowed to see this image] Tập sự"; boom[24]="[Only admins are allowed to see this image] Nâng Cao"; boom[25]="[Only admins are allowed to see this image] Đường Phố"; boom[26]="[Only admins are allowed to see this image] Nghệp Dư"; boom[27]="[Only admins are allowed to see this image] Huấn Luyện"; boom[28]="[Only admins are allowed to see this image] Chuyên Nghiệp"; boom[29]="[Only admins are allowed to see this image] Đẳng Cấp"; boom[30]="[Only admins are allowed to see this image] Ưu Tú"; boom[31]="[Only admins are allowed to see this image] Bậc thầy"; boom[32]="[Only admins are allowed to see this image] Siêu Sao"; boom[33]="[Only admins are allowed to see this image] Huyền Thoại"; boom[34]="[Only admins are allowed to see this image] Vũ Thần"; boom[35]="[Only admins are allowed to see this image] Tinh Anh"; boom[36]="[Only admins are allowed to see this image] Xuất Chúng"; boom[37]="[Only admins are allowed to see this image] Đỉnh Cao"; boom[38]="[Only admins are allowed to see this image] Vĩ Đại"; boom[39]="[Only admins are allowed to see this image] Thiên Tài"; boom[40]="[Only admins are allowed to see this image] Siêu Cấp"; boom[41]="[Only admins are allowed to see this image] Chén Thánh"; boom[42]="[Only admins are allowed to see this image] Xuất Chúng"; boom[43]="[Only admins are allowed to see this image] Đỉnh Cao"; boom[44]="[Only admins are allowed to see this image] Vĩ Đại"; boom[45]="[Only admins are allowed to see this image] Thiên Tài"; boom[46]="[Only admins are allowed to see this image] Siêu Cấp"; boom[47]="[Only admins are allowed to see this image] Chén Thánh"; boom[48]="[Only admins are allowed to see this image] Vĩ Đại"; boom[49]="[Only admins are allowed to see this image] Thiên Tài"; boom[50]="[Only admins are allowed to see this image] Siêu Cấp"; medal[nick]=boom[i];i=0;} else{i++;} } exppet="[Only admins are allowed to see this image]"; exppet2="[Only admins are allowed to see this image]"; expss= "
/*--- level hình người ------------------*/ .levelbg{line-height: 13px;background: url(http://i46.servimg.com/u/f46/16/96/29/15/levelc10.png) no-repeat;width: 120px; height: 13px;padding-top: 2px;padding-left: 2px;}
Bước 5. thêm codes định vị trí thanh level trong viewtopic_body - ACP> Display> Templates> QLTT> Viewtopic_body - chèn đoạn codes sau vào vị trí mà muốn thanh level hình người hiển thị
Diễn đàn ... được phát triển bởi các thành viên. Admin: ... Ban Quản trị không chịu trách nhiệm về nội dung thành viên đăng tải Style by Loitraitim - Vb rip by HQTH team - FM rip by Việt K - c3zone Vui lòng không xóa những dòng này khi sử dụng skin.