1

Topic: Running fine except for user ranks

i have my user ranks set up and none of them work... 

My users have the right mount of posts and the ranks is set up but once they get to a new rank it stays at the old one it had origanly???

Any ideas??

Cows

Re: Running fine except for user ranks

Open up your FTP client and open cache/cache_ranks.php
It should look something like this, but with different names/post numbers

<?php

define('PUN_RANKS_LOADED', 1);

$pun_ranks = array (
  0 => 
  array (
    'id' => '4',
    'rank' => 'Frosted Mini Wheats',
    'min_posts' => '10',
  ),
  1 => 
  array (
    'id' => '3',
    'rank' => 'Grape Nuts',
    'min_posts' => '0',
  ),
  2 => 
  array (
    'id' => '5',
    'rank' => 'Cheerios',
    'min_posts' => '25',
  ),
  3 => 
  array (
    'id' => '6',
    'rank' => 'Frosted Flakes',
    'min_posts' => '50',
  ),
  4 => 
  array (
    'id' => '7',
    'rank' => 'Count Chocula',
    'min_posts' => '100',
  ),
  5 => 
  array (
    'id' => '8',
    'rank' => 'Count Chocula',
    'min_posts' => '250',
  ),
  6 => 
  array (
    'id' => '9',
    'rank' => 'Fruity Pebbles',
    'min_posts' => '500',
  ),
  7 => 
  array (
    'id' => '10',
    'rank' => 'Cookie Crisp',
    'min_posts' => '1000',
  ),
);

?>

If it doesnt, delete the file.

Indocron
$theQuestion = (2*b) || !(2*b);

3

Re: Running fine except for user ranks

this is what i got

<?php

define('PUN_RANKS_LOADED', 1);

$pun_ranks = array (
  0 => 
  array (
    'id' => '1',
    'rank' => 'Leech',
    'min_posts' => '0',
  ),
  1 => 
  array (
    'id' => '2',
    'rank' => 'Inferno Member',
    'min_posts' => '50',
  ),
  2 => 
  array (
    'id' => '3',
    'rank' => 'Evolved n00b',
    'min_posts' => '15',
  ),
  3 => 
  array (
    'id' => '4',
    'rank' => 'Vip',
    'min_posts' => '300',
  ),
  4 => 
  array (
    'id' => '5',
    'rank' => 'Wild Poster :P',
    'min_posts' => '200',
  ),
);

?>

it looks pretty much identical to yours

Cows

4

Re: Running fine except for user ranks

also i changed all the folder permissions to 777 as the cmod

Re: Running fine except for user ranks

how you overriden the title in either thir profiles or the usergroups?

6

Re: Running fine except for user ranks

nope

Re: Running fine except for user ranks

it looks like it works fine...

edit: apart from above 50, try putting them in the right order

8

Re: Running fine except for user ranks

FYI:  I had this problem.  I re-ordered the array contents, ascending by 'min_posts', and everything seems to work okay now.

I haven't tried adding new ranks yet though.

Re: Running fine except for user ranks

re-ordering worked.  adding new ranks also worked..
Thank you.



But if I remove user ranks, then everyone shows as Members, even though some are Admins, and some are Friends..

Re: Running fine except for user ranks

Try removing the ranks cache file