/* Custom ranks function */

function parseUserInfo_num_posts($val){ 
if($GLOBALS['action']=='userinfo') return $val-$GLOBALS['row'][10]; 
elseif($GLOBALS['cols'][0]!=1 and !isset($GLOBALS['userRanks'][$GLOBALS['cols'][0]])){

//Put the amount of posts (from...to) and the special rank. You could also put stars (*****) instead of a word, or graphics with <img> tag and pre-created images.
if($val>=1 and $val<=10) $rank='Starter';
elseif($val>10 and $val<=30) $rank='Expert';
elseif($val>30 and $val<=1000) $rank='Profy';
elseif($val>1000 and $val<=1500) $rank='Rich';
elseif($val>1500) $rank='Upscale';

else $rank='';
if($rank!='') $rank=$GLOBALS['brtag'].'<span class="customRank">'.$rank.'</span>';
return $rank;
} 
}

/* --Custom ranks function */