Impacts all themes

Impacts all themes

by Eric Straw -
Number of replies: 0
Highlighting unread forum posts is a valuable feature for students and teachers. The value increases exponentially with the size of the class and the number of forums being used.

Unfortunately, the classes associated with highlighting unread forum posts in standard/styles_color.css are incorrect in Moodle 1.9.5 build 20090513 and previous versions and builds (not sure how far back). Most themes developed to date have inherited these faulty classes.

I have proposed a patch (MDL-18971, use the version 3 file) that solves this problem for the default themes provided with Moodle. If you develop your own themes then you need to be aware of the correct classes. The following five classes allow you to control highlighting of unread posts.


/** Unread count background on
* course/view.php
**/
#course-view .unread{
background: #9EBEFF;
}

/** Unread Posts count background on
* mod/forum/index.php
**/
#mod-forum-index .unread {
background: #9EBEFF;
}

/** unread column background on
* mod/forum/view.php
**/
#mod-forum-view .unread{
background: #9EBEFF;
}

/** inside border of unread posts in nested format in
* mod/forum/discuss.php
**/
#mod-forum-discuss .forumpost.unread .content {
border-width:2px;
border-color: #0046C7;
}

/** headers of unread posts in threaded format in
* mod/forum/discuss.php
**/
#mod-forum-discuss .forumthread.unread {
background: #9EBEFF;
}
Average of ratings: -