View Single Post
  #1  
Old 14th May 2013, 13:28
rus16 rus16 is offline
Member
 
Join Date: Feb 2012
P2P
Posts: 2
Exclamation Shoutbox usergroup color
Click the image to open in full size.



Bump: solution here

In shoutbox.php find:

PHP Code:
echo "<div align='right' style='float: right'><a href='".$site_config['SITEURL']."/shoutbox.php?del=".$row['msgid']."' style='font-size: 8px'>[D]</a><div>"
Add after:

PHP Code:
$a mysql_query("SELECT class FROM `users` WHERE id = $row[userid] ");
$a = @mysql_fetch_row($a);
switch (
$a[0]) {
case 
5// Administrator
$user "<font color=#ff0000>$row[user]</font>";
break;
case 
4// Super Moderator
$user "<font color=#A83838>$row[user]</font>";
break;
case 
3// Moderator
$user "<font color=#000000>$row[user]</font>";
break;
case 
2// VIP
$user "<font color=#FEDE01>$row[user]</font>";
break;
case 
1// Uploader
$user "<font color=#C0C0C0>$row[user]</font>";
break;
default: 
// User
$user $row[user];

and near the line 180 find:

PHP Code:
echo    '</td><td style="font-size: 12px; padding-left: 5px"><a href="'.$site_config['SITEURL'].'/account-details.php?id='.$row['userid'].'" target="_parent"><b>'.$row['user'].':</b></a>&nbsp;&nbsp;'.nl2br(format_comment($row['message']));
and 
replace:
'. $row['user']. '
by:
' .$user. ' 
Have fun!

Last edited by rus16; 14th May 2013 at 13:52.
Reply With Quote