1

Topic: Plz in the next Version Color of User Group

Ok change the colors i means if this is user the color will be blue if it's admin the color will be red if it's Modeador the color will be black.
the color is radmonal but somthing like that plz?

Yours, Benny.

2 (edited by Nibbler(cpg) 2005-01-13 20:40)

Re: Plz in the next Version Color of User Group

You can add this in pretty easily, into viewtopic.php, change

$username = '<a href="profile.php?id='.$cur_post['poster_id'].'">'.pun_htmlspecialchars($cur_post['username']).'</a>';

to

    $group_colours = array(
        1 => 'red',
        2 => 'blue',
        4 => 'green'
    );
    
        $username = '<a href="profile.php?id='.$cur_post['poster_id'].'"><span style="color:'.$group_colours[$pun_user['group_id']].'">'.pun_htmlspecialchars($cur_post['username']).'</span></a>';

and set the colours you like in the array.

3

Re: Plz in the next Version Color of User Group

Too complicated. Just echo the user title or group as a class and then style with the stylesheet.

4

Re: Plz in the next Version Color of User Group

Oh thank you very much...

Yours, Benny.