Plugin Directory

Changeset 711552


Ignore:
Timestamp:
05/11/2013 11:56:32 PM (13 years ago)
Author:
Yuttadhammo
Message:

notification removal

Location:
buddypress-xml-rpc-receiver/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • buddypress-xml-rpc-receiver/trunk/bp-xmlrpc.php

    r711378 r711552  
    734734
    735735        if(@$data['requests']) {
     736            bp_core_delete_notifications_by_type( bp_loggedin_user_id(), $bp->friends->id, 'friendship_request' );
    736737            $friends = BP_Core_User::get_users( 'active', @$data['max']?$data['max']:0, 1, 0, bp_get_friendship_requests($bp->loggedin_user->id) );
    737738        }
    738         else
     739        else {
     740            // delete this type of notification
     741            bp_core_delete_notifications_by_type( bp_loggedin_user_id(), $bp->friends->id, 'friendship_accepted' );
     742           
    739743            $friends = BP_Core_User::get_users( 'active', @$data['max']?$data['max']:0, 1, $bp->loggedin_user->id);
    740                        
     744        }       
    741745
    742746        if ( $friends ) {
     
    863867
    864868        $max = @$data['max']?(int)$data['max']:0;
     869
     870        // remove this type of notification
     871        if(@$data['user']) {
     872            bp_core_delete_notifications_by_type( bp_loggedin_user_id(), $bp->groups->id, 'membership_request_accepted' );
     873            bp_core_delete_notifications_by_type( bp_loggedin_user_id(), $bp->groups->id, 'member_promoted_to_mod'      );
     874            bp_core_delete_notifications_by_type( bp_loggedin_user_id(), $bp->groups->id, 'member_promoted_to_admin'    );
     875        }
     876        else {
     877            bp_core_delete_notifications_by_type( bp_loggedin_user_id(), $bp->groups->id, 'membership_request_rejected' );
     878        }
    865879
    866880        if ( $groups = groups_get_groups(
  • buddypress-xml-rpc-receiver/trunk/readme.txt

    r711381 r711552  
    129129= How do I use this plugin to redirect users? =
    130130
    131 Direct them to the folloing url:
     131Direct them to the following url:
    132132
    133133http://www.yoursite.com/index.php?bp_xmlrpc=true&bp_xmlrpc_redirect=<redirect>
     
    153153== Changelog ==
    154154
     155= 0.5.8 =
     156
     157- minor notification fix
     158
    155159= 0.5.7 =
    156160
Note: See TracChangeset for help on using the changeset viewer.