Making WordPress.org

Opened 3 years ago

Last modified 15 months ago

#2214 new enhancement

Forums: Automate Support badges

Reported by: SergeyBiryukov Owned by:
Milestone: Q1 Priority: normal
Component: Support Forums Keywords:


From August 18th Support Team Meeting Summary:

New Automated Badge Requirements

As we discussed last week, the Support Contributor and Support Team badges will be automated based on the following criteria:

Support Contributor = [x] replies. (tentatively 400 for the English forums)

Support Team = Moderator.

Today, this was approved by unanimous vote. The automation will begin once the bbPress 2 forum launches, and the tentative number of required replies will likely be adjusted per language forum as necessary. The Support Contributor badge will be permanent, like all other Contributor badges, while the Support Team badge can be removed by being demoted back to a standard forum member.

The forums are now on bbPress 2.x, so I guess it's time to look into this task.

Change History (12)

This ticket was mentioned in Slack in #forums by sergey. View the logs.

3 years ago

#2 @macmanx
3 years ago

Just clarifying that we later settled on 400 replies for the English forums, so that's no longer tentative: https://make.wordpress.org/support/handbook/contributing-to-the-wordpress-forums/volunteering-in-the-forums/

This ticket was mentioned in Slack in #forums by sergey. View the logs.

3 years ago

#4 follow-up: @danieltj
3 years ago

Is the source code for this open or closed source? Can a non-committer take a look at this (i.e. me)?

#5 in reply to: ↑ 4 @SergeyBiryukov
3 years ago

Replying to danieltj:

Is the source code for this open or closed source? Can a non-committer take a look at this (i.e. me)?

The two key components are both open-sourced:

However, neither of them is present in the Meta Environment yet, so it might be tricky to set up a local install. I'll document my experience of creating a local Support Forums install here:

  • Prerequisites:
  • Setup:
    • Add the following constants to wp-config.php:
      define('WPORGPATH', dirname(__FILE__) . '/wp-content/wporg/' );
    • Copy the downloaded header.php and footer.php files to WPORGPATH directory.
    • Install WP with http://wporg.dev/support as home URL (or create a new site on a Multisite network).
    • Activate bbPress.
    • Activate the support-forums plugin and other wporg-bbp-* plugins, if needed.
    • Switch to the wporg-support theme.
    • In Reading Settings, select a static page as a front page
    • Open the front page for editing and set bbPress - Support (Index) as page template.
    • Create a few test forums, topics, and replies.

That should be it for getting the Support Forums up and running locally.

I think a solution for this ticket would look like this:

  • In wporg-profiles-association-handler, create a handler for the forums. There are two existing handlers that could be used as an example: handle_wordcamp_association() and handle_polyglots_association().
  • When creating a new reply (on bbp_new_reply action), check if the user has more than 400 replies in total, and submit a request to the association handler created on the previous step.
  • Store the result in user meta to avoid further requests to the handler.

I haven't worked with the wporg-profiles-association-handler plugin yet, but feel free to ask any questions, and we'll figure it out together :)

Last edited 3 years ago by SergeyBiryukov (previous) (diff)

This ticket was mentioned in Slack in #forums by macmanx. View the logs.

2 years ago

#7 @obenland
2 years ago

  • Type changed from task to enhancement

@coffee2code Do you have an idea what it would take to get this working?

This ticket was mentioned in Slack in #forums by clorith. View the logs.

2 years ago

This ticket was mentioned in Slack in #meta by sergey. View the logs.

2 years ago

#10 @jobthomas
17 months ago

We were just discussing this very topic in the WP South Africa community and noticing that it's odd that you get a badge after translating some strings, but not after quite a bit of support threads replied to. Would indeed be great to get this sorted.

#11 @tellyworth
15 months ago

  • Milestone set to Q1

#12 @dd32
15 months ago

#2873 was marked as a duplicate.

Note: See TracTickets for help on using tickets.