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.

Depending on how fussy you are about the way that your activity streams look, you might want to make some changes to BuddyPress to streamline the way that MW activity items appear. For instance, in /[buddypress-directory]/bp-activity/bp-activity-templatetags.php, adding the following line to the end of each case of bp_get_activity_content, will insert the "time-since" CSS selector to the activity sections of your BP profiles.

Version 0.2 fixes a few bugs related to the 24-hour filter.

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.