I was trying to recount members on my local install, which has the Wedge.org member database, but without any posts.
It turns out that, from looking at the source code, it first gets a list of members, then counts how many posts they have in the message table, then updates their counts.
However, if a user has no message at all in the table, their account will simply be ignored...
Two possible solutions:
- Set all members to 0 posts at the start of the process. Would make sense... Especially since this is already there as a 'fallback' for a strange reason.
- Load all message count entries into the member list, i.e. $members = array(member 1 => 65 posts, 2 => awaiting count, ...), and then after we're done counting, update all members one by one.
I would fix that myself, but as I know that @Arantor rewrote this a while ago, I'm wary of breaking anything.
Hmmm... Nice bug in mentions... I just typed @Arantor, and it showed me a loooong list of 'Arantor' names in the list... It's possibly due to Ajax being slow for me here, so it's getting multiple requests sent before even receiving them.
It turns out that, from looking at the source code, it first gets a list of members, then counts how many posts they have in the message table, then updates their counts.
However, if a user has no message at all in the table, their account will simply be ignored...
Two possible solutions:
- Set all members to 0 posts at the start of the process. Would make sense... Especially since this is already there as a 'fallback' for a strange reason.
- Load all message count entries into the member list, i.e. $members = array(member 1 => 65 posts, 2 => awaiting count, ...), and then after we're done counting, update all members one by one.
I would fix that myself, but as I know that @Arantor rewrote this a while ago, I'm wary of breaking anything.
Hmmm... Nice bug in mentions... I just typed @Arantor, and it showed me a loooong list of 'Arantor' names in the list... It's possibly due to Ajax being slow for me here, so it's getting multiple requests sent before even receiving them.
This topic was marked solved by its starter, on April 21st, 2013, 12:56 PM


