MyBB Community Forums

Full Version: color coding threads?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How do i make my unapproved threads pink, closed threads black, on the forumview

the unapproved post is red on postview, but not in forumview
Have you tried to look in the global.css?
needs some conditionals in the templates?
unapproved threads should already be in pink in the forumdisplay...

to change the color for locked threads you can edit the forumdisplay.php file and find this part (around line 1002)

if($thread['visible'] == 0)
{
$bgcolor = "trow_shaded";
}
elseif($thread['visible'] == -1)
{
$bgcolor = "trow_shaded trow_deleted";
}


and change it as...


if($thread['visible'] == 0)
{
$bgcolor = "trow_shaded";
}
elseif($thread['visible'] == -1)
{
$bgcolor = "trow_shaded trow_deleted";
}
elseif($thread['closed'] == 1)
{
$bgcolor = "trow_locked";
}


and then add this to global.css

.trow_locked {
background: #DDDDDD;
border: 1px solid;
border-color: #fff #eee #eee #fff;
}
cool thanks i give it a shot

hmm doesnt work in the myprobb theme?

doesnt work in the default theme either
i just now tried it on default theme and it works fine... if required, you can PM me a temp. admin and ftp account to check it...
[attachment=33682]

can you show me? default one here:

btw, i added to another global css that gives the avatar a round edge, but it shouldnt matter

sorry the default did change, i didnt change the css

but not in the promyBB skin, which has a rollover js
did you add the css to promyBB skin as well... and also try a hard refresh (Ctrl+F5) on the page... to check further your forum url and a test account would be helpful....