Replies
- Brajesh Singh on September 27, 2015 at 11:39 pm in reply to: [Resolved] Fantastic plugin ut I get an error… andy chance of assistance? #587
Hi Jan,
Thank you for trying MediaPress and my apologies for the inconvenience.
It seems you have groups disabled at the moment. The current code is mistakenly checking for the function(It should not have).For the time being, can you please edit that file and replace the line with this
this line( no. 21 )
if( function_exists( 'bp_is_group' ) && bp_is_group() && ( ! mpp_is_active_component( 'groups' ) || ! mpp_group_is_gallery_enabled() ) ) return;to
//if we are on group page and either the group component is not enabled or gallery is not enabled for current group, do not show the icons if( function_exists( 'bp_is_group' ) && bp_is_group() && ( ! mpp_is_active_component( 'groups' ) || ! ( function_exists( 'mpp_group_is_gallery_enabled') && mpp_group_is_gallery_enabled() ) ) ) return;I should have pushed the changes as it is minor but my working copy is around 90 commits above the current MediaPress trunk on github, so I need you to do it. Other solution is enable groups for now.
I will be pushing a change in 1-2 days that fixes it(Already on my working copy) and adds a lot of other new features.
Thank you
Brajesh- This reply was modified 10 years, 5 months ago by
Brajesh Singh.
- This reply was modified 10 years, 5 months ago by
Brajesh Singh. Reason: Updating code
- This reply was modified 10 years, 5 months ago by
Brajesh Singh. Reason: My bad kept copying the same code
- This reply was modified 10 years, 5 months ago by
Hi Jay,
did that work for you or not? will appreciate your feedback.Thank you
Brajesh- Brajesh Singh on September 27, 2015 at 10:22 pm in reply to: [Resolved] Anonymous Plugin with rtMedia (conflict) #583
Closing this as It is related to 3rd party plugin and hoping that they should have dealt with it by now.
Hi,
have you had any chance to upgrade? I will appreciate your feedback.
Thank you
Brajesh- Brajesh Singh on September 27, 2015 at 10:21 pm in reply to: [Resolved] Profile Privacy causing Theme crash WordPress 4.2.4 #580
Thank you Leigh. Closing this topic now. Please feel free to open new topic if needed.
Thank you
Brajesh - Brajesh Singh on September 27, 2015 at 10:19 pm in reply to: "Rate Limit User Activity" Breaks "Activity as Wire" and Notifications #578
Hi Steve,
Have you had any chance to look at the update?
I will appreciate your feedback.Thank you
Brajesh Hi eGuard,
Here is an example functionfunction buddydev_custom_get_users_by_member_types( $ids = array() ) { $ids = wp_parse_id_list( $ids ); if( ! $ids ) { return ; } $args = array( 'user_ids' => $ids, 'populate_extras' => true, //it will fetch names etc and cache member types ); $user_query = new BP_User_Query( $args ); $users = $user_query->results; $user_by_types = array();//multidimensional assay //an Arr of WP_User objects with some added details like last_activity, latest_update etc foreach ( $users as $user ) { $member_type = bp_get_member_type( $user->ID ); if( ! $member_type ) { continue; } $user_by_types[$member_type][] = $user->ID; } print_r( $user_by_types ); }And you ca call it like this
<?php buddydev_custom_get_users_by_member_types( '1,2,3,4,5,6,7,8');?>Hope that helps you.
- Brajesh Singh on September 27, 2015 at 9:49 pm in reply to: [Resolved] Prevent subscribers from uploading images? #576
Hi A . Rhein,
I am sorry, That was a mistake in my part.I forgot to put the function we are calling.
Please add this snippet too to your bp-custom.phpfunction buddydev_is_above_subscriber() { if ( current_user_can( 'delete_posts' ) ) { return true; } return false; }Now, that will work for sure.
- Brajesh Singh on September 26, 2015 at 6:10 pm in reply to: ajax registration still make users confirm their email address #575
Hi Lukas,
Please put the following code in your bp-custom.php or in your functions.phpadd_filter( 'bpajaxr_is_auto_activation_mode', '__return_false' );That will do it.
- Brajesh Singh on September 24, 2015 at 7:11 pm in reply to: "Rate Limit User Activity" Breaks "Activity as Wire" and Notifications #570
Hi Steve,
I have updated the Rate Limit User activity plugin and now it works fine with BuddyPress Activity AS wire plugin.If you are using BuddyDev dashboard plugin, you can directly update from your plugins page.
Otherwise, please download from herehttps://buddydev.com/plugins/bp-rate-limit-user-activity/
and update.
Please do let me know if that works for you or not?