If you want to change the color, I would suggest creating new names, copying the existing css for information and description and then altering it to fit your needs. Unless you want to change those globally, as they are SMF css code and used in other parts around SMF.
If you wanted to track colors by the member, it should be possible by tracking the id_member and only changing $alt when we encounter a different id_member:
If you wanted to track colors by the member, it should be possible by tracking the id_member and only changing $alt when we encounter a different id_member:
Code Select
$alt = false;
$last_id_member = -1;
while ($reply = $context['get_replies']())
{
if ($last_id_member != $reply['id_member'])
$alt = !$alt;
$last_id_member = $reply['id_member'];
if (!empty($reply['is_new']))
echo '
<a id="new"></a>';
echo '
<div class="', $alt? 'description' : 'information', ' shd_reply', (!empty($context['ticket']['display_recycle']) && $reply['message_status'] == MSG_STATUS_DELETED ? ' errorbox' : ''), '" id="msg', $reply['id'], '">