Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 2,587 total)
  • Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    How to add tabs and sub-tabs: https://gist.github.com/shanebp/5d3d2f298727a0a036e5

    Add the unique content by writing your code in the …_screen_content functions. For example, function animals_screen_content()

    Change 'user_has_access' => bp_is_my_profile() to 'user_has_access' => true if you want everyone to see subtabs.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    You need to contact the creator of that plugin: ‘rating-system’

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Put it in your theme/functions.php

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Since you don’t want to use the child theme / template approach, you could set the update to an empty string…

    function filter_bp_get_member_latest_update( $update_content, $r ) { 
        $update_content = '';
        return $update_content; 
    }; 
    add_filter( 'bp_get_member_latest_update', 'filter_bp_get_member_latest_update', 10, 2 ); 
    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    You need to contact the creator of that plugin: buddypress-who-clicked-at-my-profile

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Yup, it’s failing on groups_is_user_member() in bp-groups\bp-groups-functions.php.

    You could hack that function, but I think what you really need is a filter hook on the return.
    Then your task would be simple.

    groups_post_update() in bp-templates\bp-legacy\buddypress-functions.php uses groups_is_user_member()

    You could create an enhancement ticket on trac.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Look thru that function and use one of the filter hooks to write a function that uses a conditional.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    The notifications loop template uses bp_the_notification_action_links() to echo those links.
    If you want to retrieve them for some other use, then this will not echo them:
    $links = bp_get_the_notification_action_links();

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Integration with other plugins is seldom done within BP.

    Typically it is handled by a third plugin or by making a request to the MyCred plugin author.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    If a member has not logged in at least once, they are not considered ‘active’ and will not show in the count.

    You could run this once in your theme/functions.php and then remove it. It will create an activity timestamp for all members with the role: subscriber.

    function pp_add_last_activity() {
    
      $subscribers =  get_users( 'fields=ID&role=subscriber' );
      
      foreach ( $subscribers as $user_id ) {
            bp_update_user_last_activity( $user_id, bp_core_current_time() );
      }
    
    }
    add_action('bp_init', 'pp_add_last_activity' );
    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Try bp_is_user() which should return true on [domain]/members/warrick-brown/etc.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Try, after while ( bp_groups() ) : bp_the_group(); :

    $args = array( 
        'group_id' => bp_get_group_id(),
        'exclude_admins_mods' => false
    );
    
    $group_members_result = groups_get_group_members( $args );
    $group_members = array();
    
    foreach(  $group_members_result['members'] as $member ) {
    	$group_members[] = $member->ID;
    }
     
    echo implode(", ", $group_members);
    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Did you try the repair tool?
    In wp-admin > Tools > BuddyPress and select Reinstall emails (delete and restore from defaults).

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    It’s a single field.
    Google will give you full address choices based on what you input.
    It also includes support for BP Profile Search.

    You can also get it here:
    http://www.philopress.com/products/bp-xprofile-location/

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    You can also use this free plugin:
    https://wordpress.org/plugins/bp-xprofile-location/

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    I don’t know anything about wps. You might try talking to the creators of wps.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Something is redirecting or rewriting your urls – perhaps whatever generates the ‘wps’ shortcodes which do not come from BP. Try deactivating the wps plugin.

    Your friends url is: …/militaryareas.com/members/admin/friends/
    Not: …militaryareas.com/friends/

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Please use the code button when sharing code.

    Take a look at
    buddypress\bp-templates\bp-legacy\buddypress\members\single\profile.php
    to see how files and functionality and html is loaded for profiles.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Are you really using that approach for a single member id?

    Anyhow, you should use this method instead:
    https://codex.buddypress.org/developer/using-bp_parse_args-to-filter-buddypress-template-loops/

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    It does not say that an array is supported…
    * @param mixed $field The ID of the field, or the $name of the field.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Try using define( 'SCRIPT_DEBUG', true ); in your wp-config file.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Try:

    if ( bp_has_members( bp_ajax_querystring( 'members' ) . '&per_page=500&include=' . $experts ) ) :

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

Viewing 25 replies - 1 through 25 (of 2,587 total)
Skip to toolbar