Jump to content

Afflicted

Members
  • Posts

    2
  • Joined

  • Last visited

Afflicted's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Done but it still will not display after Posts:
  2. The URL this is on is: http://gaiaman.proboards25.com/index.cgiI want the code to show the varribale postTitles.The orginal code is: <script>//Level Up Meter v1.0//Copyright 9-22-2005 by ~Wonder//May be reposted anywhere as long as this header remains in tact//Put in Global Footer//Enter the # of posts required to reach all your levels in numerical orderpostLevels=new Array(0,50,100,250,500);//Edit these 3 variables to suit your color and height needsmeterBGColor="#00AA00";meterBorderColor="#000000";meterHeight=8;//If you want to user a gradient instead of a solid background color, enter the URL heremeterGradientURL="";if(meterGradientURL!=""){meterBGColor="";document.write("<style type=\"text/css\"><!--.rankmeter {background-image: url("+meterGradientURL+"); background-repeat: repeat;}--></style>")}else{meterBGColor=" bgColor="+meterBGColor;}if(location.href.match(/action=(display|goto|viewprofile|pmview|recent)/)){var td=document.getElementsByTagName("td");for(i=0;i<td.length;i++){if(td[i].width=="20%" && td[i].className.match(/windowbg/) && td[i].innerHTML.indexOf("Joined: ")!=-1){p=td[i].innerHTML.substring(td[i].innerHTML.indexOf("Posts: ")+7,td[i].innerHTML.length);p=parseInt(p.substring(0,p.indexOf("<")).replace(/,/ig,""));if(p<postLevels[postLevels.length-1]){for(j=0;j<postLevels.length;j++){if(p<postLevels[j]){break;}}np=postLevels[j]-p;p=p-postLevels[j-1];p=Math.round(p/(postLevels[j]-postLevels[j-1])*100);extra="<td width="+(100-p)+"%></td>";}else{p=100;np=0;extra="";}s="post";if(np!=1){s="posts";}a=td[i].innerHTML+="<br>Next Level: "+np+" "+s+"<br><table style=\"border-width:1px; border-style: solid;border-color:"+meterBorderColor+"\"cellpadding=0 cellspacing=0 width=100%><tr><td"+meterBGColor+" width="+p+"% height="+meterHeight+" class=rankmeter></td>"+extra+"</tr></table>";}}}</script> Below is my first editing attempt at the orginal code. (I am aware the postTitles varrible will not currently show) <script>//Level Up Meter v1.0//Copyright 9-22-2005 by ~Wonder//May be reposted anywhere as long as this header remains in tact//Put in Global Footer//Enter the # of posts required to reach all your levels in numerical orderpostLevels=new Array(0,1,50,100,200,500,1000,5000,10000,25000,100000);//Enter the # for each LevelpostTitles=newArray(Level 0,Level 1,Level 2,Level 3,Level 4,Level 5,Level 6,Level 7,Level 8,Level9,Level 10)//Edit these 3 variables to suit your color and height needsmeterBGColor="#CC0000";meterBorderColor="#000000";meterHeight=8;//don't edit below this lineif(location.href.match(/action=(display|goto|viewprofile|pmview|recent)/)){var td=document.getElementsByTagName("td");for(i=0;i<td.length;i++){if(td[i].width=="20%" && td[i].className.match(/windowbg/) && td[i].innerHTML.indexOf("Joined: ")!=-1){p=td[i].innerHTML.substring(td[i].innerHTML.indexOf("Posts: ")+7,td[i].innerHTML.length);p=parseInt(p.substring(0,p.indexOf("<")).replace(/,/ig,""));if(p<postLevels[postLevels.length-1]){for(j=0;j<postLevels.length;j++){if(p<postLevels[j]){break;}}np=postLevels[j]-p;p=p-postLevels[j-1];p=Math.round(p/(postLevels[j]-postLevels[j-1])*100);extra="<td width="+(100-p)+"%></td>";}else{p=100;np=0;extra="";}s="post";if(np!=1){s="posts";}a=td[i].innerHTML+="<br>Next Rank: "+np+" "+s+"<br><table style=\"border-width:1px; border-style: solid;border-color:"+meterBorderColor+"\"cellpadding=0 cellspacing=0 width=100%><tr><td"+meterBGColor+" width="+p+"% height="+meterHeight+" class=rankmeter></td>"+extra+"</tr></table>";}}}</script>
×
×
  • Create New...