BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25130
    Brajesh Singh on in reply to: Buddyblog, images/media support. #2103

    Hi Peter,
    I am sorry, Been busy with a few other things. Will try to get it in next 2 days.

    @Leo,
    Hi Leo, You will need to copy buddyblog/template/buddyblog to yourtheme/buddyblog and then modify the posts.php just like any normal WordPress loop. That will do it. My apologies for the delayed reply.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25130
    Brajesh Singh on in reply to: [Resolved] PHP7 #2102

    Hi Mark,
    Welcome to BuddyDev and thank you for using MediaPress. My apologies for the delayed reply.

    We haven’t tested it yet with PHP 7. The above error may be related to the way php 7 handles variable variable.

    But before that, Can you please check from Dashboard->MediaPress and see if the gallery showing the error is assigned a type. It can be caused by a gallery having no type assigned.

    Also, Did you configure the MediaPress settings before? Just trying to gauge an Idea. I will be installing and checking on PHP 7 this weekend. The plugin works great with nginx on php 5.5.9 (The demo server is running with the same configuration). So, I am not sure if nginx will be an issue here.

    Can you please try the above suggestion and let me know what you see there?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25130

    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: 25130
    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: 25130
    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: 25130
    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: 25130
    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: 25130
    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: 25130
    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: 25130
    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