[Plugin: BuddyPress Group Email Subscription] Request for multinetwork compatibility
-
Hello Boone,
thanks for your wonderful plugin!With bp-multi-network the digest function sends wrong mails if a group of the one Buddypress network has an equal activity id as a group with same group id on the other network.
bp-multi-network uses different prefixes for bp tables and for bp related usermeta data. So first I had to add the usermeta of your plugin to bp-multi-network – I wrote a request on this into the bp multi networf support forum: https://www.ads-software.com/support/topic/plugin-bp-multi-network-request-for-compatibility-with-group-email-subscription?replies=1#post-3078506And second – and this is where your part may come in – I had to change your usermeta queries. Maybe you’re interested in changing this in your next version:
Change allupdate_user_meta
tobp_update_user_meta
Change allget_user_meta
tobp_get_user_meta
Change sql queries like:
$user_subscriptions = $wpdb->get_results( $wpdb->prepare( "SELECT user_id, meta_value FROM $wpdb->usermeta WHERE meta_key = 'ass_digest_items' AND meta_value != ''" ) );
to:
$user_subscriptions = $wpdb->get_results( $wpdb->prepare( "SELECT user_id, meta_value FROM $wpdb->usermeta WHERE meta_key = %s AND meta_value != ''", bp_get_user_meta_key('ass_digest_items') ) );
Thank you,
Feehttps://www.ads-software.com/extend/plugins/buddypress-group-email-subscription/
- The topic ‘[Plugin: BuddyPress Group Email Subscription] Request for multinetwork compatibility’ is closed to new replies.