Opened 15 years ago
Closed 15 years ago
#771 closed enhancement (fixed)
Few extra actions to allow MultiSite plugin to work
Reported by: | petronic | Owned by: | |
---|---|---|---|
Milestone: | 1.1 | Priority: | minor |
Severity: | Version: | ||
Component: | Keywords: | multisite actions do_action | |
Cc: |
Description
I wrote a simple plugin that enables BuddyPress to work with MultiSite. It requires few changes in BuddyPress core files, adding some actions to be more precise. Maybe you can consider adding them in some of the future BuddyPress releases?
I think that the easiest way (with minimum changes to core files) to integrate MultiSite plugin and have separate BuddyPress networks with just one install is to create a new set of tables for each site. To enable this, I had to add actions in all BuddyPress components in functions
bp_*_setup_globals()
so I can change tables used.
For example,
in bp_activity_setup_globals() I added action
do_action( 'bp_setup_globals', 'activity' );
right after line 120.
in friends_setup_globals I added action
do_action( 'bp_setup_globals', 'friends' );
right after line 61.
and so on...
I would greatly appreciate if you add these actions in all setup_globals() functions or tell me if you see another way to accomplish this.
Thanks!
Nothing new about it ?