Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 12,001 through 12,025 (of 69,016 total)
  • Author
    Search Results
  • #244309
    palmdoc
    Participant

    I have read and checked more than three times. My original question is I want to delete a member from a group – i.e. remove them from a group not from the site.
    I really hope there is better group member management for Buddypress as it is a nightmare when there are thousands of members.

    #244305
    danbp
    Participant

    Afaik there is nothing out to do this.

    As start point, this snippet which let you hide a profile by user_id. Add it to bp-custom.php

    
    function bpfr_hide_user_profile() {
    global $bp; 
    // hide user_id 35
    if(bp_is_profile && $bp->displayed_user->id == 35 && $bp->loggedin_user->id != 35) :
       wp_redirect( home_url() );
       exit;
    endif;
    }
    add_action( 'wp', 'bpfr_hide_user_profile', 1 );

    Also, from here
    https://buddypress.org/support/topic/temporarily-blocking-a-user-while-keeping-their-datanetwork/
    https://wordpress.org/plugins/buddypress-verified/

    danbp
    Participant

    I’m wondering what is a username for you.

    WP register only a user by username (aka pseudonym), email and password. BP add a Name field in which you can add anything: username, first or lastname. In the user table, there is also display_name, wich is the combination of first and last name from a WP user profile, before BuddyPress was installed or if you allow your users to enter the dashboard, and they start to play with their profile settings. IMHO, it’s better they haven’t that access when BP is activated. 👮

    When on the members directory, you (connected or not) can search a member by using his username.

    If you use WP’s site search from toolbar or the search widget (same thing), it doesn’t work, as members are not post types… 👣

    For now, i’m unsure what you want to fetch. Do you mean display_name ?

    All search forms available in BP are contextualized, as @henrywright expected.

    A BP class can be extended, a core function with a filter can be extended. You simply add your own to it.
    In other cases, like for bp_core_action_search_site function (in bp-core-classes.php)
    there is an action and a filter. Wow. 💪

    You can rewrite the whole function and use the action hook or only change a part of it by using the filter.

    remove_action( 'bp_init', 'bp_core_action_search_site', 7 );
    function my_custom_core_action_search_site() {
       bla bla bla....
    }
    add_action( 'bp_init', 'my_custom_core_action_search_site', 7 );

    or
    add_filter( 'filter_name', function_name');

    Theorie here:
    https://buddypress.org/support/topic/how-to-override-core-function/

    But before hacking to deep, read here:

    Members Loop

    Maybe you could find some interesting things about include or search_tems options. 👀

    If all this is too much for you, consider this plugin:
    https://wordpress.org/plugins/buddypress-global-search/


    @prabin04
    , @henrywright
    🚧 i’m really not an expert in matter of BP search, but thank you for your consideration.

    #244301
    Jasper
    Participant

    Thanks but this doesn’t work for what we need.

    If not so important that the user can’t sign in. What we need is for their BuddyPress profile to disappear when they get suspended and reappear when they get reactivated. We need to be able to put their profiles into sleep mode and not be visible by the public.

    #244300
    danbp
    Participant

    Anything related to notifications is in /buddypress/bp-notifications/ folder.

    Best place to see commented BP code in a glance is
    http://hookr.io/plugins/buddypress/#index=a

    #244297
    danbp
    Participant

    shareit/wordpress/sample-page/groups/test this path looks strange.

    In which directory are WP/BP installed ?

    Configure BuddyPress


    Each component page must stay blank and without any template models or parent page…
    Permalinks must be enabled, using any option except “default”.

    #244292
    Henry Wright
    Moderator

    Can you try on a test install? It may be the ACF plugin and we need to rule that out.

    On your test install, be sure there’s no plugins running aside from BuddyPress and have the TwentyFifteen theme activated. Also, remove any custom code you may have elsewhere such as bp-custom.php

    #244285
    Pete Hudson
    Participant

    No, I was referring to a post to the Buddypress Activity Feed. Is “Activity Entry” the proper term?

    We just launched our site and are getting a good bit of activity. Just looking to figure out how many BP Activity Feed entries/posts we should have before we start deleting the older ones and if there’s a way to automate that. We currently have 950.

    Thanks.

    #244275
    Henry Wright
    Moderator

    Try disabling all plugins aside from BuddyPress. Sometimes a rogue plugin can interfere with the registration process.

    Tafmakura
    Participant

    Never mind, found the answer a great article by Ryan Fugate

    BuddyPress: The Lowdown on Loop Filtering

    djsteveb
    Participant

    as lionel pointed out in other dupe topic – there is another forum replies on similar issue in regards to this when using localhost / wamp on local server I guess – https://buddypress.org/support/topic/resolved-404-the-requested-url-not-found-on-this-server/

    #244270
    djsteveb
    Participant

    ugh – just realized this is a duplicate thread from same poster.. grr.. how to merge. meh.
    another answer to this – what I do when this situation arises first:
    https://buddypress.org/support/topic/the-requested-url-groupscreate-was-not-found-on-this-server/#post-244269

    djsteveb
    Participant

    @varun404 – first thing I would do is go to settings -> permalinks.. make note of what they are.
    Then change them to something else.
    save.
    then change back to pretty permalinks.
    save.

    then check your url – is it working then?

    if not.. then make sure you have created pages that bp needs, and associated them:

    Configure BuddyPress

    if that is all set write, I would check my htaccess to make sure it is writable and wordpress is indeed adding code to make permalinks work.

    #244268
    Prabin
    Participant

    have you tried looking at this Forum ??

    #244245
    danbp
    Participant

    Codex is your friend:

    bp-custom.php

    #244231
    Tafmakura
    Participant

    Thank you

    Activity feed is updating after every 15 seconds and the “Load Newest” link appears if new activities exist. I am no expert PHP developer but every 15 seconds admin-ajax.php is being called by buddypress, I assume this is to check for latest activities, I want to replicate what buddypress is doing every 15 sec just once so that on my form submit after the ‘bp_activity_add’ action happens I can call the same function just once, to “force” the display of my newly added activity. I dont’t need to alter the 15 sec default interval.

    #244230
    danbp
    Participant

    hi @tafmakura,

    As first, did you activated Activity auto-refresh in BP settings ?
    Second, as it concern a custom feature of yours, you have to check for ajax requests on your action post variable.
    That said, there is a latency of 15 seconds before “load more” will show up a new activity. Not sure if this can be modified.

    Seach on Trac for some hints about Ajax and activity.
    Perhaps those tickets #5328, #6195 can help you.

    #244221
    Henry Wright
    Moderator

    You can add this to your robots.txt file:

    User-agent: *
    Disallow: /members/

    Feel free to add more fields for the different areas of BuddyPress.

    Note that it doesn’t guarantee Googlebot et al won’t index these pages, it just requests that they don’t.

    #244207
    danbp
    Participant

    hi,

    first snipppet removes the mention tab.
    Second remove the mention item from the top right usermenu below howdy.

    Condition is set to site admin. If you use custom capabilities, change that to your need.
    Code goes to bp-custom.php

    function bpfr_hide_mention_nav() {
    	//if ( bp_current_user_can( 'bp_moderate' ) )
    	if ( is_super_admin() ) {
    		return;
    	} 
    	bp_core_remove_subnav_item( 'activity', 'mentions' ); 
    }
    add_action( 'bp_ready', 'bpfr_hide_mention_nav' );
    
    function bpfr_admin_bar_remove_activity_mentions(){
    global $wp_admin_bar;
    	if ( is_super_admin() ) {
    		return;
    	}
    	$wp_admin_bar->remove_node('my-account-activity-mentions');
    }
    add_action('wp_before_admin_bar_render','bpfr_admin_bar_remove_activity_mentions');
    

    An alternate (IMO better) solution, is this premium plugin: http://www.philopress.com/products/buddynotes/

    #244205

    In reply to: Add a Text Area Field

    danbp
    Participant

    hi,
    Dashboard > Users > Profile Fields > Add new field

    Name []
    Description []
    Type > select Multi-line Text Area

    User Extended Profiles

    #244204

    In reply to: Logged in home page

    danbp
    Participant

    To redirect your users to their friends activities page on login, you can use this:

    function bpdev_redirect_to_profile( $redirect_to_calculated, $redirect_url_specified, $user ){
     
        if( empty( $redirect_to_calculated ) )
            $redirect_to_calculated = admin_url();
     
        //if the user is not site admin,redirect to his/her profile
    	$url = bp_core_get_user_domain( $user->ID ) .'activity/friends/';
    
        if( isset( $user->ID) && ! is_super_admin( $user->ID ) )
            return $url;
        else
            return $redirect_to_calculated; /*if site admin or not logged in,do not do anything much*/
     
    }
    add_filter( 'bp_login_redirect', 'bpdev_redirect_to_profile', 11, 3 );

    Snippet source: http://buddydev.com/buddypress/buddypress-trick-redirect-users-to-their-profile-on-login/

    To add a home button to the main menu, use WP’s menu builder. But this doesn’t let you add a dynamic button going to EACH user profile, only to yours. You will have to code this.

    See from here how to do this:
    https://buddypress.org/support/topic/how-to-get-notification-count-code/#post-244069
    You need to introduce this:
    $url = bp_core_get_user_domain( $user->ID ) .'activity/friends/';

    #244189

    In reply to: Filter Profile Fields

    danbp
    Participant

    This is possible as built-in feature from within a profile. Each field value is clickable by default (in fact the 5 first words). When clicked, you get a list of all members who entered the same value.

    To list the member directory by xprofile field values, you have to code it or modify the directory template. Read from here:

    Members Loop

    #244188
    danbp
    Participant

    How else would I override the buddypress file unless it was in my child theme with the same name?

    You should NOT override core files. The only files you alter from child theme are template files.

    To alter core functions, you use custom functions and add them via filter hooks, preferably added to bp-custom.php – so you won’t loose your work at next update.

    member-profile.php doesn’t exist in BuddyPress.

    Codex is your friend !

    Theme Compatibility & Template Files

    Displaying Extended Profile Fields on Member Profiles

    … and forum search too. 😉

    #244185
    rezon8dev
    Participant

    Is your child theme working correctly with Kleo ?
    Is the altered member-header.php file in your child-theme ?

    Yes and Yes..

    Do you really use a file called member-profile.php, as stated in your first topic ? Bad !

    How else would I override the buddypress file unless it was in my child theme with the same name?

    I’ll give this a go and report back, thank you very much!

    danbp
    Participant

    @ajaysingh-1,

    see from here if it helps you:

    bp_activity_comment_posted

Viewing 25 results - 12,001 through 12,025 (of 69,016 total)
Skip to toolbar