Skip to:
Content
Pages
Categories
Search
Top
Bottom

Human Error in BP Source Code???

  • @glyndavidson

    Participant

    I’ve been tampering with the legacy templates and found that when I visit: http://%site_url%/members/%user_name%/friends/, the drop-down select box to order the friends lists was making things crash.

    Looking at the code (buddypress/bp-templates/bp-legacy/buddypress/members/single/friends), the drop down select box has the command ‘bp_member_blog_order_options’ following it.

    <select id="members-friends">
     <option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option>
     <option value="newest"><?php _e( 'Newest Registered', 'buddypress' ); ?></option>
     <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ); ?></option>
     <?php do_action( 'bp_member_blog_order_options' ); ?>
    </select>

    Shouldn’t this be something more like ‘bp_member_friend_order_options’?

Viewing 4 replies - 1 through 4 (of 4 total)
  • @glyndavidson

    Participant

    It was a human error… mine! 🙂

    No longer crashing but ‘bp_member_blog_order_options’ is still peculiar.

    @shanebp

    Moderator

    This is a hook.
    do_action( 'bp_member_blog_order_options' );

    It is not called in BP.
    It’s there for your convenience.
    You can change the hook tag although some other plugin may be calling it.
    If you’re over-riding that template, you could add your own hook.

    do_action

    @modemlooper

    Moderator

    It’s a mistake, should be friends.

    @edsurridge

    Participant

    I’ve been trying to find code that shall present the bp members list (on a charity site) alphabetically listed rather than by most recently active. Not tried this before but from what read I make a child ‘theme’? with the modified code on a blank note pad page then firezilla it to dreamhost.
    Found this but not sure that these people are trying to achieve the same.https://buddypress.org/support/topic/how-to-order-members-list-alphabetically-by-default/
    Any assistance much appreciated. ed

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Human Error in BP Source Code???’ is closed to new replies.
Skip to toolbar