View Single Post
  #4  
Old 20th February 2016, 12:15
fireknight's Avatar
fireknight fireknight is offline
Administrator
 
Join Date: Aug 2010
Australia
Posts: 173
Default
Original code for function get_user_class_name
Code:
function get_user_class_name($class)
{
  switch ($class)
  {
    case UC_USER: return "User";

    case UC_POWER_USER: return "Power User";

    case UC_VIP: return "VIP";

    case UC_UPLOADER: return "Uploader";

    case UC_MODERATOR: return "Moderator";

    case UC_ADMINISTRATOR: return "Administrator";

    case UC_SYSOP: return "SysOp";
  }
  return "";
}
You may have something different
For example
Code:
function get_user_class_name($class)
{
  switch ($class)
  {
    case UC_USER: return "<font color=blue><b>Admin</b></font>";
   }
  return "";
}
This will work in most areas of your site code.
That is standard HTML coding. ( a little old standard but still working )

But the textarea tag uses bbcode
So you may need to change things around a little ( tweaking )

Create a new function just for the comment box.

Example
Code:
function get_user_class_name_commentbox($class) 
{   
  switch ($class)   
  {     
    case UC_USER: return "[font color=blue]Admin[/font]";   
   }   return "";
 }
Damn code brackets are messing up with the bold bbcode.

Example
case UC_USER: return "[ font color=blue][ b]Admin[ /b][ /font]

Minus the spaces inside the [ ] boxes.
Reply With Quote