Skip to:
Content
Pages
Categories
Search
Top
Bottom

BP widgets Members & Group Help


  • modemlooper
    Moderator

    @modemlooper

    <?php $users = BP_Core_User::get_newest_users( $options[‘max_members’] ) ?>

    This is the code that gets the newest users for the members widget. I tried changing newest to active. It gets the active members but the selected class is off on the active | popular | newest. It says not recently active as well.

    I basically want the group and the members widget to show the active when the page loads.

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

  • Burt Adsit
    Participant

    @burtadsit

    It gets the active members but the selected class is off on the active | popular | newest. It says not recently active as well

    What does the above mean?


    Burt Adsit
    Participant

    @burtadsit

    You might want to investigate the use of class BP_Core_Members_Template also. Lots more flexibility there. /bp-core/bp-core-templatetags.php. However you’ll have to build your own output format and use the loop tags for that template.

    There is also javascript that rules what’s going on in the members widget: /bp-core/js/widget-members.js

    Also a css class=”selected” in the html output of the widget. Gotta take all into account and tie them all together.


    modemlooper
    Moderator

    @modemlooper

    I meant that when I change the code the selected class is still choosing the newest. Like the page loads and it thinks the widget is displaying newest but I changed this

    <?php $users = BP_Core_User::get_newest_users( $options[‘max_members’] ) ?>

    to this

    <?php $users = BP_Core_User::get_active_users( $options[‘max_members’] ) ?>

    There are less sign ups than activity so I wanted the widget to show the activity first.


    Boone Gorges
    Keymaster

    @boonebgorges

    Hi Modemlooper – not sure whether you’re still interested in this, but I was looking to make a similar change (I wanted recently active members to show by default). I wrote a plugin to make it happen: http://dev.commons.gc.cuny.edu/2009/09/07/new-buddypress-plugin-enhanced-buddypress-widgets/. Hope it helps.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘BP widgets Members & Group Help’ is closed to new replies.
Skip to toolbar