Add Indicator after node title

Add Indicator after node title

Steve F

Well-known member
The way it works that's really not possible as the unread class is still present. They would need to mark the forum read by using the "Mark Forums Read" link.
 

Webby

Member
Anyone know how to make it where only unread threads are indicated for the node?

This is what I have now:

.nodeInfo.unread .nodeTitle:after,
.discussionListItem.unread .title:after {
background-color: #ac1212;
content: "NEW";
color: white;
border-radius: 2px;
margin-left: 5px;
padding: 1px 5px;
font-size: 9px; }


It displays "New" next to threads that have new posts which is what I want, but it displays "New" for any node with unread posts. I only want it to display "New" on a node if there is a new thread that hasn't been clicked on or read yet.
 

Jordyn

Formerly EvilSS
Is this possible in xenforo 2 ?
In extra.less man.
Code:
.node--unread .node-title:after {
    content: 'NEW';
    color: rgb(255, 255, 255);
    background: rgb(203, 71, 56);
    position: relative;
    font-size: 9px;
    line-height: 2;
    padding: 0 4px;
    margin-right: 4px;
    top: -2px;
    vertical-align: middle;
}
.node--unread .node-title:after {
    content: 'NEW';
}
 
Top