Replies
- Brajesh Singh on April 11, 2022 at 1:15 am in reply to: Only user_role/user_can are able to accept user testimonals #44362
Hi,
Thank you for the question.
yes, both of these are doable.here is some sample code for that.
// disable testimonials component for some users. add_filter( 'bp_testimonial_enabled_for_user', function( $is_enabled, $user_id ) { // process return $is_enabled; }, 10, 2 ); /// limit show can write add_filter( 'bp_testimonial_user_can_write', function($can) { if( ! is_user_logged_in() ) { return $can; } // in case you want to find the user for whom testimonial is being written // it is displayed user. // $displayed_user_id = bp_displayed_user_id(); // check for current user if( current_user_can('read') ) { // update $can to true/false/ } return $can; });Hope you can adapt it for your purpose. Please let me know if you want me to put an example with roles?
Regards
Brajesh- This reply was modified 4 years, 3 months ago by
Brajesh Singh. Reason: updated code slightly
- This reply was modified 4 years, 3 months ago by
- Brajesh Singh on April 11, 2022 at 1:04 am in reply to: [Resolved] Having name and last name in post and header #44361This reply has been marked as private.
Hi Herimanana,
Welcome to the BuddyDev support forums.I don’t see any proper way to do it.
You may randomize but then you will need to track that the same activities should not be shown repeatedly on load more. Also, if the randomness is enabled, you may want to maintain the freshness of the stream somehow. This is doable but we don’t have enough resource or interest in it in currently.
Regards
BrajeshHi Giuseppe
Try Searchin for the string
What\'s new in %1$s, %2$s?in the translation plugin and translate it. This is used in groups.
If it does not work, Please contact theme author.
Regards
Brajesh- Brajesh Singh on April 11, 2022 at 12:49 am in reply to: [Resolved] Upload photo or document is broken in activity #44358
Hi,
Welcome to BuddyDev support forums.Is it about MediaPress or Activity Plus reloaded?
Our plugins are currently tested with the default post form. You have a customized form that uses visual text editor and that might be the reason.
Please let me know which plugin you are using and our team will try to test it within a week a get back to you(sorry, we are short on support for this week).
Regards
Brajesh Hi Fabien,
Thank you for the questions.You can easily achieve it.
You can go though any of the following 2 methods:-
— Easy way using xprofile field–
1. Create a profile field and suggest users to use their donation link in it. Mark this field as private/only available to the user to avoid it being visible in their profile.
2. Use xprofile_get_field_data() and show it as a button somewhereor
— Adding a custom sub nav under settings —
1. Add a screen under user account settings with a form field for their donation link
2. User’s can specify their link and you may validate it
3. Store it in user meta and use get_user_meta() to fetch and show it as buttonThe first one is easy one but may not be very intuitive. The second seems more intuitive but will need a lot more code than the first.
Regards
Brajesh- Brajesh Singh on April 7, 2022 at 9:20 pm in reply to: [Resolved] different header with chrome and firefox #44339
Hi Giuseppe,
Thank you for the question.Probably the extra data that you are adding using custom code is pushing the buttons leading to this. Since you are using a custom theme, I will suggest contacting theme authors for help. They can supply you custom css(and may be advise to wrap the code block in additional section) to fix it.
Regards
Brajesh Hi Giuseppe,
Is the translation working on your sitewide activity page or user activity page? or is it happening at all places?
Please let me know and I will assist you
Regards
Brajesh- Brajesh Singh on April 7, 2022 at 9:15 pm in reply to: Translation buddypress member blog doesn’t work #44337
Hi Paulien,
Welcome to BuddyDev support forums.Are you using the member blog plugin from BuddyBoss? Please link us to the plugin to understand the issue and assist you .
Regards
Brajesh Hi,
Thank you for the reply.
There seem to be only 1 options currently. you may have a look at this one.https://wordpress.org/plugins/shortcodes-for-buddypress/
Regards
Brajesh