Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Unread on category-page Plugin: ChildCategories

StarfleetStarfleet New
edited May 2018 in Vanilla 2.0 - 2.8

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? :)


Sign In or Register to comment.