Victory Family Zone Forum
Xin chào mừng các bạn đã đến với thế giới dành cho cộng Teen - Victory Zone Forum !
Xin mời các bạn đăng kí để làm thành viên của diễn đàn , chúng tôi đảm bảo : Thời gian đăng kí chưa đầy 1 phút !
Nếu đã có tài khoản , xin vui lòng đăng nhập !
Lưu Ý *: Những tài khoản trong vòng 1 tháng mà không hoạt động sẽ bị xóa ngày lập tức !Chúng tôi khuyến cáo nên dùng 2 trình duyệt là Google Chrome hoặc Mozila FireFox , khi dùng các trình duyệt khác , có thể các lỗi nhỏ sẽ xảy ra !
Xin chân thành cảm ơn !
Victory Family Zone Forum
Xin chào mừng các bạn đã đến với thế giới dành cho cộng Teen - Victory Zone Forum !
Xin mời các bạn đăng kí để làm thành viên của diễn đàn , chúng tôi đảm bảo : Thời gian đăng kí chưa đầy 1 phút !
Nếu đã có tài khoản , xin vui lòng đăng nhập !
Lưu Ý *: Những tài khoản trong vòng 1 tháng mà không hoạt động sẽ bị xóa ngày lập tức !Chúng tôi khuyến cáo nên dùng 2 trình duyệt là Google Chrome hoặc Mozila FireFox , khi dùng các trình duyệt khác , có thể các lỗi nhỏ sẽ xảy ra !
Xin chân thành cảm ơn !
Victory Family Zone Forum
Bạn có muốn phản ứng với tin nhắn này? Vui lòng đăng ký diễn đàn trong một vài cú nhấp chuột hoặc đăng nhập để tiếp tục.



 
Trang ChínhTrang Chính  Tìm kiếmTìm kiếm  Latest imagesLatest images  Đăng kýĐăng ký  Đăng NhậpĐăng Nhập  Tiện ích  

Share | 

 

 [ Forumotion ] Chia sẽ cách làm Thanh Lever Giống của Diễn Đàn               

Xem chủ đề cũ hơn Xem chủ đề mới hơn Go down 
[ Forumotion ] Chia sẽ cách làm Thanh Lever Giống của Diễn Đàn I_icon18Fri Oct 29, 2010 6:00 pm

Vipboypr0
Vipboypr0

Administrator

http://vngo.co.cc

Thông tin Vipboypr0
Câu nói tâm đắc : Sống để cống hiến !
Posts : 81
Points : 50162
Thanked : 6
Đến Từ : Đà Nẵng

Thông tin Vipboypr0
Bấm !
Câu nói tâm đắc : Sống để cống hiến !
Posts : 81
Points : 50162
Thanked : 6
Đến Từ : Đà Nẵng

Bài gửiTiêu đề: [ Forumotion ] Chia sẽ cách làm Thanh Lever Giống của Diễn Đàn

 
B1: vào User & Group\profile:
Profile "Tổng bài gửi" đổi tên thành "Posts"
"Reputation" đổi tên thành "Thanked"
sao cho profile phải có đủ 3 mục này:


[ Forumotion ] Chia sẽ cách làm Thanh Lever Giống của Diễn Đàn 14ab2c2951004a02ad759c7

B2:
Module >points and reputation > Point system


[ Forumotion ] Chia sẽ cách làm Thanh Lever Giống của Diễn Đàn Bf0be36cc0854f119d70111

Module >points and reputation > Reputation > general options


[ Forumotion ] Chia sẽ cách làm Thanh Lever Giống của Diễn Đàn B808f0aab5e2486db55c871

Module >points and reputation > Reputation > reputation management


[ Forumotion ] Chia sẽ cách làm Thanh Lever Giống của Diễn Đàn Ddde05ad30bd41a191cb999


B3: Display>>template>>viewtopic_body

các bạn có thể dán đoạn này vào chỗ nào bạn thích trong view_topic
Code:

<div class="fmlevel" align="left">
<span style="font-size:11px;font-family:Tahoma;font-weight:normal; display: none;">
<!-- BEGIN profile_field -->
{postrow.displayed.profile_field.LABEL}{postrow.displayed.profile_field.CONTENT}{postrow.displayed.profile_field.SEPARATOR}
<!-- END profile_field -->
{postrow.displayed.POSTER_RPG}
</span></div>



B4:
overall_footer dán đoạn này vào cuối
Code:
Code:

<script src=http://thuan007.googlecode.com/files/FM_level.js></script>



Lưu ý: bác nào đang dùng icon trc nick, để tránh việc xung đột với nhau thì thay vì làm Bước 4 (B4), các bác vào chỉnh sửa file js rank icon trc nick như sau:

tìm trong đó
Code:

window.onload = changeImg();
thay thành:
Code:
Code:

