@mickola well yes, the second hook should also work, but either one should work for what you're doing.
Apologies if it's something that I've overlooked, but is it possible to recount posts for users?
We've got a few members complaining on our forum who seem to have an incorrect post count showing in their profile.
Which database are you using?
@baris Apologies for the delay, found I needed to update my custom theme, was using
Just a quick one, @baris
I've noticed I also display user post count on their post card.
posts.user.postcountis there an alternative to use, as I don't seem to be able to use
Also, is there any reason why
counts.postsis now out for sync only some users, is it now decrepated?
NodeBB uses user.postcount, is count.posts coming from a plugin?
@baris I noticed that persona theme (which our theme was originally based on) now uses that on the profile page rather than postcount, I thought something had changed.
Some reason that seems to return the correct post count compared to postcount, but the issue on is only on a few of the 8000+ members we have.
Ahh right the counts in the user dropdown. They are more accurate as they are calculate every time that page is loaded. And they take into account private categories that the user can't read.
user.postcounton the other hand is the total number of posts made by the user in all categories.
Ah right, I seem to have the opposite on my site,
user.postcountshows less than
But not to worry, now that I understand the differences.