|
Post by Wormopolis on Jul 3, 2009 5:52:30 GMT -8
Browser Tested: IE and FF placement: main footer
Adds post rank stars under the rank/group name on the member list.
code:
<script type="text/javascript"> <!-- // Post Rank Stars on member list // By Wormopolis - wormocodes.proboards.com // keep header intact - do not repost
// [minimum post count, number of images, image URL] var rankStarArray = [ [0,0,""], [10,1,"http://i197.photobucket.com/albums/aa250/WORMOPOLIS/star_small.png"], [20,2,"http://i197.photobucket.com/albums/aa250/WORMOPOLIS/star_small.png"], [30,3,"http://i197.photobucket.com/albums/aa250/WORMOPOLIS/star_small.png"], [40,3,"http://i197.photobucket.com/albums/aa250/WORMOPOLIS/star2.png"], [50,4,"http://i197.photobucket.com/albums/aa250/WORMOPOLIS/star2.png"], [75,5,"http://i197.photobucket.com/albums/aa250/WORMOPOLIS/star2.png"], [100,5,"http://i197.photobucket.com/albums/aa250/WORMOPOLIS/star3.png"], [200,6,"http://i197.photobucket.com/albums/aa250/WORMOPOLIS/star3.png"], [500,7,"http://i197.photobucket.com/albums/aa250/WORMOPOLIS/star3.png"] ];
// no need to edit below
if (location.href.match(/action=members/)) { for (trs=document.getElementsByTagName('tr'), a=0; a<trs.length; a++) { if (trs[a].getElementsByTagName('td').length==6 && trs[a].firstChild.className=='windowbg') { rankcell=trs[a].firstChild.nextSibling.nextSibling.nextSibling.firstChild; pc=trs[a].firstChild.nextSibling.nextSibling.nextSibling.nextSibling.firstChild.innerHTML; for (i=rankStarArray.length-1; i>0; i--) { if (parseInt(pc)>=rankStarArray[i][0]) { rankcell.appendChild(document.createElement('br')); for (c=0; c<rankStarArray[i][1]; c++) { imgtemp=rankcell.appendChild(document.createElement('img')); imgtemp.border=0; imgtemp.src=rankStarArray[i][2]; } break; } } } } }
//--> </script>
Preview: view the member list on this site.
|
|