Replies
- Brajesh Singh on March 27, 2019 at 12:54 pm in reply to: [Resolved] Plugin or snippet for limit the number Go #21710
Hi Michaël,
How are you allowing upload on Wall?
BuddyPress does not have any upload functionality for wall. f you are not using MediaPress, you are most probably using another plugins for adding upload via wall.You will need to contact the plugin author in that case.
Regards
Brajesh - Brajesh Singh on March 26, 2019 at 12:39 am in reply to: [Resolved] MediaPress with BuddyPress Polls #21687
Hi Mic,
We are using the activity type to let BuddyPress delegate us the action string creation for activity( e.g xyz uploaded 5 photo). It helps us create the action dynamically.It seems RT Media is adding a meta and then filtering on the action string t add their own(I haven’t checked it and will only be able to do so after 28th as I am travelling right now).
We can certainly use that strategy in future. It does have the side effect that we will need to filetr for each activity action.
Since we do not use the activity type for anything critical, we can certainly replace it in future.
I am proposing that we add 1 meta to activity updates marking it has attached media and then move forward.
Also, MediaPress was not designed to work alone. The goal was to make it co operate with other plugins in future(it still is). We will resolve this activity issue in next major release.
For now, you may want to look for code containing “mpp_media_upload”. The change will need to go around there.
Regards
Brajesh - Brajesh Singh on March 26, 2019 at 12:27 am in reply to: How to display default wordpress login error message inside theme #21686
Hi Tosin,
You are using a pro theme. Please contact theme developers for help as the functionality is provided by them.Regards
Brajesh - Brajesh Singh on March 26, 2019 at 12:25 am in reply to: [Resolved] Adjusting length of text before Read More link #21685
HI Dale,
This should most probably work/** * Change length of activity excerpt. * * @param int $length length. * * @return int */ function buddydev_change_activity_excerpt_length( $length ) { return 500; } add_filter( 'bp_activity_excerpt_length', 'buddydev_change_activity_excerpt_length' );Please give it a try and let me know.
Regards
Brajesh - Brajesh Singh on March 26, 2019 at 12:19 am in reply to: [Resolved] conditionsprofile field (if i am a women, i search man) #21684
Hi,
I am sorry but I am not sure of the issue.
Here is the code I added to your bp-custom.php// For showing members of opposite gender. function buddydev_exclude_same_gender_users( $args ) { if ( ! is_user_logged_in() ) { return $args; } $field_id = 3;// gender field. $data = maybe_unserialize( BP_XProfile_ProfileData::get_value_byid( $field_id, get_current_user_id() ) ); if ( empty( $data ) ) { return $args; } // we have two choices here. // show opposite gender or show all members who are not of same gender // I am going with opposite gender, feel free to adapt. $search = ''; if ( 'Un Homme' == $data ) { $search = 'Une Femme'; } elseif ( 'Une Femme' == $data ) { $search = 'Un Homme'; } if ( empty( $search ) ) { return $args; } $args['xprofile_query'] = array( array( 'field' => $field_id, // field id or name. 'value' => $search, 'compare' => '=', ), ); return $args; } add_filter( 'bp_after_has_members_parse_args', 'buddydev_exclude_same_gender_users' );It looks into the field 3 3 of the logged in user, then checks for who should be shown.
Since I do not understand the language, The string values may be incorrect . Can you please check it and tell me if it is correct or not?
if ( 'Un Homme' == $data ) { $search = 'Une Femme'; } elseif ( 'Une Femme' == $data ) { $search = 'Un Homme'; }Regards
Brajesh - Brajesh Singh on March 26, 2019 at 12:13 am in reply to: [Resolved] BP Ajax Registration – Overriding modal styles from theme #21683
HI Diana,
Thank you for the question.The patch should be
yourtheme/bpajaxr/default/assets/bpajaxr-style.cssWe suggest using
yourtheme/bpajaxr/defaultThe last part is name of the active template style(currently, we only support default but will change in future) to help us localize the change and add more styles in future without breaking backward compatibility.
Keeping this structure, you can keep your changes local to a specific style. Say, we add a new style “classic” in future, if you maintain this structure, changes for styles in the default won’t affect new.
Regards
Brajesh - Brajesh Singh on March 26, 2019 at 12:07 am in reply to: [Resolved] Plugin or snippet for limit the number Go #21682
Hi Michaël,
Thank you for the question. We do it already for MediaPress.
I am not sure if you are looking for restricting some other type of upload.
Please help me understand it and I will assist.
Regards
Brajesh - Brajesh Singh on March 25, 2019 at 11:33 pm in reply to: You don't have sufficient permissions to upload #21679
Hi Barry,
Thank you for using MediaPress.It is a permission issue. Since yu are using our PMPro addon, can you please check if the user have the PMPro addon specific capability.
Regards
Brajesh - Brajesh Singh on March 25, 2019 at 11:32 pm in reply to: [Resolved] MediaPress with BuddyPress Polls #21678
Hi Mic,
Thank you for using MediaPress.I am sorry but the developers of the poll plugin have explained it correctly.
MediaPress adds new uploads as a activity type and so does poll. An activity can’t have more than 1 activity type and that’s the issue here.
I am sorry but I don’t see any possible solution right now.
Regards
Brajesh - Brajesh Singh on March 25, 2019 at 11:24 pm in reply to: How to display default wordpress login error message inside theme #21677
Hi Tosin,
I am sorry, I am not sure what the question is.Please answer me a few questions to help me understand it.
1. Are you using wp-login.php or not
2. Is it a custom login page by your theme?If it is the second case Please contact theme authors or code providing the login functionality. The above code and login notices are very different and unrelated(unless someone makes code to grab the login error and add it as BuddyPress notice).
My suggestions to fix the cause of the issue as it should be properly handled by the login code.
Regards
Brajesh