[AddonsLab] Unread Post Count

XF 2.x Add-ons [AddonsLab] Unread Post Count 1.4.2

Compatible XF 2.x versions
2.0, 2.1
Additional Requirements
[AddonsLab] Navigation Badge 1.0.0 https://www.dhakamobilebd.com/resources/addonslab-navigation-badge.18/
Visible branding
No
As XenForo 2.x has introduced a new Navigation engine, we have created another add-on - "[AddonsLab] Navigation Badge", that allows any third-parties and admins to add different badges to any navigation item. The add-on is required for this add-on to work and can be downloaded for free at https://xenforo.com/community/resources/addonslab-navigation-badge.5839/

Any other navigation tab can show the number of unread posts by configuring it to use a callback for the badge with class name "AL\UnreadPostCount\Callback" and method "getUnreadPostCount". This is the default setup for the "What's New" button after add-on installation.

The badge is added using default XenForo 2.x layout/styling, but it can be easily styled for each case using CSS only by using "nav{navigationItemIdHere}" class. For example:

CSS:
.customBadgeContainer.navwhatsNew:after {
top: -10px;
}
will make the badge in What's New tab to be on the top-right corner.

Configuration.png
Unread Post Count.png
Dynamic Badge.png
Author
Urisha
Downloads
0
Views
141
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from Urisha

Top