What's new
Install the app
How to install the app on iOS

Follow along with the video below to see how to install our site as a web app on your home screen.

Note: This feature may not be available in some browsers.

Welcome to My Sharing Site

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

  Guest viewing is limited
Resource icon

xF2 in Credit [AddonsLab] Unread Post Count 1.6.0 1.6.0

XenForo 2.x
xF2 in Credit [AddonsLab] Unread Post Count 1.6.0
Xenforo Offline

Xenforo

Ask me for any Xenforo Plugins

Trusted Member
+Lifetime VIP
New member
Member
Apr 4, 2020
6,249
6,196
113
Turkey


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 "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...

 
Relate Threads
Xenforo Offline

Xenforo

Ask me for any Xenforo Plugins

Trusted Member
+Lifetime VIP
New member
Member
Apr 4, 2020
6,249
6,196
113
Turkey
Xenforo updated with a new update entry:



Due to migration to a new caching strategy, a bug was introduced that would not change unread post count badge when the user reads an unread post.

Please note, that the product has an option Unread Post Count Cache (Minutes) in the option group Threads, discussions and conversations which defines how long unread post counts should be cached. If caching is not desired, and you want your users to always immediately see the number of unread posts, just set this option to 0. Caching is highly...

 
Xenforo Offline

Xenforo

Ask me for any Xenforo Plugins

Trusted Member
+Lifetime VIP
New member
Member
Apr 4, 2020
6,249
6,196
113
Turkey
Xenforo updated with a new update entry:



The release implements support for node permissions View threads by others and View thread content. Users not having these permissions for a particular node will not see the posts in that node as unread.

In this release, we have also solved the issue with the unread counter being empty on the first page load due to a missing cache.

The release has breaking changes in its code, so if you are using the product in any way other than the officially suggested callback...

 
Xenforo Offline

Xenforo

Ask me for any Xenforo Plugins

Trusted Member
+Lifetime VIP
New member
Member
Apr 4, 2020
6,249
6,196
113
Turkey
Xenforo updated with a new update entry:



This release resolves an issue with the expired cache not being rebuilt on the fly. Now the expired cache is updated immediately when a user visits the board after a long time of inactivity.

 
Xenforo Offline

Xenforo

Ask me for any Xenforo Plugins

Trusted Member
+Lifetime VIP
New member
Member
Apr 4, 2020
6,249
6,196
113
Turkey
Xenforo updated with a new update entry:



The package optimizes the query for fetching unread posts as recommended by @XFA

As we already fetch the nodes in a separate query, no additional query was required.

Thank you!

 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Top Posters of the Month

Online statistics

Members online
87
Guests online
461
Total visitors
548
Top