Skip to:
Content
Pages
Categories
Search
Top
Bottom

Bug: private group

  • Hi,

    Thanks Boone @boonebgorges and contributors for this great plugin. It has become invaluable to our WP site.

    Today kind users have informed me about a bug in the plugin. Those users have requested membership to a private group, got rejected and since then they receive regular email notifications of what’s going on in that group.

    They obviously don’t appear in the Group’s membership list and hence their email notifications cannot be turned off either.

    Any help with a hack or quick fix for now would be appreciated otherwise I am eagerly awaiting the fix.

    Cheers
    Meini

Viewing 9 replies - 1 through 9 (of 9 total)
  • Avatar of Pisanojm
    Pisanojm
    Participant

    @pisanojm

    It looks at though the recent update 2.6 may solve this for you by giving you an Administrator backend if you are using the groups plugins by Boone:

    Version 2.6
    ~allow site admins to set the subscription level for all current users of a group (in manage members)

    I just posted though that I am having some difficulties with the recent update… Are you using 2.6? Are you getting issues with the text and function of the e-mail notifications buttons in the forums/groups?

    Thanks for replying @pisanojm , I am using 2.6 and WP 3.0.1 and don’t seem to have any other problems with @boonebgorges plugin. My buttons look fine. The problem here is that despite having this addtional admin feature, rejected users are not members therefore they are not in the list, so they can’t be managed. Yet those rejected users get notifications.

    @boonebgorges here is a quick update. I have installed a test site, which is basically a copy of the original one, disabled all plugins except BuddyPress and Group Email Subscription and – the problem persists :(

    Please let me know if there is anything I can do to assist.

    Avatar of Dwenaus
    Dwenaus
    Participant

    @dwenaus

    @meini this is a bug that needs to be fixed. I’ll probably get around to fixing it either tomorrow, maybe boone will get to it first.

    Avatar of Dwenaus
    Dwenaus
    Participant

    @dwenaus

    @meini @Pisanojm @boonebgorges that bug has been squashed fast!

    @dwenaus – wow that was fast indeed. You guys rock! Thank you so much.
    Cheers
    Meini

    Ok @dwenaus I have done the tests and things work – sort of. Anyone who is being rejected does not receive messages any more. Excellent! However, there is a little problem. Users that got rejected under the old version of the plugin still get the udate emails. Can I fix that in the database somehow? I had a bit of a look around, in the tables but could not find anything obvious. So I though I better ask…

    Avatar of Dwenaus
    Dwenaus
    Participant

    @dwenaus

    there are two ways to fix this. go right into the db table and attempt to fix it: bp_groups_groupsmeta then look for ass_subscribed_users for your particular group id. it is an array so be careful when editing it directly. not advisable really. better to modify a built in function:

    function ass_remove_group_subscription( $user_id, $group_id ) {

    $group_user_subscriptions = groups_get_groupmeta( $group_id , ‘ass_subscribed_users’ );

    if ( $group_user_subscriptions[ $user_id ] )
    unset( $group_user_subscriptions[ $user_id ] );

    groups_update_groupmeta( $group_id , ‘ass_subscribed_users’, $group_user_subscriptions );
    }

    I just cobbled that together, untested, but should work in theory. pass it the group id and the user id you want removed and it will do it.

    Thanks mate, I really appreciate this. I ended up fixing the database as I could not locate this function. It seems to be all good now.
    Thank you again!

Viewing 9 replies - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.