Plugin Support
Youzify
(@kainelabsteam)
Hello @hectorcchan
Thanks for reaching us
If you are referring to restrict non logged-in people from accessing Youzify pages and redirect them to login page, you can use this snippet >> https://gist.github.com/KaineLabs/ab894a2b53e9b884e8bcef2f9702166d#file-yzc_redirect_buddypress_pages_to_login-php
Put the snippet on “bp-custom.php” file inside folder “wp-content/plugins”. If you don’t have it yet, please create a new one.
Let me know if it works for you. 🙂
Best Regards, KaineLabs Team.
@kainelabsteam
Thanks for your reply, but the snippet gets something wrong on my website. It shows “There has been a critical error on this website.” when I clicked on the related page.
I also tried to turn off all plugins except Youzify and Buddypress and tested the snippet. It still shows the error out there.
I’m not sure there’re some conflicts between multisite system and the snippet because I’m now using wordpress multisite. It’s my pleasure to get further follow-up replies.
Thanks.
Plugin Support
Youzify
(@kainelabsteam)
@kainelabsteam
Thanks for your follow-up, it perfectly works!
Is it possible to amend as just for buddypress(youzify) function only? It is because the new snippet hides all the pages except home page. People cannot see other pages like news, blog page etc.
It would be better if the snippet just hide member/ group/ profile… only.
Thanks,
You can use a plugin such as buddyfence or bp restrict
@ideasmakemarket
It is the easiest way to solve, thank so much!
Plugin Support
Youzify
(@kainelabsteam)
Hello @ideasmakemarket
Thank you so much for help us answering the question. 🙂
Best Regards, KaineLabs Team.