Skip to:
Content
Pages
Categories
Search
Top
Bottom

Members widget problem

  • @gerbilo

    Participant

    I got $limit = 5 (changed in widget options like everyone does) for users to show in this widget. So all tabs at first look uses limit 5. But if i click on ajaxed link on top of this widget ‘Active’ or ‘Popular’ i got limit = 10 for this category.. why that? and how to fix this issue?

    I had this weird problem in “Members widget” since the begining, but i harcoded this:

    function get_newest_users( $limit = null, $page = 1 ) {
    global $wpdb;

    if ( $limit && $page )
    $pag_sql = $wpdb->prepare( " LIMIT %d, 5", intval( ( $page - 1 ) * $limit), intval( $limit ) );
    ...

    So now i want two pages with different limits, so this is not an option..

Viewing 5 replies - 1 through 5 (of 5 total)
  • @modemlooper

    Moderator

    I have this issue. In the admin I set the widget to display 5 members but when clicking active or popular it lists everyone on the site.

    Is there a way to fix this?

    @burtadsit

    Participant

    If I remember correctly the widget’s issue with ignoring the limit was fixed. Some time ago.

    @modemlooper

    Moderator

    check it out its not working

    http://twitterfic.com/?page_id=20

    @fishbowl81

    Participant

    I found the solution to this yesterday, see bugs 306 and 322 I believe.

    The problem is you don’t have maxmembers set in currently online widget.

    <input type=”hidden” name=”bp_core_widget_members_max” id=”bp_core_widget_members_max” value=”” />

    Look at line 139 of your source (generated, not php). If you set the max members in who’s online the problem goes away, or if who’s online is loaded after members, there is no problem.

    I talked to Andy about this yesterday, and I think it just needs to have some better documentation for the widgets.

    Brad

    @burtadsit

    Participant

    Ha! I remembered your conversation with Andy about that Brad and I looked in trac and could’t find it. Scroll down and there you are.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Members widget problem’ is closed to new replies.
Skip to toolbar