Replies
- Brajesh Singh on March 27, 2019 at 1:04 pm in reply to: [Resolved] BP Multi Network (need some advice, please.) #21716
Hi Rick,
Thank you for the kind words.My suggestion will be to not modify the mnetwork_table.
Instead, add user to proper blog using a script and they will be synchronized. I am not sure how will you decide which users should go to which blog. If there is any data to decide that, It will be easy.
Regards
Brajesh - Brajesh Singh on March 27, 2019 at 1:01 pm in reply to: [Resolved] QUESTION – Problem in Budyppress, if part comments if you have idea #21714
Hi Michaël,
I am glad it is resolved.All the best.
Brajesh
- Brajesh Singh on March 27, 2019 at 1:00 pm in reply to: [Resolved] FEATURE IDEA – Limit Groups Per User – Who can create a group / by role #21713
Hi Michaël,
I am sorry, March has been a month when I have been moving for last 2 weeks.Will be back to proper work from Saturday(30th march again). We will have this update by 2nd April or before.
Thank you
Brajesh - Brajesh Singh on March 27, 2019 at 12:57 pm in reply to: Mediapress on Comments & Private Message #21712
Hi Minoo,
Thank you for the question.MediaPress does not support WordPress comments upload or attachment with private message. We do have plan to add support for comment attachment in future.
Regards
Brajesh - 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