Making WordPress.org

Opened 8 years ago

Closed 7 years ago

Last modified 7 years ago

#2772 closed enhancement (fixed)

Support Theme: Add "Reviews Written" to user details page

Reported by: sergeybiryukov's profile SergeyBiryukov Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: Priority: normal
Component: Support Forums Keywords:
Cc:

Description

Background: #2007

User details page currently lists the number of topics and replies:

Topics Started: 1

Replies Created: 0

I stumbled upon a user with a single topic, however their "Topics Started" tab was empty. It turned out the topic was on the "Reviews" tab.

It would be helpful to add "Reviews Written" as a separate line in user details:

Topics Started: 0

Replies Created: 0

Reviews Written: 1

Change History (7)

#1 @SergeyBiryukov
7 years ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 5617:

Support Theme: Add "Reviews Written" count to user's profile page.

Fixes #2772.

#2 @SergeyBiryukov
7 years ago

In 5618:

Support Theme: Make wporg_support_get_user_review_count() always return an integer.

See #2772.

#3 @SergeyBiryukov
7 years ago

In 5619:

Support Theme: After [5617], update template name for user reviews in content-single-user.php.

See #2772.

#4 @SergeyBiryukov
7 years ago

In 5629:

Support Theme: Introduce a function to count user's topics, excluding reviews.

The previous method of substracting the number of reviews from the total number of topics in [5617] was not really accurate and could sometimes result in a negative number.

See #2772.

#5 @SergeyBiryukov
7 years ago

In 5630:

Support Theme: Display "Reviews Written" count in user profile only on the main support forums, since reviews are only available there.

See #2772.

#6 @SergeyBiryukov
7 years ago

In 5860:

Support Forums: Introduce Users::get_user_topics_count() and ::get_user_reviews_count() methods.

The code is relocated from the wporg-support theme.

See #2967, #2772.

#7 @SergeyBiryukov
7 years ago

In 5861:

Support Theme: Use the methods added in [5860] in wporg_support_get_user_topics_count() and wporg_support_get_user_reviews_count().

See #2967, #2772.

Note: See TracTickets for help on using tickets.