Isolated Communities (sub-domains) – Can BuddyPress be tailored to do this?
-
BuddyPress is amazing and I won’t be the least surprised if it can do what I need right out of the box. Alas, after searching through documentation and forums I have come up empty.
I would like to be able to have certain sub-domains be isolated from the rest of my site.
Suppose I have a primary domain (domain.com) with a number of sub-domains (sub1.domain.com, sub2.domain.com, sub3.domain.com, and sub4.domain.com). Is there a way I can set up BuddyPress so that sub1.domain.com and sub2.domain.com share the same BuddyPress instance as domain.com while sub3.domain.com and sub4.domain.com have isolated instances of BudyPress.
By “isolated instances”, I mean their groups, members, blogs, forums, etc. would not be visible by anyone outside of their sub-domain. In addition, group name, blog names, forum & topic names, etc. could be identical in each Isolated instance. E.g. sub3.domain.com and sub4.domain.com could BOTH create a group called “MyGroup”. Their group members would only see their version of “MyGroup”.
I noticed that the BPDB class has a set_prefix method and was wondering if maybe I could use this to create seperate instances of the BuddyPress tables for each isolated sub-domain. Perhaps calling $bpdb->set_prefix($sub_domain_prefix) during BP initialization with a prefix that is unique for that sub-domain. But, I really don’t know enough about BP yet to have a clue where that will land me.
Any thoughts would be GREATLY appreciated.
- The topic ‘Isolated Communities (sub-domains) – Can BuddyPress be tailored to do this?’ is closed to new replies.