View Single Post
  #52  
Old 8th August 2008, 00:23
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Default
hi how the hell do you change class ive tried in global.php but it wont work

Code:
define ('UC_USER', 0);
define ('UC_POWER_USER', 1);
define ('UC_COMMUNITY_VIP', 2);
define ('UC_VIP', 3);
define ('UC_LEGEND', 4);
define ('UC_UPLOADER', 5);
define ('UC_MODERATOR', 6);
define ('UC_ADMINISTRATOR', 7);
define ('UC_SYSOP', 8);
define ('UC_STAFF_LEADER', 9);
define ('UC_OWNER', 10);

function get_user_class()
{
  global $CURUSER;
  return $CURUSER["class"];
}

function get_user_class_name($class)
{
  switch ($class)
  {
    case UC_USER: return "User";

    case UC_POWER_USER: return "Power User";

    case UC_COMMUNITY_VIP: return "Community Vip";

    case UC_VIP: return "VIP";

    case UC_LEGEND: return "Legend";

    case UC_UPLOADER: return "Uploader";

    case UC_MODERATOR: return "Moderator";

    case UC_ADMINISTRATOR: return "Administrator";

    case UC_SYSOP: return "SysOp";

    case UC_STAFF_LEADER: return "Staff Leader";

    case UC_OWNER: return "Owner";
  }
  return "";
}
Reply With Quote