Hi Joshua,
Can you please give it a try after updating the redirect url/site idfunction buddydev_signup_page_redirect() { $redirect_to_url = "https://account.artofwargaming.net/signup"; //please change $account_site_id = 3;//please change if ( bp_is_register_page() && ! get_current_blog_id() == $account_site_id ) { wp_redirect($redirect_to_url, 301);//permanent redirect exit(0); } } add_action( 'bp_template_redirect', 'buddydev_signup_page_redirect' );
Please do let me know if it works or not?
Thank you
BrajeshHi Brajesh,
I dropped that function into bp-custom.php and tried it out. For some reason it’s not redirecting to the account register page. I changed the parameters : my site ID is 2 for the account site and the url is https://account.artofwargaming.net/registerI’m also noticing that for some reason the option ” Logged in users may register new sites.” isn’t working. I only get the register page when I select “User accounts may be registered.” or “Both sites and user accounts can be registered.”. Not sure why this is happening.
Hi Joshua,
I am replicating it on on of my test sites and will get back to you in an hour or so.Thank you
BrajeshHi Brajesh,
I’ve got my site all set up. I’ve run into another little snag that maybe you could help me with.
I’ve set up the domain to pass the “cookieless domain” test on gtmetrix. However; now the problem is I can’t log into any subdomains as it’s requesting cookies.
Hi Joshua,
I am sorry for the delayed reply. Will try to post in time in future.About the cookie less domain, I am not sure about that. It’s something that I haven’t paid any attention but in case of multisite and with BuddyPress, I am not sure if it makes any sense.
The site will be using cookie(and a lot of them) if BuddyPress is active, so I am not sure if what you are trying to achieve is even a good idea or not?
Hi Brajesh,
I figured this little problem out by setting
define("COOKIE_DOMAIN", "");
the downside now is that each subdomain that is defined in multisite is issuing it’s own cookie so single login doesn’t work across the network. I think I can live with it this way as long as it works.My GTMetrix score on the site is now “A” and “C” which is way better than out of the box
You must be logged in to reply to this topic.