plugins/SpecialUserFuncs.php
changeset 908 44302dd20d62
parent 907 44851d7e9bda
child 909 94c1ff984286
--- a/plugins/SpecialUserFuncs.php	Mon Apr 13 16:57:20 2009 -0400
+++ b/plugins/SpecialUserFuncs.php	Mon Apr 13 17:28:24 2009 -0400
@@ -1987,6 +1987,7 @@
   {
     global $db, $session, $paths, $template, $plugins; // Common objects
     global $lang;
+    /*
     switch ( $level )
     {
       case USER_LEVEL_GUEST:
@@ -2001,6 +2002,13 @@
       default:
         $s_level = $lang->get('userfuncs_ml_level_unknown', array( 'level' => $level ));
     }
+    */
+    
+    // TODO: Requested by mm3. Is this too CPU-intensive? Optimize?
+    //       Performance yield =/= about the same (but only 4 users under testing conditions)
+    $rankdata = $session->get_user_rank($row['user_id']);
+    $s_level = '<span style="' . $rankdata['rank_style'] . '">' . $lang->get($rankdata['rank_title']) . '</span>';
+    
     return $s_level;
   }
   function email($addy, $row)