Replies
- Brajesh Singh on August 2, 2017 at 1:08 pm in reply to: limit gallery link on members profiles #10161
Hi,
It most probably caused a fatal error due to syntax.Please remove it and post the complete functions.php on https://pastebin.com/
I will update it for you to avoid any syntax issue.
Regards
Brajesh - Brajesh Singh on August 2, 2017 at 12:12 pm in reply to: limit gallery link on members profiles #10159
Hi Patti,
Please remove the old code and add this code at the bottom of the file.
/** * Example: Disable MediaPress gallery for S2 members level 0 * * @param bool $is_active is MediaPress active. * @param string $component component name(members, groups,sitewide etc). * @param int $component_id context items id(user id, group id etc). * * @return bool */ function mpp_custom_disable_for_users( $is_active, $component, $component_id ) { // only for members component. if ( 'members' !== $component ) { return $is_active; } // do not allow zero level to have the gallery. if ( function_exists('current_user_is' ) && current_user_is( $component_id, 's2member_level0' ) ) { return false; } return $is_active; } add_filter( 'mpp_is_enabled', 'mpp_custom_disable_for_users', 10, 3 );Does it solve the problem?
Thank you
Brajesh Hi Dwi,
I am sorry for the inconvenience.Can you please ask Shane if he is filtering on “bp_after_has_members_parse_args”
We are filtering on it for 2 case:-
1. When you setup some member type to be excluded, we filter to add member_type__not_in and include parameters
2. When clicking on member type name, It is again filtered to have only specific member type.Can you please post me the code used for directory filtering.
Also, can you please try by disabling the buddyblock and see if it working correctly?I am not sure where the issue lies yet(bpmtp or the buddyblock), Please let me know the details and I will assist you to resolve it.
Regards
Brajesh- Brajesh Singh on August 2, 2017 at 11:52 am in reply to: limit gallery link on members profiles #10155
Hi Patti,
Can you please list the membership level names and which of them should be allowed to have gallery?I will try to post a complete solution.
The above code limits based on capability(In this example, subscriber, author and contributors won’t have gallery).
Thank you
Brajesh - Brajesh Singh on August 2, 2017 at 4:44 am in reply to: limit gallery link on members profiles #10152
Hi Patti,
It is php code.If you don’t understand the code, I will suggest hiring someone or avoiding this use case. This is a very small thing(you need to specify the membership levels and conditions and the developer can update the above code for you and put it on the site).
I am sorry that we don’t have a ready made solution for this case, we will try to have something as addon in future.
Regards
Brajesh - Brajesh Singh on August 2, 2017 at 4:29 am in reply to: [Resolved] remove activity delete button text #10150
Thank you for the help here @ravisharma
Closing it since it is resolved.
- Brajesh Singh on August 2, 2017 at 4:28 am in reply to: [Resolved] bp-activity-comment-notifier translation #10148
Thank you Ahmed.
Glad to know that.Regards
Brajesh Hi Frances,
I am sorry but I am unable to understand. Can you please elaborate it a little better. How are you getting the user to add the tag line.
Where do you want this tag line to be(Screenshot will be nice)?Thank you
BrajeshHi,
Thank you for posting.At the moment, the only way I see it will be using the “bp_core_remove_nav_item()” to remove the nav from the non paid members screen.
Will be comfortable if we posted some code example?
Thank you
Brajesh- Brajesh Singh on August 1, 2017 at 4:31 am in reply to: [Resolved] bp-activity-comment-notifier translation #10138
Hi Ahmed,
Will look into it and get back to you.Thank you
Brajesh