Aiken Full Member
    
 
 ![[Avatar]](http://uploads.virtualforums.co.uk/forums/support/me-yat.jpeg)  Posts: 333 Status: Offline Gender: Male Location: In a very lonely place, the domain of despair Age: 35 Joined:  
  pmskypemsnyahooxfire | | Progress bar for posting ranks (26th Apr 10 at 4:58pm UTC) |  |  Global Header:
  Code:    - <script>
 -  
 - function PostLevel(Posts){
 -  
 - if(vf_username != 'guest' && GroupCheck(0)){
 -  
 - Posts = parseInt(Posts)
 - var PPost = ''
 -  
 - var PostList = []
 - PostList[0] = [0,1];
 - PostList[1] = [1,5];
 - PostList[2] = [5,250];
 - PostList[3] = [250,250];
 -  
 - for(i = PostList.length; i >= 0; i--){
 -  
 - if(Posts > PostsList[i][0]){
 -  
 - var PostPer = (Posts/PostList[i][1])*100
 -  
 - if(PostPer > 100){
 - PostPer = 100
 - }
 -  
 - PostPer = (PostPer * 2)-4
 -  
 - PPost = '<tr><td class="window2" colspan="2"><div style="width:98px; height:18px; background-color:000;"><div style="float:left; width:' + PostPer + 'px; height:16px; background-color:FF0;"></div></div></td></tr>';
 -  
 - document.write(PPost);
 -  
 - }
 -  
 - }
 -  
 - }
 -  
 - }
 -  
 - </script>
 
 
   
  Mini-Profile template:
  Code:    - <script>
 - PostLevel({posts});
 - </script>
 
 
   
  It is not being displayed at all |  |
  vF forums: Perfect World RP BLEACH Universe - Under Construction / Testing Phase Xen Qarna RP - Stage I Vyren Entar Battle Network RP - Under Construction / Maintenance Mode Enabled the Final Anime Hideout |  
  | 
Michael Moderator
      
 
 ![[Avatar]](http://av.wservices.co.uk/av.png)  Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:  
  Additional Groups:  Coding Team
    
 
 
  pmvForum | | Re: Progress bar for posting ranks (26th Apr 10 at 5:11pm UTC) |  |  Do you have a link to a profile with this on so that I can see the rest of the coding please?    |  |
 
  | 
Nick Very Senior Member
      
 
 ![[Avatar]](http://uploads.vforums.co.uk/forums/support/f_5e7b1402b305d883af97446b2fedc6c2_1-eog.jpeg)  Posts: 3,013 Status: Offline Gender: Male Location: vForums Age: 35 Joined:  
  pmwww |  | 
Michael Moderator
      
 
 ![[Avatar]](http://av.wservices.co.uk/av.png)  Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:  
  Additional Groups:  Coding Team
    
 
 
  pmvForum | | Re: Progress bar for posting ranks (26th Apr 10 at 6:55pm UTC) |  |  Darkmage... the reason I asked for a link is because he is using other predefined functions within his coding that you don't have defined.    |  |
 
  | 
Nick Very Senior Member
      
 
 ![[Avatar]](http://uploads.vforums.co.uk/forums/support/f_5e7b1402b305d883af97446b2fedc6c2_1-eog.jpeg)  Posts: 3,013 Status: Offline Gender: Male Location: vForums Age: 35 Joined:  
  pmwww | | Re: Progress bar for posting ranks (26th Apr 10 at 6:56pm UTC) |  |  Oh I see.   Well it still doesn't work on mine. >.< |  |
 
  | 
Aiken Full Member
    
 
 ![[Avatar]](http://uploads.virtualforums.co.uk/forums/support/me-yat.jpeg)  Posts: 333 Status: Offline Gender: Male Location: In a very lonely place, the domain of despair Age: 35 Joined:  
  pmskypemsnyahooxfire |  | 
Michael Moderator
      
 
 ![[Avatar]](http://av.wservices.co.uk/av.png)  Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:  
  Additional Groups:  Coding Team
    
 
 
  pmvForum | | Re: Progress bar for posting ranks (26th Apr 10 at 9:03pm UTC) |  |  This line: if(Posts > PostsList[i][0]){  PostsList is undefined  I think you mean "PostList"
 
  |  |
 
  | 
Aiken Full Member
    
 
 ![[Avatar]](http://uploads.virtualforums.co.uk/forums/support/me-yat.jpeg)  Posts: 333 Status: Offline Gender: Male Location: In a very lonely place, the domain of despair Age: 35 Joined:  
  pmskypemsnyahooxfire |  | 
Michael Moderator
      
 
 ![[Avatar]](http://av.wservices.co.uk/av.png)  Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:  
  Additional Groups:  Coding Team
    
 
 
  pmvForum | | Re: Progress bar for posting ranks (26th Apr 10 at 10:18pm UTC) |  |  Change your for loop to: for(i = PostList.length-1; i >= 0; i--){
  Also add a break; statement to the end of your if statement. |  |
 
  | 
Aiken Full Member
    
 
 ![[Avatar]](http://uploads.virtualforums.co.uk/forums/support/me-yat.jpeg)  Posts: 333 Status: Offline Gender: Male Location: In a very lonely place, the domain of despair Age: 35 Joined:  
  pmskypemsnyahooxfire |  | 
Michael Moderator
      
 
 ![[Avatar]](http://av.wservices.co.uk/av.png)  Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:  
  Additional Groups:  Coding Team
    
 
 
  pmvForum | | Re: Progress bar for posting ranks (26th Apr 10 at 10:33pm UTC) |  |  | Unfortunately being a guest I can't test it exactly. Can you remove the first line (and the corresponding closing brace) from your code that sets it so that only guests can see it ... then I can test it further for you ... I have it on my test forum, and it worked fine...  :/ |  |
 
  | 
Aiken Full Member
    
 
 ![[Avatar]](http://uploads.virtualforums.co.uk/forums/support/me-yat.jpeg)  Posts: 333 Status: Offline Gender: Male Location: In a very lonely place, the domain of despair Age: 35 Joined:  
  pmskypemsnyahooxfire |  | 
Michael Moderator
      
 
 ![[Avatar]](http://av.wservices.co.uk/av.png)  Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:  
  Additional Groups:  Coding Team
    
 
 
  pmvForum | | Re: Progress bar for posting ranks (26th Apr 10 at 10:36pm UTC) |  |  | That could be the bit that's 'causing to not work. Is there any reason that you don't want to show it to the Guests?  |  |
 
  | 
Aiken Full Member
    
 
 ![[Avatar]](http://uploads.virtualforums.co.uk/forums/support/me-yat.jpeg)  Posts: 333 Status: Offline Gender: Male Location: In a very lonely place, the domain of despair Age: 35 Joined:  
  pmskypemsnyahooxfire |  | 
Michael Moderator
      
 
 ![[Avatar]](http://av.wservices.co.uk/av.png)  Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:  
  Additional Groups:  Coding Team
    
 
 
  pmvForum | | Re: Progress bar for posting ranks (26th Apr 10 at 10:52pm UTC) |  |  | Does it work now? |  |
 
  |