BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25175

    Hi,
    The plan is still to release it in this month only. We are working hard on it. The work started on 16th of this month for the migrator.

    I and in some part Ravi is doing all that we can do to get this and a few more things before the end of this month. My apologies for the inconvenience.

  • Keymaster
    (BuddyDev Team)
    Posts: 25175
    Brajesh Singh on in reply to: [Resolved] Testimonials one time only #2100

    Hi Jan,
    Can you please put this code in your bp-custom.php and see if it works as expected

    
    
    ////
    //For Testimonials
    
    add_filter( 'bp_testimonial_user_can_delete', 'bp_testimonial_custom_delete_permission' );
    
    function bp_testimonial_custom_delete_permission( $can_delete ) {
    	
    	if ( ! current_user_can( 'publish_pages' ) ) {
    		$can_delete = false;
    	}
    	
    	return $can_delete;
    	
    }
    
    add_filter( 'bp_testimonial_user_can_write', 'bp_testimonial_custom_write_permission' );
    
    function bp_testimonial_custom_write_permission( $can_write ) {
    	
    	if ( ! is_user_logged_in() || bp_is_my_profile() ) {
    		return $can_write;
    	}
    	
    	$displayed_user_id = bp_displayed_user_id();
    	
    	$user_id = get_current_user_id();
    	
    	if ( ! $displayed_user_id || ! $user_id ) {
    		return $can_write;
    	}
    	
    	if( bpt_has_user_already_written( $user_id, $displayed_user_id  ) ) {
    		$can_write = false;
    	}
    	
    	return $can_write;
    	//all good, get post id
    	
    }
    
    function bpt_has_user_already_written( $user_id , $other_id ) {
    	
    	$post_id = get_user_meta( $other_id, 'associated_testimonial_page', true );
    	
    	if ( ! $post_id ) {
    		return false;//should never happen
    	}
    	
    	//Now check if the user has a comment on this post
    	
    	global $wpdb;
    	
    	$has_comment = $wpdb->get_var( $wpdb->prepare( "SELECT comment_ID FROM {$wpdb->comments} WHERE comment_post_ID = %d AND user_id = %d", $post_id, $user_id ) );
    	
    	if( $has_comment ) {
    		return true;
    	}
    	
    	return false;
    }
    

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25175
    Brajesh Singh on in reply to: [Resolved] How to Create a Custom Page for Groups? #2099

    Hi Hans,
    I have a question before going to publish it. Do you want the users to be able to select while creating the group?

  • Keymaster
    (BuddyDev Team)
    Posts: 25175
    Brajesh Singh on in reply to: [Resolved] buddypress multisite not working #2094

    Hi Sanjiv,
    Can you please pm me the link to the site and provide some login details to check it? If it is registering on the network, It is wrong.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25175
    Brajesh Singh on in reply to: [Resolved] testimonials #2089

    Thank you Jan.
    Glad that I was able to assist.
    Have a great day 🙂

    Cheers
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25175
    Brajesh Singh on in reply to: [Resolved] buddypress multisite not working #2087

    Hi Sanjiv,
    The problem is I am thinking you are considering things which are not part of this plugin.

    1. redirecting users to their primary ist is job of the WordPress. This plugin does not play any role in that. If you need help with that, I am happy to assist.

    Here is the list of features mentioned on this plugin page


    – It allows you to create Separate social networks on a single BuddyPress Install
    – It separates the User base of one network from another(Each network can have different user base)
    – A user can be part of more than one network
    – All networks can have their own user base, activities, groups, Profile data(xprofile fields) which can be different from other


    Reference: https://buddydev.com/plugins/buddypress-multi-network/

    I am sorry but I am unable to understand which of the above is not working.

    Now, Coming to your post:-
    1. Do you want users to be redirected to the site they registered on long?
    2. Do you want the user to be not available on the main site network(It is available by default)?

    Please let me know point wise and that will save us both a lot of time.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25175
    Brajesh Singh on in reply to: [Resolved] testimonials #2084

    Hi Jan,
    You are not missing anything. I should have provided more details.

    1. Please delete the existing en_US. mo file
    2. Rename your “bp-user-testimonials-en_US.mo” to en_US.mo

    and all will be good.

    And for the sake of knowledge, the “po” file is for us humans to translate it. Then the translator generates the “mo” file which is used for the code to show the actual translation.

    Hope that it works now 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 25175
    Brajesh Singh on in reply to: [Resolved] testimonials #2082

    Hi Jan,
    Thank you for the prompt reply.

    When you translated, the translator should generate a file with “.mo” extension. Please rename that generated mo file to “en_US.mo” and that should work. I am assuming your locale is default(en_US) otherwise we need to rename that file to the locale of your WordPress installation.

    Please do let me know if that works or not?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25175
    Brajesh Singh on in reply to: [Resolved] buddypress multisite not working #2080

    Hi Sanjiv,
    My apologies for delayed reply due to weekend.

    Can you please clarify me what the plugin is doing and what you want? This plugin does not restrict users and It works as it is mentioned on the plugin page. It does add users to the site they register(or subdomain ). I have mentioned that the users are visible on main site and the site they register on.

    I am happy to provide support for your specific need here but please read my prequestions and let me know so that I can help quickly.

  • Keymaster
    (BuddyDev Team)
    Posts: 25175
    Brajesh Singh on in reply to: Change Menu (Gallery) #2079

    Hi Nestro,
    Thank you for using MediaPress.

    1. You will need to localize the strings for these labels. Since you have downloaded the plugin from github, It is named “mediapress-master”. To make the translation work please rename the folder to “mediapress” and then reactivate and translate the plugin.

    More details on translations here
    https://buddydev.com/mediapress/topics/getting-started/translating/translating-mediapress-into-your-local-language/

    Hope that helps.

    Regards
    Brajesh