Opened 4 years ago

Closed 4 years ago

#771 closed enhancement (fixed)

Few extra actions to allow MultiSite plugin to work

Reported by: petronic Owned by:
Priority: minor Milestone: 1.1
Component: Version:
Severity: 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!

Change History (5)

Nothing new about it ?

  • Resolution set to invalid
  • Status changed from new to closed
  • Resolution invalid deleted
  • Status changed from closed to reopened
  • Milestone set to 1.1
  • Resolution set to fixed
  • Status changed from reopened to closed

(In [1995]) Fixes #771

Note: See TracTickets for help on using tickets.