Afflicted Posted January 18, 2006 Share Posted January 18, 2006 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> Link to comment Share on other sites More sharing options...
Chocolate570 Posted January 18, 2006 Share Posted January 18, 2006 Put quotes around "level 1" and so on. Link to comment Share on other sites More sharing options...
Afflicted Posted January 18, 2006 Author Share Posted January 18, 2006 Put quotes around "level 1" and so on.Done but it still will not display after Posts: Link to comment Share on other sites More sharing options...
Chocolate570 Posted January 19, 2006 Share Posted January 19, 2006 Hmmm...I've gone through the whole script but I can't seem to find anything wrong. You're using this on an IF board? You have to use it on a pro-board.If you are, I see a variation of this called 'karma ranks' that does the same thing. You can't run both scripts together. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now