Dm has an extension for new posts to change the category name color.
Colour forum Category
You can install that ext, but edit a couple of files before you enable it.
migration/colourforumcategory_install/m2_initial_file.php
Code: Select all
public function data()
{
$replacements = array(
'files' => array(
0 => '/styles/prosilver/template/forumlist_body.html',
1 => '/styles/prosilver/template/forumlist_body.html',
2 => '/styles/prosilver/template/viewforum_body.html',
),
'searches' => array(
0 => array(
0 => ' <div class="forabg">'
),
1 => array(
0 => ' <li class="row">'
),
2 => array(
0 => ' <li class="row<!-- IF topicrow.S_ROW_COUNT is even --> bg1<!-- ELSE --> bg2<!-- ENDIF --><!-- IF topicrow.S_POST_GLOBAL --> global-announce<!-- ENDIF --><!-- IF topicrow.S_POST_ANNOUNCE --> announce<!-- ENDIF --><!-- IF topicrow.S_POST_STICKY --> sticky<!-- ENDIF --><!-- IF topicrow.S_TOPIC_REPORTED --> reported<!-- ENDIF -->">'
)
),
'replaces' => array(
0 => array(
0 => ' <div class="forabg<!-- IF forumrow.S_UNREAD_FORUM --> block-new block-new<!-- ENDIF -->">'
),
1 => array(
0 => ' <li class="row<!-- IF forumrow.S_UNREAD_FORUM --> row-new<!-- ENDIF -->">'
),
2 => array(
0 => ' <li class="row<!-- IF topicrow.S_ROW_COUNT is even --> bg1<!-- ELSE --> bg2<!-- ENDIF --><!-- IF topicrow.S_POST_GLOBAL --> global-announce<!-- ENDIF --><!-- IF topicrow.S_POST_ANNOUNCE --> announce<!-- ENDIF --><!-- IF topicrow.S_POST_STICKY --> sticky<!-- ENDIF --><!-- IF topicrow.S_TOPIC_REPORTED --> reported<!-- ENDIF --><!-- IF topicrow.S_UNREAD_TOPIC --> row-new<!-- ENDIF -->">'
)
)
);
return $replacements;
}
Dm could probably correct me on the codes above. But they work on my test site.
style/prosilver/theme/colourforumcategory.css
Code: Select all
.block-new .header a:link, .block-new .header a:visited, .block-new th a:link, .block-new th a:visited {
color: #FEDF14;
-webkit-animation: block-throb 1s infinite;
-webkit-animation-iteration-count: infinite;
}
@-webkit-keyframes block-throb {
0% { color: #FEDF14; }
50% { color: inherit; }
100% { color: #FEDF14; }
}
.block-new .header a:hover, .block-new .header a:active, .block-new th a:hover, .block-new th a:active {
color: #a8d8ff;
}
li.row.row-new {
box-shadow:inset 0px 0px 15px rgba(255,0,0,0.8);
-webkit-animation: row-throb 1s ease-out;
-webkit-animation-iteration-count: infinite;
}
@-webkit-keyframes row-throb {
0% { box-shadow:inset 0px 0px 15px rgba(255,0,0,0.8); }
50% { box-shadow: none; }
100% { box-shadow:inset 0px 0px 15px rgba(255,0,0,0.8); }
}
Your forum background on index and topic background in viewforum will also flash if they have a unread post.