I did it like this:
$modsList=array();
foreach($mods as $key=>$val) if(!in_array($key, $modsList)) $modsList[]=$key;
foreach($w_logged_users as $key=>$val){
if($key==1) $clr='red';
elseif(in_array($key, $modsList)) $clr='green';
else $clr='black';
$registeredList.=" <a href=\"https://www.minibb.com/forums/{$indexphp}action=userinfo&user={$key}\"><span style=\"color:{$clr}\">{$val[0]}</span></a>, ";
}
foreach($w_logged_users as $key=>$val){
if(!isset($enableHidden) or $enableHidden==0){
//$registeredList.=" <a href=\"https://www.minibb.com/forums/{$indexphp}action=userinfo&user={$key}\">{$val[0]}</a>, ";
$usersOnline[$key]=TRUE;
}
and also I did for some Mod that they are just Mod for one or two threat in a forum..
if($key==1 or $key==2) $clr='red';
elseif(in_array($key or $key==1124, $modsList)) $clr='green';
this options work on my forum.. so is that ok?