👻 Halloween Treat: Our biggest-ever 25% OFF memberships — use SPOOKYSOCIAL before Nov 1! 🎃

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25188
    Brajesh Singh on in reply to: [Resolved] BP Editable Activity and MediaPress #3449

    Hi Leo,
    Thank you for buying the plugin.

    The problem is people will expect to modify the listed media. The media is not stored as html, so it is not feasible for us to allow media list(It is stored as ids and generated content).

    It is possible to allow editing the activity content with media though. If you want that please do let me know and I will update this plugin for the purpose.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25188

    Hi Dandy,
    Please disable the above code and WordPress email will start working.

    To disable the notifications for BuddyPress, we have a small plugin
    https://buddydev.com/plugins/bp-default-email-notification-settings-control/

    Please use it. It will start taking preference for new users. To update for existing users, Please use the button at the bottom of settings page of this plugin and It will set the preference for all users.

    Hope that helps. Please do let me know if it works for you or not?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25188

    Hi Alayna,
    Ravi will be away for a few more hours, so I am posting here.

    Since you have different elements, you will need to bind to ‘bpln:new_notifications’ event in javascript and handle it as you wish.

    Please see the code below to find what data you can access
    https://github.com/sbrajesh/bp-live-notification/blob/master/assets/js/bpln.js#L128

    Hope that helps.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25188

    Hi Alayna,
    I am sorry for the inconvenience. Is there any chance that you network activated MediaPress?
    I don’t see any reason why there will be an error like this except there is an empty setting throwing notice somewhere.

    Enabling WP_DEBUG will give you exact issue why it happened.

    Please do let me know more details.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25188

    Hi Dandy,
    I am sorry, I was having some issues and could not reply back.

    Please put the following code in your bp-custom.php

    
    //force BuddyPress to use wp_mail
    add_filter( 'bp_email_use_wp_mail', '__return_true');
    //override wp_mail
    if ( ! function_exists( 'wp_mail' ) ) :
        function wp_mail( $to, $subject, $message, $headers = '', $attachments = array() ) {
            //don't do anything
        }
    
    endif;
    
    

    It will stop all email. After you are done with importing, please make sure to remove the code snippet.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25188

    Hi Andrew,
    Welcome to BuddyDev.

    Thank you for posting the question.

    Though the javascript approach is fine, and I have also posted similar snippets earlier on our forum, Let us see another easy approach today.

    Instead of doing things in javascript, Let us hide the fields you don’t need using css. I hope, yopu can do that step without my help(using display:none in css)

    Now, Here is a fail-proof method. You will need to put this snippet in your bp-custom.php

    
    
    function buddydev_check_update_signup_fields() {
    
        //you can access the superglobal $_POST and set values in it too
        //for example
        $_POST['field_1140'] = $_POST['field_960'];
    
        //and so on
    
    }
    add_action( 'bp_signup_pre_validate', 'buddydev_check_update_signup_fields' );
    
    

    Please give it a try and let me know if this works or not?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25188

    Hi Kieran,
    You are most welcome.

    If you plan local notifications, you will need to use bp_notifications_add_notification() to add new notification and please remember to register a dummy component to allow you format notifications for the users.

    Please do let me know how it went, I will be happy to assist.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25188

    Hi Kieran,
    Welcome to BuddyDev.

    What kind of notification you want the users to be notified. Do you want the email notification or the local site notification( Using BuddyPress notification).

    Here is some example code that will give you an start

    
    function buddydev_handle_custom_mention( $activity, $args1=null, $arg2=null,$arg3=null, $user_id = false ) {
    
    	//check if the $user_id is the specific user
    	
    	//if ye, Please use one of the strategies to notify users
    	//to find users, you may use get_users()
    	
    	
    
    }
    add_action( 'bp_activity_sent_mention_email', 'buddydev_handle_custom_mention', 10, 5 );
    
    

    Hope that helps.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25188
    Brajesh Singh on in reply to: Not logging member in after signing up #3404

    Hi Travis,

    I will be doing some test today for existing users and will get back to you.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25188
    Brajesh Singh on in reply to: Force Profile Photo Plugin Message #3403

    Hi Travis,
    I have tested it on your site. It is either the caching or your theme that is causing it. Please try this plugin by disabling others and you will find the culprit.

    Thank you
    Brajesh