![]() |
Colored usernames within thread?
I've seen the colored who's online hack, and it's additional colored buddylist hack, but I've searched but couldn't find a hack to allow for the usernames within a thread to be color coded as well, based on a similiar idea as the who's online hack.
1 color for admins, 1 for supermods, etc. so instead of AJ.. you'd see AJ or something like that. does this exist? if so, where? if not, i'd think it to be a hack someone could make. |
have answered already to your PM :)
if it worked so, i'll post it into the small releases ^^ if not, like i've said in the pm tell me, i'll work on it :) |
the code you gave me I got to work, but I can't seem to implement this for multiple usergroups correctly.
any idea how i might set this up for the other user groups as well? |
humm, it should work, for all usergroups if it works for one....
sure you have implemented the other groups correctly? |
eh.. i think so.
what code would you use? |
hmm like this way:
PHP Code:
just directly below if($post[userid]!=0) { ... |
see when i try to run that, it gives me a parse error on that first line.
but if i try it with just an if statement, converting admin users to red, it'll work.. ? |
1 Attachment(s)
hmm, i have tested it now on my board, and all works perfect
i just copied the lines i have written directliy after PHP Code:
look at the attached screeny can you please post 5 lines before and after the lines i have said you should add? |
humm, still won't work..
before: PHP Code:
PHP Code:
|
hmm, its exactly the same as my lines:
PHP Code:
can you please post also the exact errormessage? |
Parse error: parse error, unexpected T_STRING in /home/virtual/site3/fst/var/www/html/admin/functions.php on line 147
Fatal error: Call to undefined function: getuserinfo() in /home/virtual/site3/fst/var/www/html/admin/sessions.php on line 108 |
sounds like a forgotten " or something...
can't tell you more hmm, attaching full vb-php-files isn't allowed, so i can't take a look at your file. just try to crosschek every line with my part of the functions.php |
I don't know what to say.. i've checked my functions.php against yours ten times... it's identical.
and yet, i still get the same errors. |
Send me your functions.php an your e-mail and i'll check it. :)
ok? |
sent.
|
got it to work now?
|
It all works now, but I'd sort of like this to carry into the Forum Leaders page as well, so people can relate the colors to the ranks more clearly.
Is this as easily done? ;) |
shouldn't be a problem too
open showgroups.php line 175: while ($user = $DB_site->fetch_array($users)) { below add: $user[username]="<font color=red>".$username."</font>"; this are the moderators line 108: if ($usergroupid == 6) { // Admins below add: $user[username]="<font color=red>".$username."</font>"; this is for the admins then find } else if ($usergroupid == 5) { // Super Mods below add: $user[username]="<font color=blue>".$username."</font>"; this for supermods. not tested but should work :) |
All times are GMT. The time now is 12:45 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|