MyBB Community Forums

Full Version: Post background color
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I would like to change the post background color so Administrators are posted in Gold Background, and Mods to Green
I think it's a good idea (:
Hello

Open ./inc/functions_post.php
Find
elseif($altbg == "trow1")
	{
		$altbg = "trow2";
	}

Replace with

elseif($altbg == "trow1")
	{
		$altbg = "trow2";
	}
	elseif($post['usergroup'] == 4)//Admin
	{
		$altbg = "trow_shaded";
	}
	elseif($post['usergroup'] == 3)//Super mod
	{
		$altbg = "trow_shaded";
	}
 elseif(is_moderator($fid) == "yes")//Moderator
	{
		$altbg = "green_back";
	}

Now in the themes manager Admin CP > Themes > Modify / Delete > Edit

And under Adittional CSS which is at the bottom, create different classes with different background colors and according to them, change green_back and trow_shaded to the new classes.