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
Starfleet
New
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?
0
Comments
Are you using modern oder table category view?
To help find the event for this, you can try the Eventi plugin (let's hope it still works):
https://open.vanillaforums.com/addon/eventi-plugin
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS
@Bleistivt That would be awesome, except the plugin doesn't seem to work for 2.5.1. I get the little button in the bottom right corner to show/hide eventi, but clicking it doesn't change anything on the page (not after a refresh either).
I also looked at this doc (https://docs.vanillaforums.com/developer/addons/events-and-handlers/), but it just tells me how to use the events once found, not how to find them. Would there be any other way to find the event I'm looking for?
PS: I'm using Vanilla 2.5.1 with the table category view, not the modern one, but the one next to it in the dashboard.
Ok so I installed 2.3.1 and tried Eventi, which did work now. It seems like there isn't a specific event for the ChildCategories.