New BuddyPress / bbPress plugin: Group Forum Subscription
Posted by boone on 30th September 2009
BuddyPress and bbPress can be plugged into each other such that BuddyPress groups get their own discussion forums, which are powered by bbPress. Adding Burt Adsit’s bpGroups means that private and hidden groups can have their discussion forums private too. But a major hurdle is email notification: Certain kinds of BP communities simply won’t get rolling if there’s no easy way for users to get email notification of new discussions. There are solutions out there to assuage this problem within bbPress (notably Thomas Klaiber’s Post Notification, which served as the inspiration for the mechanics of my own plugin), but email notification remains hidden in bbPress favorites, instead of in an out-front toggle.
Group forum notification is coming in a future version of BuddyPress, but it’s important enough that I needed it now.
This set of plugins, called Group Forum Subscription, fixes that. Features:
- Users can subscribe to individual discussion topics from within BuddyPress
- Users can subscribe to topics on a group-by-group basis – that is, one can subscribe to all existing and future topics associated with a particular BuddyPress group
- Users are automatically unsubscribed from a group’s discussions when they leave the group
- Administrators can subscribe all users to the appropriate forums with a single click (potentially handy for first-time setup
- Administrators can toggle whether email notification is turned on by default.
- Administrators can determine whether the topic links in the notification emails will point to bbPress or to the BuddyPress forum interface
Installation instructions
- Download the package
- Upload the BuddyPress plugin bp-group-forum-subscription.php to the plugins directory of your main WPMU blog and activate it
- If you prefer for the members of your community to use the BuddyPress posting interface for discussions, add the following hook:
<?php do_action( 'groups_forum_topic_custom_content' ); ?>
immediately after
<div class="info-group">
in /[your bp theme dir]/groups/forums/topic.php
- If you plan for your users to use bbPress for forum reading and posting, upload the bbPress trigger plugin bb-group-forum-subscription.php to [bbpress-install-dir]/my-plugins/ and activate it through the bbPress admin screen. Please note: the bbPress plugin changes the (IMO somewhat opaque) “Add to favorites” link on each topic page to a more straightforward Subscribe/Unsubscribe. If you like this change, open up [bbPress-theme-dir]/topic.php, and change
user_favorites_link();
to
user_favorites_link( array('mid' => __('Subscribe to this discussion')),array('mid' => __('Unsubscribe from this discussion')));
You can configure the plugin on the admin page (Group Forum Subscription under Dashboard Settings. Members of your BP community can tinker with their subscriptions either on the individual topic pages (in bp or bbpress) or on their BP Settings > Notification page (where they can subscribe/unsubscribe to entire groups).
I’m in the process of setting up BuddyPress 1.1, which was just released today. Once I’ve got a dev instance of it up and running, I will do the necessary fixes to make the plugin run on the new version. (I don’t think it will be too hard, given the number of craptastic workarounds I had to do in this version because of the absence of all the nice 1.1 hooks.) Stay tuned.
Related posts:
Posted in BuddyPress, WordPress, bbPress, dev.wpmued, edtech, groups, plugin, wpmu | Comments Off



Google Chrome frame is IE work around




