rank based on points

View previous topic View next topic Go down

rank based on points

Post by _Twisted_Mods_ on 1/24/2015, 6:52 pm


Posts : 101
Reputation : 2
Birthday : 1986-08-05
Join date : 2014-10-03
Age : 31
Location : USA

View user profile
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]

var img1 = 'http://illiweb.com/fa/pbucket.gif';
var img2 = 'http://illiweb.com/fa/pbucket.gif';
var img3 = 'http://illiweb.com/fa/pbucket.gif';
var img4 = 'http://illiweb.com/fa/pbucket.gif';
var img5 = 'http://illiweb.com/fa/pbucket.gif';
var img6 = 'http://illiweb.com/fa/pbucket.gif';
var img7 = 'http://illiweb.com/fa/pbucket.gif';
var img8 = 'http://illiweb.com/fa/pbucket.gif';
var img9 = 'http://illiweb.com/fa/pbucket.gif';
var img10 = 'http://illiweb.com/fa/pbucket.gif';
var img11 = 'http://illiweb.com/fa/pbucket.gif';
var img12 = 'http://illiweb.com/fa/pbucket.gif';
var img13 = 'http://illiweb.com/fa/pbucket.gif';
   var bb = $(this).text();
   var gg =    bb.replace(/(.*)Points:  (.+?)Reputation(.*)/,'$2');
   $(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>');

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum