Page 1 of 1

ranks insanity

Posted: Sun Mar 09, 2008 5:41 am
by jasonf1
How does phpBB determine a user's rank? If one looks at users.user_rank, the value is either 1 or 0, but there are seven ranks in my forum's rank table. This is driving me nuts.

Re: ranks insanity

Posted: Sun Mar 09, 2008 9:14 am
by Paul
Use

Code: Select all

get_user_rank($row['user_rank'], $row['user_posts'], $user_cache[$poster_id]['rank_title'], $user_cache[$poster_id]['rank_image'], $user_cache[$poster_id]['rank_image_src']);
to generate the ranks. Dont forget to call

Code: Select all

$ranks = $cache->obtain_ranks();