BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25057

    Thank you.
    Have a great day.

  • Keymaster
    (BuddyDev Team)
    Posts: 25057

    Hi Miguel,
    Thank you.
    The hook need to be aware of specific pages. The default implementation will not work.

    I am happy that the other way worked.

    May I mark this topic as resolved now ?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25057

    Hi Miguel,
    Welcome to BuddyDev. You are right about your assumptions.
    Here I have a post about how to enable it.

    https://buddydev.com/buddypress/enabling-buddypress-mention-auto-suggestions-on-any-page/

    But there is a shortcut. If you enable comment on the page when the activity shortcode is being used, The mention will work too.
    Hope that helps.

  • Keymaster
    (BuddyDev Team)
    Posts: 25057
    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: 25057
    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: 25057

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