BuddyDev

Search

[Resolved] Message Privacy – Default Settings Code

  • Participant
    Level: Initiated
    Posts: 15
    Carl Hassett on #4864

    Hi Brajesh,

    I tried using the code found here:

    https://buddydev.com/docs/guides/plugins/buddypress-plugins/buddypress-message-privacy/customizing-buddypress-message-privacy-default-settings/

    To apply a default setting to the “Message Privacy” plugin. I registered a new user to make sure the custom code set the default setting to, “Friends Only”, but it didn’t seem to work. Any thoughts or ideas on how to adjust the code or find an alternative solution?

    Hope you and the team are doing well!

    Thanks for your help!
    Carl

  • Keymaster
    (BuddyDev Team)
    Posts: 24211
    Brajesh Singh on #4865

    Hi Carl,
    Welcome back 🙂
    We are doing well and hope the same for you.

    Is there any chance that you are using a plugin that does some thing with the user activation? Like our Auto Activate Auto Login redirect plugin or something similar?

    The above code is hooked to activation action, so just trying to find out a possible reason.
    Btw, did you put it in bp-custom.php or functions.php?

    Thank you
    Brajesh

  • Participant
    Level: Initiated
    Posts: 15
    Carl Hassett on #4899

    Thanks! It’s always great coming back 🙂

    Here are all the plugins that could impact user activation:

    -BP Auto Activate Autologin Redirect To Profile On Signup
    -BuddyDev Username Availability Checker
    -Secure Invites
    -Welcome Pack
    -Multisite User Management
    -BP Force Profile Photo

    And I only tested it in bp-custom.php, so let me know if I should try in functions.php as well?

    Thanks Brajesh!

  • Keymaster
    (BuddyDev Team)
    Posts: 24211
    Brajesh Singh on #4900

    Hi Carl,
    Thank you.
    Most probably it is being caused by “BP Auto Activate Autologin Redirect To Profile On Signup”

    I am looking at it and will have and update soon.

    No need to change, bp-custom.php is the most suited location.

    Thank you
    Brajesh

  • Participant
    Level: Initiated
    Posts: 15
    Carl Hassett on #4901

    Excellent, thank you!

    I did unintentionally test it while running Version 1.4 of “BP Auto Activate…” instead of v1.4.3. Hopefully it didn’t impact the test, but I’m updating it now if you needed me to try again.

    Thanks!

  • Keymaster
    (BuddyDev Team)
    Posts: 24211
    Brajesh Singh on #4902

    Hi Carl,
    I am sorry for the inconvenience. It was a mistake on my part in the example code.

    The code should have used ‘privacy_type’ instead of ‘privacy’ in the array key.

    I have updated the code. Please use it and It will work.

    Please do know that the Default Message Privacy settings will work for all users who haven’t manually saved settings for the message privacy. There is no need for new user registration.

    Please do let me know if it works for you or not?

    Thank you
    Brajesh

  • Participant
    Level: Initiated
    Posts: 15
    Carl Hassett on #4918

    No problem and it worked perfect! Thank you!

    I did come across a few other issues, but I’ll open new topics to stay organized 🙂

    Thanks again!
    Carl

  • Keymaster
    (BuddyDev Team)
    Posts: 24211
    Brajesh Singh on #4919

    Thank you for confirming Carl.
    I am looking forward to assist you on the other topics too.

    Thank you
    Brajesh

The topic ‘ [Resolved] Message Privacy – Default Settings Code’ is closed to new replies.

This topic is: resolved