Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product

In this Discussion

Unread on category-page Plugin: ChildCategories

StarfleetStarfleet New
edited May 10 in Vanilla 2.5 Help

So I have this simple plugin to show a 'New' tag after the category titles on the index page when there are unread messages in the category:

public function Base_AfterCategoryTitle_Handler($Sender, $Args) {
    if( ! $Args['Category']['Read']) {
        echo ' <strong class="HasNew JustNew NewCommentCount" title="You haven\'t read this yet.">new</strong>';
    }
}

This works, but now I'd like to also show 'New' tags after the titles of child categories on the index page. Only I can't figure out how to do this. Would anyone be willing to help me on this? :)

Comments

Sign In or Register to comment.