ranks insanity

Discussion forum for MOD Writers regarding MOD Development.
Registered User
Posts: 46
Joined: Mon Aug 20, 2007 11:10 pm

ranks insanity

Post 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.
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 26938
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier

Re: ranks insanity

Post by Paul »


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();
Knock knock
Race condition
Who's there?

My BlogMy Photosmy phpBB Extensionscustom phpBB work & Development

Return to “[3.0.x] MOD Writers Discussion”