Sources/BoardIndex.php
// Some basic color coding...
if (!empty($row['onlineColor']))
// Some basic color coding...
if($row['ID_MEMBER'] == 'ID_MEMBER')
{
$colors = array('FF0000', '00FF00', '0000FF');
$counter = 0;
$colored = '';
while($counter < $GLOBALS['func']['strlen']($row['realName']))
{
$color = $counter >= count($colors) ? $counter % count($colors) : $counter;
$colored .= '<span style="color: #' . $colors[$color] . ';">' . $row['realName'][$counter] . '</span>';
$counter++;
}
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $colored . '</a>';
}
elseif (!empty($row['onlineColor']))
// Some basic color coding...
if($row['ID_MEMBER'] == 'ID_MEMBER')
{
$colors = array('FF0000', '00FF00', '0000FF');
$counter = 0;
$colored = '';
while($counter < $GLOBALS['func']['strlen']($row['realName']))
{
$old_color = !empty($color) ? $color : 0;
$color = mt_rand(0, count($colors) - 1);
if($color == $old_color)
continue;
$colored .= '<span style="color: #' . $colors[$color] . ';">' . $row['realName'][$counter] . '</span>';
$counter++;
}
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $colored . '</a>';
}
elseif (!empty($row['onlineColor']))