The new drupal.org main page as designed by Mark Boulton shows some community statistics above the map. The statistics are shown in a single sentence that reads:

310,721 people in 24 countries speaking 14 different languages are using Drupal.

  • x people comes from the user table.
  • y countries comes from the profile table.
  • z language we don't know yet but it should probably come from a profile field that can be re-used for event matching. DamZ is creating an issue for the event matching but it currently doesn't exist yet. We should link to DamZ's issue from this issue.
CommentFileSizeAuthor
#2 activity-api.patch1.14 KBmfb

Comments

dww’s picture

Status: Active » Needs review

There's a patch for users, comments, and members of the doc team over at #431144-3: Clean API to provide statistics from core (now marked duplicate with this).

mfb’s picture

StatusFileSize
new1.14 KB

I'm attaching the same patch that I had already uploaded on the newer issue.

This is a fairly slow query: SELECT COUNT(DISTINCT p.value) FROM profile_values p INNER JOIN users u ON p.uid = u.uid WHERE p.fid = 17 AND u.status = 1 AND p.value NOT IN ('<not specified>', '');. Should this patch provide a caching layer or can we rely on block cache etc.?

lisarex’s picture

Project: Drupal.org customizations » Drupal.org Redesign

Moving to the Redesign project

drumm’s picture

Component: Code » Home
Status: Needs review » Closed (works as designed)

Looks like this was already added in theme preprocess, which is good enough.