View Full Version : I cant find! Help Please!
user360
09-30-2002, 01:35 AM
I've looked over and over and could not find this mod..
Description: On a board, I've seen, when the admin posted, the alt color changed to a color specified by that admin. I was asking where Could I find that mod, please help me.
user360
09-30-2002, 03:56 AM
if you need an example, heres one...
Logician
09-30-2002, 07:43 AM
edit functions.php, find:
if ($counter%2==0) {
$post[backcolor]="{firstaltcolor}";
$post[bgclass] = "alt1";
} else {
$post[backcolor]="{secondaltcolor}";
$post[bgclass] = "alt2";
}
Replace it as:
if ($post[usergroupid]==6)
{
$post[backcolor]="XXX";
$post[bgclass] = "YYY";
}
elseif ($counter%2==0) {
$post[backcolor]="{firstaltcolor}";
$post[bgclass] = "alt1";
} else {
$post[backcolor]="{secondaltcolor}";
$post[bgclass] = "alt2";
}
Replace XXX with the custom color and YYY with your custom CSS class.
I'm sure someone will ask so here is the code that would make it work for Mods and S.Mods too: :)
if ($post[usergroupid]==6 OR $post[usergroupid]==5 OR $post[usergroupid]==7)
{
$post[backcolor]="XXX";
$post[bgclass] = "YYY";
}
elseif ($counter%2==0) {
$post[backcolor]="{firstaltcolor}";
$post[bgclass] = "alt1";
} else {
$post[backcolor]="{secondaltcolor}";
$post[bgclass] = "alt2";
}
If you want different colors for Admins, Mods and S.Mods, ask..
BTW. I want to remind you that this will overwrite the default sytle colors so make sure to choose colors that doesnt clash with other styles if you have more than 1.
Enjoy..
user360
09-30-2002, 07:17 PM
Thanks man
Merjawy
10-01-2002, 06:09 AM
can't he just do that form editing style? alt. color line? I think thats how I did it
Logician
10-01-2002, 08:06 AM
Originally posted by Merjawy
can't he just do that form editing style? alt. color line? I think thats how I did it
If you are trying to change postbit background color, yes it would work. But he is trying to have a special color if the poster is an admin and default switching colors if he is a regular user. I dont think you can do it with style editing only..
user360
10-01-2002, 09:39 PM
yea, it works perfect... Makes me look special :D
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.