Tagged: Custom Code, default, message privacy, settings
- Carl Hassett on August 2, 2016 at 1:25 am #4864
I tried using the code found here:
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!
- Brajesh Singh on August 2, 2016 at 2:19 am #4865
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?
- Carl Hassett on August 3, 2016 at 1:04 am #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
-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?
- Brajesh Singh on August 3, 2016 at 1:08 am #4900
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.
- Carl Hassett on August 3, 2016 at 1:21 am #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.
- Brajesh Singh on August 3, 2016 at 2:06 am #4902
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?
- Carl Hassett on August 4, 2016 at 12:21 am #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 🙂
- Brajesh Singh on August 4, 2016 at 12:23 am #4919
Thank you for confirming Carl.
I am looking forward to assist you on the other topics too.
The topic ‘ [Resolved] Message Privacy – Default Settings Code’ is closed to new replies.