css.php

Group Forum Subscription v1.4

If you use Group Forum Subscription for BuddyPress, you should upgrade to the most recent version, 1.4, released today. This version fixes a bunch of bugs, including one important bug that causes automatic subscription to fail for some members of large groups.

As always, if you have any issues with the plugin, please let me know. I plan to include some big new features for the next release, so stay tuned.

EDIT: I almost forgot to mention that this release also marks the inclusion of several new translations. Many, many thanks to those who have translated this plugin:

  • German: Markus Schubert
  • French: Daniel H
  • Italian: Luca Camellini
  • Russian: slaFFik
  • Spanish: Admin at dominicana.net.do
  • Traditional Chinese: Levin

25 thoughts on “Group Forum Subscription v1.4”

  1. Great plugin. When the notification email is sent, it is sent with html tags eg

    A new message has been posted in the group “blah blah”.
    Author: tes test

    content of message

    Anything I can change in the code so that it doesn’t send html tags in the email message?

  2. Hi Anton,

    Ha ha – this is only happening because you’re using the TInyMCE plugin too!

    Try the following. In the function gfs_send_email_notification(), right after the $text variable is defined, run it through the kses filter:
    $text = wp_filter_nohtml_kses( $text );

    I think that should work, though there’s a chance that it might wreak some havoc with line breaks when text is pasted into the TinyMCE box and then emailed through the plugin. It’s a problem I had to solve here on the CUNY Academic Commons, but I’m away from my work computer for the next few days so I can’t look at exactly what the solution was. Let me know how this fix works for you.

    (BTW it will be fixed in either the next version of GFS, or of TinyMCE, or likely a bit of both through the use of proper hooks.)

  3. Thanks for the reply Boone. I will test it over the weekend when the site is a bit quieter and let you know by Monday. Thanks for the help

  4. I’m using your plugin yet my notifications stopped. I’m the administrator of all groups and yet receive no notifications from the group forums whatsoever. I’ve checked my notifications settings, etc. yet cannot see why. What do you suggest?

  5. Great plugin, but it seems when enabeld (1.4, running BP 1.1.3), I cannot save changes to notification settings! Eeep.

    I went and de-activated each plugin, isolating the problem to yours.

    Thanks!

  6. Hi Carlos – What do you mean that you can’t save the settings? When you click the save button, does the screen refresh and show the old settings unchanged? Or does the button stop working? Or do you get an error message?

  7. I’m sorry, I lied. When I save the changes, the page takes me back to the home page of the overall site (you can see it at my ‘web’ field below… gearspace dot org ) When i return to the notifications page, no changes have been saved.

  8. Hi Carlos,

    I finally had a chance to dig in and look at this, and it looks like you found a genuine bug! The way that those settings screens are created appears to have changed sometime recently, and the way that the plugin was originally coded worked well enough to show the menu but not to save the settings. I’ll have to figure out how to fix the problem in the plugin repository – I don’t just want to implement this fix in case it breaks backward compatibility for people using older versions of BP – but you can do the following in order to fix it as long as you’re running BP 1.1.3.

    In bp-group-forum-subscription.php, find the function gfs_bp_core_add_settings_nav. Replace it with the following:
    function gfs_bp_core_add_settings_nav() {
    global $bp;

    if ( !function_exists ( 'bp_core_new_nav_item' ) ) { // For BP loggedin_user->domain . 'settings/', 'bp_core_screen_general_settings', false, bp_is_home() );
    bp_core_add_subnav_item( 'settings', 'notifications', __('Notifications', 'buddypress'), $bp->loggedin_user->domain . 'settings/', 'gfs_bp_core_screen_notification_settings', false, bp_is_home() );

    if ( !is_site_admin() )
    bp_core_add_subnav_item( 'settings', 'delete-account', __('Delete Account', 'buddypress'), $bp->loggedin_user->domain . 'settings/', 'bp_core_screen_delete_account', false, bp_is_home() );

    } else {

    /* Add the settings navigation item */
    $bp->settings->id = 'settings';
    $bp->settings->slug = BP_SETTINGS_SLUG;

    /* Register this in the active components array */
    $bp->active_components[$bp->settings->slug] = $bp->settings->id;

    /* Add the settings navigation item */
    bp_core_new_nav_item( array( 'name' => __('Settings', 'buddypress'), 'slug' => $bp->settings->slug, 'position' => 100, 'show_for_displayed_user' => false, 'screen_function' => 'bp_core_screen_general_settings', 'default_subnav_slug' => 'general' ) );

    $settings_link = $bp->loggedin_user->domain . BP_SETTINGS_SLUG . '/';

    bp_core_new_subnav_item( array( 'name' => __( 'General', 'buddypress' ), 'slug' => 'general', 'parent_url' => $settings_link, 'parent_slug' => $bp->settings->slug, 'screen_function' => 'bp_core_screen_general_settings', 'position' => 10, 'user_has_access' => bp_is_home() ) );
    bp_core_new_subnav_item( array( 'name' => __( 'Notifications', 'buddypress' ), 'slug' => 'notifications', 'parent_url' => $settings_link, 'parent_slug' => $bp->settings->slug, 'screen_function' => 'gfs_bp_core_screen_notification_settings', 'position' => 20, 'user_has_access' => bp_is_home() ) );

    if ( !is_site_admin() && !(int) get_site_option( 'bp-disable-account-deletion' ) )
    bp_core_new_subnav_item( array( 'name' => __( 'Delete Account', 'buddypress' ), 'slug' => 'delete-account', 'parent_url' => $settings_link, 'parent_slug' => $bp->settings->slug, 'screen_function' => 'bp_core_screen_delete_account', 'position' => 90, 'user_has_access' => bp_is_home() ) );
    }
    }

    Let me know if this works for you, and thanks for letting me know about the problem!

  9. I operate a bbpress forum, and followed the included instructions for installing in a bbpress environment. However, there’s no addition to the bbpress administration Dashboard. Is it possible to correct this?

    Thanks,
    Shane

  10. HI, a little bug here. In the latest RC2 with this plugin installed, going to My Account -> Settings -> Notifications fails. you just end up at the home page.
    thanks for the great plugin 🙂

  11. I’m using BuddyPress Default 1.2-rc theme.
    There are still some big issues with BP 1.2 rc so maybe wait until they sort them out. But it could be your plugin too.

  12. There redirection error can be solve by commenting out these three lines:

    remove_action( ‘wp’, ‘bp_core_add_settings_nav’, 2 );
    remove_action( ‘admin_menu’, ‘bp_core_add_settings_nav’, 2 );
    add_action( ‘wp’, ‘gfs_bp_core_add_settings_nav’, 2 );

    Is there anyway to disable the automatic subscription of a user to new group posts when they are not in that discussion? Kind of spammy.

  13. I’ve upgraded to your latest version but it seems to send out 3 emails every time. 2 only with the words and a link that theirs a new reply and the 3rd with the full content.

  14. Hi!
    Great plugin, but there is a significant problem: 15 users, 15 groups .. click submit, – get 55 connections to the database!

Leave a Reply

Your email address will not be published. Required fields are marked *

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Anti-spam image