Tagged: Custom Code, default, message privacy, settings
Hi Brajesh,
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!
CarlHi 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
BrajeshThanks! 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 PhotoAnd I only tested it in bp-custom.php, so let me know if I should try in functions.php as well?
Thanks Brajesh!
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
BrajeshExcellent, 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!
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
BrajeshNo 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!
CarlThank 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.