Redirecting non-logged in users trying to view Group pages but not the Group directory

It looks like bp_is_group() is “does the current page belong to a single group” (as opposed to bp_is_groups_directory()): /*** Redirect non logged-in users to registration page if they visit a profile page or a group page other than the groups directory ***/ function gwangi_bp_logged_out_page_template_redirect() { if( ! is_user_logged_in() && ( bp_is_user() || bp_is_group() ) ) … Read more

Set default landing page for buddypress member profile

Are you sure you’ve added the constant definition in the right place? As the BuddyPress codex says: When adding the code to wp-config.php, place it after define(‘DB_COLLATE’, ”); and before the authentication keys. If you add this line to the bottom of wp-config.php, it will not work.

Random 404 errors using Buddypress

To answer your question, if you are not using the LearnDash plugin then you should not add the code that is in the accepted answer of the link you have there. That code essentially is adding a filter named learndash_flush_rewrite_rules which appears to be specific to that plugin. If you don’t have it enabled, it … Read more

Displaying the errors from my BuddyPress script

thanks for sharing your script with us. It’s totally normal that this script results in a blank screen because it does not do any output. So once you have requested it, it should have created the groups. UPDATE: If it did not create the groups, then the script failed. It’s highly likely you’ve made an … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)