by RazielBach November 23rd 2014, 6:42 pm
The images that go into the script are the ones you have that show whether there is a new post or not.
For example: My forum uses
and
The first image is what represents a new post for a forum section and an entire category, so you have to insert those within the Javascript code.Â
My code looks likeÂ
- Code:
$(function() {
$('dl.icon[style*="http://i39.servimg.com/u/f39/18/96/09/29/scroll10.png"]').addClass('newpost');
$('dl.icon[style*="http://i39.servimg.com/u/f39/18/96/09/29/scroll10.png"]').addClass('newpost');
});
That image is just what changes to represent that your sections have a new post. Then through the CSS, you use the 'newpost' added class to colorize the cell, in addition to that image.
Here is what my forum looks like with a NEW and OLD post as an example:Â
However, the CSS code in Ange's Tuteur has makes the color you colorize too INCREDIBLY strong. On my forum, I was unable to read exactly what that section was when there was a new post. So I also made a change to fix that:
- Code:
dl.newpost {
background-color: rgba(244, 201, 107, 0.2) !important
}
Instead of using the hex HTML code for the color, I use RGB. The very last number is the opacity, and I was able to change it so that I can actually see what that section was when there was a new post.