Skip to:
Content

BuddyPress.org

Opened 16 years ago

Closed 15 years ago

#559 closed enhancement (worksforme)

Add max results to get_random_members()

Reported by: fishbowl81's profile fishbowl81 Owned by:
Milestone: Priority: trivial
Severity: Version:
Component: Keywords:
Cc:

Description

I'm using the groups class, and wanted to return more then 5 random group members. Can we add an maxresults to the function structure.

I would like to be able to call:
$members = $group->get_random_members(10);

Line 199: function get_random_members() {
of bp-groups-classes.php

The internals of the function would require some additional rewriting, but would add needed flexibility for the bp_groups_group class.

Thanks,
Brad

Change History (2)

#1 @(none)
16 years ago

  • Milestone Groups 1.1 deleted

Milestone Groups 1.1 deleted

#2 @cnorris23
15 years ago

  • Resolution set to worksforme
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.