function A1level(){
dir="http://s832.photobucket.com/albums/zz244/a1tg3/boom/"
var title2="Hoạt động"
var xperpost="15"
var xperexp="100"
var xperreptt="22"
var xpneeded="20"
var maxability="8000"
var maxstrength=(xpneeded*500)
var aq=[];
var level=[];
var posts=[];
var repts=[];
var ability=[];
var cts=[];
var firstchar=[];
var boom = new Array()
x = document.getElementsByTagName('div')
for(y=0;y<x.length;y++){
if(x[y].className == "fmlevel"){
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</span>: </span>")[1]);
posts[nick]=parseInt(x[y].innerHTML.toLowerCase().split("posts</span>: </span>")[1]);
repts[nic]=parseInt(x[y].innerHTML.toLowerCase().split("points</span>: </span>")[1]);
ability[tks]=parseInt(x[y].innerHTML.toLowerCase().split("thanked</span>: </span>")[1]);
if(repts[nic]>=0){var levell=[];
var xp=[];
var firstchar=[];
xp[nick]=Math.floor(posts[nick]*xperpost/10+(repts[nic]+ability[tks]*4)*xperreptt/10)
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="Level"
if (phansonguyen > 450){(phansonguyen = "450")&&(exp = "99")&&(title1="Max-Level")}
var width=(exp-1)
var xptogo = "100"
if(xp[nick]>0){xptogo = Math.floor(ability[tks]*19+posts[nick]*2+repts[nic])}
var abilityperc = (Math.floor((xptogo/maxability)*100)-2)
if(xptogo > maxability) {(xptogo = maxability)&&(abilityperc = "98")}
var strengthperc = (Math.floor((xp[nick]/maxstrength)*100)-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[i]=<img src='"+dir+"exp_medal_"+i+".gif'>";
medal[nick]=boom[i];i=0;} else{i++;}
}
exppet="<img src='http://sinhvienit.net/@forum/images/rpg/blue.gif' width='"+width+"%' height='9px'>";
exppet2="<img src='http://sinhvienit.net/@forum/images/rpg/exp.gif' width='2px' height='9px'>";
expss= "<div class='expbg'><div class='expbg2'><fieldset style='padding: 1px; border: #776b6a 1px solid;'>"+exppet+""+exppet2+"</fieldset></div></div>";

strengthpet="<img src='http://sinhvienit.net/@forum/images/rpg/orange.gif' width='"+strengthperc+"%' height='9px'>";
strengthpet2="<img src='http://sinhvienit.net/@forum/images/rpg/hp.gif' width='2px' height='9px'>";
strengthss= "<div class='strengthbg'><div class='strengthbg2'><fieldset style='padding: 1px; border: #776b6a 1px solid;'>"+strengthpet+""+strengthpet2+"</fieldset></div></div>";

abilitypet="<img src='http://sinhvienit.net/@forum/images/rpg/green.gif' width='"+abilityperc+"%' height='9px'>";
abilitypet2="<img src='http://sinhvienit.net/@forum/images/rpg/mp.gif' width='2px' height='9px'>";
abilityss= "<div class='abilitybg'><div class='abilitybg2'><fieldset style='padding: 1px; border: #776b6a 1px solid;'>"+abilitypet+""+abilitypet2+"</fieldset></div></div>";
stats="<div align='left'><table cellpadding='0' cellspacing='0' width='170'><tr><td width='150'><br><fieldset style='padding: 5px 7px 3px 5px; border: #776b6a 1px dashed;-moz-border-radius: 4px; border-radius: 2px;'><div valign='bottom' style='padding: 3px;'><font color='red' style='font-size: 12px'><b> "+title1+": "+ phansonguyen +"  »"+medal[nick]+"«</b></font><br><br><font color='blue' size='1'><b> Kinh nghiệm: "+exp+"%</b></font>"+expss+"<font color='orange' size='1'><b> "+title2+": "+ xp[nick]+" / "+maxstrength+"</b></font>"+strengthss+""+"<font color='green' size='1'><b> Danh vọng: " +xptogo+" / "+maxability+"</b></font>"+abilityss+"</div></fieldset></td></tr></table></div> "
x[y].innerHTML +=<span class='gensmall'>" + stats} else{x[y].innerHTML +=<font color=red><br><br><b><center>Đã hết points</center></b></font>"}}}
}
function start() {changeImg(); A1level();} window.onload = start();
Đọc xong nhớ Thanks:-2:

Hành trang Vipboypr0
Vật phẩm Vipboypr0
Tài sản
.::
Chữ Ký Vipboypr0
Hãy cùng Vipboypr0 xây dụng 1 Diễn Đàn Tốt hơn nhé !



[ Forumotion ] Chia sẽ cách làm Thanh Lever Giống của Diễn Đàn I_icon18Sat Oct 30, 2010 7:00 pm

shuchang
shuchang

Thành viên Mới

Thông tin shuchang
Posts : 6
Points : 49230
Thanked : 0
Đến Từ : 2344

Thông tin shuchang
Bấm !
Posts : 6
Points : 49230
Thanked : 0
Đến Từ : 2344

Bài gửiTiêu đề: Re: [ Forumotion ] Chia sẽ cách làm Thanh Lever Giống của Diễn Đàn

 
cảm ơn bạn nha

Hành trang shuchang
Vật phẩm shuchang
Chữ Ký shuchang
Hãy cùng shuchang xây dụng 1 Diễn Đàn Tốt hơn nhé !



 

[ Forumotion ] Chia sẽ cách làm Thanh Lever Giống của Diễn Đàn

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