Extension:BuddyPressActivity

What can this extension do?
This extension writes page edits within MediaWiki to the activity feeds in BuddyPress. To use this plugin, you must enabled single signon across MediaWiki and Wordpress MU/Buddypress (as described on the dev blog of the CUNY Academic Commons).

Usage
Once the plugin is configured correctly, it work automatically with every MW page save.

Please note that a page save will only be written to the BP activity streams if that page has not been edited by the same user within the last 24 hours. This is to prevent the frequent saving of a wiki page from cluttering up the activity streams. This time period can be changed by altering $seconds_between > 86400 to a different number. In the future I will try to make this more easily configurable.

Download instructions
Please cut and paste the code found below and place it in. Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.

Installation
To install this extension, add the following to LocalSettings.php:

Configuration parameters
You will need to change the value of $wpmudp (in the code below) to match the name of your WPMu database.