Skip to:
Content
Pages
Categories
Search
Top
Bottom

BP_User_Query Popular User Type


  • freedans
    Participant

    @freedans

    Hello,

    I am just getting my toes into BuddyPress’ documentation, and came across the ‘popular’ user type in BP_User_Query.

    I have no idea how ‘popular’ users are defined in BuddyPress. My questions are as follows:

    1. How is the ‘popular’ user type defined and sorted in BuddyPress?
    2. If ‘popular’ users are calculated across a period of time, could one theoretically sort users into ‘most popular by day, week, month, etc.’?
    3. The documentation recommends bp_parse_args() for filtering members. What would a simple function to return popular users using bp_parse_args() look like?

Viewing 2 replies - 1 through 2 (of 2 total)

  • freedans
    Participant

    @freedans

    I wrote a function to return popular users with relatively little difficulty, following existing documentation. I still cannot find any info on how ‘popular’ sorting works in Buddypress, though. Is it based on visits? Engagement on profile activity? There are so many different ways that one could determine ‘popularity.’

    I’m looking for specifics, so I can determine if this method of sorting is suitable to my needs. I’d also really like to know if it’s possible to calculate ‘popularity,’ however that’s determined, over time. Does anyone have info on this?


    Venutius
    Moderator

    @venutius

    I think it’s more likely to be number of friends

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar