PDA

View Full Version : Please Help..PostBit UserName..


Capp'n Galuxy
11-25-2002, 11:51 PM
ok..i already have colored online user names..

admin=orange
SM=dark grey
Mod=blue
Member=grey

But i need to do that for my postbit username as well..i want it to be set so..the colors of those go along with the ones in the post bit..i was givin a link to a thread about this before, but it didnt help me very much they had an error..an needed help so it didnt help me at all, but i would greatly appreciate it if i could be givin a link on how to do this (in detail) or if some one could give me detailed directions in this thread..PLEASE

Thanks N advance.. :glasses:

Erwin
11-26-2002, 01:28 AM
Do this:

In functions.php, find:


$post[message]=bbcodeparse($post[pagetext],$forum[forumid],$post[allowsmilie]);


BELOW, add:


if ($usergroupid == 6) { $post[username] = "<font color='orange'><b>$post[username]</b></font>"; }
else if ($usergroupid == 7) { $post[username] = "<font color='darkgrey'><b>$post[username]</b></font>"; }
else if ($usergroupid == 5) { $post[username] = "<font color='blue'><b>$post[username]</b></font>"; }
else if ($usergroupid == 2) { $post[username] = "<font color='grey'><b>$post[username]</b></font>"; }


Should work...