dog199200 Guest | Rank Error (25th Jan 08 at 5:28am UTC) | | For some reason on my FMA forum and my Inuyasha forum, the ranks start out at the second rank even if they have 0 posts..and i check the modify rank area and it is how it is suppose to be there, and i hit modify and it still starts out at rank two...also if you check this check a none staff member, because staff members ranks are altered so it is forced to start out at one for them.
http://fmaadvanced.virtualforums.co.uk
http://inuyashasworld.virtualforums.co.uk/ | |
|
Ross Administrator
    
![[Avatar]](http://uploads.virtualforums.co.uk/forums/pokemon/vforums-qr1.png) Posts: 3,709 Status: Offline Gender: Male Age: 9 1⁄4 Joined:
Additional Groups: Support Team
  
pmwwwgtalkvForum | Re: Rank Error (25th Jan 08 at 9:11am UTC) | | Looking at the first site it is starting out at the first rank you have in there, "Trainie". They may not have enough posts to be in that rank but they have no choice since you've not got a rank where there are 0 posts required. | |
|
|
dog199200 Guest | Re: Rank Error (25th Jan 08 at 8:26pm UTC) | | umm ya i noticed that but i check it before i posted this and the first one was there..
Edit: ok again I added in the rank but it still starts out at the second rank.. http://fmaadvanced.virtualforums.co.uk/ | |
|
dog199200 Guest | |
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: Rank Error (26th Jan 08 at 10:13pm UTC) | | are you sure that rank 2 doesn't start at 0 too.? | |
|
dog199200 Guest | |
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: Rank Error (26th Jan 08 at 10:20pm UTC) | | It would help as I can't access your admin panel. | |
|
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 | |
dog199200 Guest | Re: Rank Error (26th Jan 08 at 10:48pm UTC) | | umm nope not exactly.... it show that the rawr account has 1rank because it is a staff account..any account that doesn't have a staff accout or a member group starts out at rank two all because of this code
 Code: - <script type="text/javascript">
- <!--
- var ranks = Array(); var r=0;
-
- ranks[r++] = Array(0, 'Newbe', 1, 'http://s4.images.proboards.com/star.gif');
- ranks[r++] = Array(50, 'Trainie', 2, 'http://s4.images.proboards.com/star.gif');
- ranks[r++] = Array(125, 'Apprentice', 3, 'http://s4.images.proboards.com/star.gif');
- ranks[r++] = Array(250, 'Teacher', 4, 'http://s4.images.proboards.com/star.gif');
- ranks[r++] = Array(500, 'Master', 5, 'http://s4.images.proboards.com/star.gif');
-
-
- function assign_rank(display_name, posts) {
- if(!display_name.match(/group0/i)) {
- posts = parseInt(posts.replace(/,/g, ''));
- r = 0;
- while(ranks[r] && ranks[r][0] < posts) {
- r++;
- }
- if(r > 0)
- r--;
- var rank_str = "<br />" + ranks[r][1] + "<br />";
- for(c=0; c<ranks[r][2]; c++) {
- rank_str += "<img src=\""+ ranks[r][3] +"\" alt=\"*\" />";
- }
- document.write(rank_str);
- }
- }
- //-->
- </script>
| |
|
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: Rank Error (26th Jan 08 at 11:22pm UTC) | | try destaffing the rawr member! | |
|
Ross Administrator
    
![[Avatar]](http://uploads.virtualforums.co.uk/forums/pokemon/vforums-qr1.png) Posts: 3,709 Status: Offline Gender: Male Age: 9 1⁄4 Joined:
Additional Groups: Support Team
  
pmwwwgtalkvForum | Re: Rank Error (26th Jan 08 at 11:27pm UTC) | | Should be good now. | |
|
|
dog199200 Guest | Re: Rank Error (26th Jan 08 at 11:59pm UTC) | | yep its fixed but umm now people with out a group has two ranks sets not one and only the people in a group should have two.. | |
|
Ross Administrator
    
![[Avatar]](http://uploads.virtualforums.co.uk/forums/pokemon/vforums-qr1.png) Posts: 3,709 Status: Offline Gender: Male Age: 9 1⁄4 Joined:
Additional Groups: Support Team
  
pmwwwgtalkvForum | Re: Rank Error (27th Jan 08 at 12:03am UTC) | | yep its fixed but umm now people with out a group has two ranks sets not one and only the people in a group should have two..
Links to profiles? | |
|
|
dog199200 Guest | |
Ross Administrator
    
![[Avatar]](http://uploads.virtualforums.co.uk/forums/pokemon/vforums-qr1.png) Posts: 3,709 Status: Offline Gender: Male Age: 9 1⁄4 Joined:
Additional Groups: Support Team
  
pmwwwgtalkvForum | Re: Rank Error (27th Jan 08 at 12:17am UTC) | | They're not being given the group0 class. Most probably an error when regsitering. I've added a fix but it won't show up on existing mini profiles as they've been cached. When the users post or modify their profile (which I've done for those 4) the mini profile will be re-created and the correct class applied causing the code to work properly. | |
|
|