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

Vanilla 2.6 is here! It includes security fixes and requires PHP 7.0. We have therefore ALSO released Vanilla 2.5.2 with security patches if you are still on PHP 5.6 to give you additional time to upgrade.

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


Sign In or Register to comment.