Force Users to Login to View BuddyPress Content

I have a BuddyPress-based website that I needed to require logins for. There are a number of plugins that force people to login to view content, but I couldn’t find one that forces people to login to see BuddyPress content while leaving all other content public.

So, I built this “BuddyPress Force Login” plugin. It requires people to login in order to view all the BuddyPress stuff – forums, groups, profiles, etc.

I would like to submit it to the WordPress repository, so please provide some suggestions for improvement.

DOWNLOAD.

The Mighty Mo! Design Co.

More posts from themightymo.com

Jetpack Now Has a Free Web Application Firewall (WAF)!

By The Mighty Mo! Design Co. | September 27, 2022

A few things to kick this post off: I utilize Cloudflare‘s free WordPress Web Application Firewall (WAF) wherever possible. I install WordFence on almost all my sites for their best-in-class WordPress-level WAF (usually running it alongside Cloudflare‘s WAF). I’ve found the Jetpack WP plugin has lost relevance over the last few years as they’ve tried…

ERR_TOO_MANY_REDIRECTS error when connecting Cloudflare to WordPress

By The Mighty Mo! Design Co. | September 16, 2022

Today I checked the “proxy” box for a website on Cloudflare, and I got a “ERR_TOO_MANY_REDIRECTS” error when I visited the website. The solution to this issue is simple: Click the “SSL”->”Overview” menu option in Cloudflare. Select the “Full (Strict)” option. Wallah! Done. Is this helpful? UPDATE: I learned that there is also a free…

How to solve Local WP’s “Error in query (1153): Got a packet bigger than ‘max_allowed_packet’ bytes”

By The Mighty Mo! Design Co. | September 7, 2022

I was trying to import a 115MB database via Local WP’s Adminer tool, and I kept getting the following error: After a lot of trial and error, the solution was to: Update the “max_allowed_packet” variable in Local Sites->[site name]->conf->mysql->my.cnf.hbs to max_allowed_packet = 1000M Add/update the “max_allowed_packet” variable in Local Sites->[site name]->conf->php->php.ini.hbs to max_allowed_packet = 1000M…