Shape the future of Social networking with WordPress: Join Project Midnight Sun! The next generation platform for community building with WordPress!

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25473

    Please use this example. In the above code, you are using $group object which si not available.

    
    
    function child_update_profile_group_name( $name ) {
    
    	if ( $name == 'Settings' && is_user_logged_in() && in_array( 'subscriber', wp_get_current_user()->roles ) ) {
    		$name = 'Settings1';
    	}
    
    	return $name;
    }
    
    add_filter( 'bp_get_the_profile_group_name', 'child_update_profile_group_name' );
    

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25473
    Brajesh Singh on in reply to: Custom Fields #39569

    Hi Ricardo,
    Welcome to BuddyDev support forums.

    I am sorry, there is no way to allow adding custom fields on upload screen. We do have some code snippet to allow it on Edit gallery media and edit media screen.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25473

    Thank you for the question. There are multiple ways to do it. You can either use the action hook or do a template override.

    Based on your template pack( I am assuming Nouveau), you can copy the post-form.php from wp-content/plugins/buddypress/bp-templates/bp-nouveau/buddypress/activity directory to your theme/buddypress/activity/post-form.php and add the text as needed.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25473

    Thank you.

  • Keymaster
    (BuddyDev Team)
    Posts: 25473

    HI Toury,
    Welcome to BuddyDev support forums.

    Please visit Dashboard->Settings->BuddyPress->Options and look for “Allow activity stream commenting on posts and comments”

    Tick that option and the commenting will be enabled. It may not sync to the actual blog post though.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25473
    Brajesh Singh on in reply to: [Resolved] Auto join groups – cron job #39557

    Hi Darshan
    Thank you for the reply.

    This is not how this plugin works. There are ways to make this condition though.

    Conditions:- These are used to match user profile. If a user matches these conditions, they will get added to the predefined list of groups you have selected.

    In your case, if you want to use the condition like above, you will need to create multiple list. For each list, you will select relevant groups.

    or example, a list containing condition employee id IN 1,2, you will select group 1 and 2.

    This is different from what you are expecting. I believe your expectation is to use the group ids from profile field and sync to it.

    It can be achieved much easier with custom code. Please allow us to post the code(Ravi or I will share the code in next 24 hours).

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25473

    Hi,
    You are using incorrect filter.

    Please use the filter ‘bp_get_the_profile_group_name’.

    Also, group id is not available with this filter.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25473
    Brajesh Singh on in reply to: BUDDYPRESS BLOCK USERS PLUGIN #39555

    Hi Deepa,
    Hope you are doing well.

    Did you approach and get any reply from your theme author about this?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25473

    Hi,
    Do you still need support with it? If yes, please share your order details. I will be closing this topic as resolved in next 2 days due to lack of replies.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25473
    Brajesh Singh on in reply to: Recreating from another app #39553

    Hi,
    Welcome back.
    For the current version of MediaPress(There are plans to move meta to separate table in 2.0), all extra data is stored in post meta.

    1. MediaPress galleries are stored as custom post type ‘mpp-gallery’. The gallery creator is the post_author field.
    We store an extra post meta ‘_mpp_component_id’ for each gallery. This is either user id for user/sitewide gallery or group id if the gallery belongs to group.
    You will also need another meta ‘_mpp_media_count’ which stores the number of media in a gallery.

    2. We also use 3 taxonomies(with predefined terms slug) for type, status and component

    The Taxonomies and terms are:-
    ‘mpp-component’ :- ‘_members’, ‘_groups’, ‘_sitewide’ (underscore is prefixed for uniqueness)
    ‘mpp-type’ :- ‘_photo’, ‘_video’, ‘_audio’
    ‘mpp-status’:- ‘_public’, ‘_private’, ‘_loggedin’, ‘_groupsonly’, ‘_friendsonly’, ‘_followersonly’, ‘_followingonly’.

    You do not have to create these terms as they will be automatically created for the taxonomies based on your current active plugins/components.

    You will need to assign one of the status, type and component term to each gallery and then ad the component meta.

    2. The media is stored as WordPress attachment post type. Gallery is set using post_parent field. We set the component_id and status, type, component in the same way as above.

    Each attachment contains some of the post meta. The following 2 are needed.

    
    '_mpp_component_id' :- Numeric value as explains for gallery
    
    '_mpp_is_mpp_media' :-  numeric value(1). It is used to mark the attachment as MediaPress media. 
    

    Hope you can map it and use as you need.

    Regards
    Brajesh