Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I think it would be nice to give public credit to the moderators. Something like this:
500 posts moderated in the last month.
5,000 posts moderated since the beginning of this site.
Actions by moderator in the last month:
pwolanin: 500
lyricnz: 400
yoroy: 388
Actions by moderator all time:
pwolanin: 3,000
lyricnz: 1,000
yoroy: 1,000
Comment | File | Size | Author |
---|---|---|---|
#7 | 418524-moderator-stats-7.patch | 2.83 KB | pwolanin |
#6 | 418524-moderator-stats-6.patch | 2.49 KB | pwolanin |
#4 | 418524-moderator-stats-4.patch | 1.6 KB | pwolanin |
Comments
Comment #1
pwolanin CreditAttribution: pwolanin commentedGreggles - a block? a page?
Comment #2
gregglesYes, I was thinking of a block.
Comment #3
pwolanin CreditAttribution: pwolanin commentedpatch or suggested code?
Comment #4
pwolanin CreditAttribution: pwolanin commentedQuick patch - probably needs a setting for the number to show?
Comment #5
gregglesI guess we should ideally check that the user status is active in the query.
I think this is good enough without a setting for the number, but maybe 5 is enough.
It would also be interesting to limit the recency as well so that it shows "who are the top moderators in the last 6 months" rather than just all time, but it depends on what you are trying to motivate people to do.
Comment #6
pwolanin CreditAttribution: pwolanin commentedComment #7
pwolanin CreditAttribution: pwolanin commentedComment #8
pwolanin CreditAttribution: pwolanin commentedcommitted the last patch - open a follow-up if it needs improvement
Comment #10
christefano CreditAttribution: christefano commentedDid this end up being deployed? I don't remember ever seeing this block.