rank based on points
Liquid Code :: Coding Factory :: Scripting :: Finished scripts :: Toys
Page 1 of 1 • Share
rank based on points
_Twisted_Mods_- Posts : 101
Reputation : 3
Birthday : 1986-08-05
Join date : 2014-10-03
Age : 37
Location : USA
make points viewable on post profile
change "Reputation" in the script below to the field title below the points field in the post profile
example if you look on post profile here you see Reputation below the points thats the text you use
lastly change all the images and amount of points you want to change image at
[script=Your choice=in topics]
change "Reputation" in the script below to the field title below the points field in the post profile
example if you look on post profile here you see Reputation below the points thats the text you use
lastly change all the images and amount of points you want to change image at
[script=Your choice=in topics]
- Code:
$(function(){
var img1 = 'http://i884.photobucket.com/albums/ac50/TwistedKilla/Forumotion/founder_zpsc2163f69.png';
var img2 = 'http://i884.photobucket.com/albums/ac50/TwistedKilla/Forumotion/manager_zpsf15c6160.png';
var img3 = 'http://i884.photobucket.com/albums/ac50/TwistedKilla/Forumotion/smod_zpsff04ea09.png';
var img4 = 'http://i884.photobucket.com/albums/ac50/TwistedKilla/Forumotion/mod_zps91e6af35.png';
var img5 = 'http://i884.photobucket.com/albums/ac50/TwistedKilla/Forumotion/gfx_zps05a4e96b.png';
var img6 = 'http://i884.photobucket.com/albums/ac50/TwistedKilla/Forumotion/reviewer_zpscb2d87cc.png';
var img7 = 'http://i884.photobucket.com/albums/ac50/TwistedKilla/Forumotion/support_zps3daf5b56.png';
var img8 = 'http://i884.photobucket.com/albums/ac50/TwistedKilla/Forumotion/vip_zps9331afc1.png';
var img9 = 'http://i884.photobucket.com/albums/ac50/TwistedKilla/Forumotion/teacher_zps53955db9.png';
var img10 = 'http://i884.photobucket.com/albums/ac50/TwistedKilla/Forumotion/helper_zpscbbb79bc.png';
var img11 = 'http://i884.photobucket.com/albums/ac50/TwistedKilla/Forumotion/member_zpsdb91587d.png';
var img12 = 'http://i884.photobucket.com/albums/ac50/TwistedKilla/Forumotion/blank_zps8d7a3a8d.png';
var img13 = 'http://i884.photobucket.com/albums/ac50/TwistedKilla/Forumotion/guest_zpsb40a03cc.png';
$('.postprofile').each(function(){
var bb = $(this).text();
var gg = bb.replace(/(.*)Points: (.+?)Reputation(.*)/,'$2');
if(gg>10000){
$(this).find('dd').eq(0).before('<dd><center><img src="'+img1+'"></center><br></dd>');
}
else if(gg>9000){
$(this).find('dd').eq(0).before('<dd><center><img src="'+img2+'"></center><br></dd>');
}
else if(gg>8000){
$(this).find('dd').eq(0).before('<dd><center><img src="'+img3+'"></center><br></dd>');
}
else if(gg>7000){
$(this).find('dd').eq(0).before('<dd><center><img src="'+img4+'"></center><br></dd>');
}
else if(gg>6000){
$(this).find('dd').eq(0).before('<dd><center><img src="'+img5+'"></center><br></dd>');
}
else if(gg>5000){
$(this).find('dd').eq(0).before('<dd><center><img src="'+img6+'"></center><br></dd>');
}
else if(gg>4000){
$(this).find('dd').eq(0).before('<dd><center><img src="'+img7+'"></center><br></dd>');
}
else if(gg>3000){
$(this).find('dd').eq(0).before('<dd><center><img src="'+img8+'"></center><br></dd>');
}
else if(gg>2000){
$(this).find('dd').eq(0).before('<dd><center><img src="'+img9+'"></center><br></dd>');
}
else if(gg>1000){
$(this).find('dd').eq(0).before('<dd><center><img src="'+img10+'"></center><br></dd>');
}
else if(gg>500){
$(this).find('dd').eq(0).before('<dd><center><img src="'+img11+'"></center><br></dd>');
}
else if(gg>100){
$(this).find('dd').eq(0).before('<dd><center><img src="'+img12+'"></center><br></dd>');
}
else if(gg<100){
$(this).find('dd').eq(0).before('<dd><center><img src="'+img13+'"></center><br></dd>');
}
});
});
Liquid Code :: Coding Factory :: Scripting :: Finished scripts :: Toys
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|