Replies
- Brajesh Singh on April 12, 2018 at 8:22 pm in reply to: Buddypress Force follow 5 members after registration #14430
Hi Tosin,
I am glad it worked. @ravisharma deserves the credit for the assistance. Thank you Ravi.This code can certainly be extrapolated for friendship but a Friendship is a bidirectional connection. What should we count? The friends and the friendship request sent by the logged in member?
Regards
Brajesh - Brajesh Singh on April 12, 2018 at 8:16 pm in reply to: Display sitewide activity for followers only #14429
Hi Tosin,
Please feel free to restore your old template file.The problem lied with my code. I mistook for members directory. Have updated the code to
/** * Filter sitewide activity to list following user's activity. * * @param array $args args. * * @return array */ function buddydev_custom_list_activities_filter( $args ) { if ( ! is_user_logged_in() || ! bp_is_activity_directory() ) { return $args; } // for logged in user, change scope to following. $args['scope'] = 'follow'; return $args; } add_filter( 'bp_after_has_activities_parse_args', 'buddydev_custom_list_activities_filter' );Also, this code should go to your theme’s functions.php or the bp-custom.php in plugins directory and not in template file.
PS:- You can also just conditionally hide the All members tab by using a condition like. That will be a nice enhancement in addition to the above code.
<?php if( ! is_user_logged_in() ) :?> ......link for showing the all members tab <?php endif;?>Regards
Brajesh - Brajesh Singh on April 12, 2018 at 8:10 pm in reply to: BuddyPress Moderation – Report Users/Groups #14428
Thank you Tiziano.
It’s coming up as expected and will be available by the end of next week.
Best regards
Brajesh - Brajesh Singh on April 12, 2018 at 8:09 pm in reply to: How to make someone become featured members? #14427
Hi,
At the moment, You can do it from the members directory too. Yes, we will add a context link in the admin in the future for the same.Regards
Brajesh - Brajesh Singh on April 12, 2018 at 8:08 pm in reply to: How to make someone become featured members? #14426
Please visit your members directory and mark users as featured. You can also mark users as featured from their profile.
Regards
Brajesh - Brajesh Singh on April 10, 2018 at 7:11 pm in reply to: mediapress upload video in sitewide style youtube #14403
Hi Paolo,
My apologies for the delayed reply.This problem can be broken into a few steps.
1. Uploading the video
2. Crunching the video to extract cover and converting to playable file format
3. Using the converted video and cover and MediaPress video entry.Since your upload strategy is very different from what we have in MediaPress, you will most probably need to handle the first 2 part yourself.
Here is how we save an uploaded file as MediaPress entry
https://github.com/buddydev/mediapress/blob/master/core/ajax/mpp-ajax.php#L363The mpp_add_media() is used to add the media to a gallery.
Regards
Brajesh - Brajesh Singh on April 10, 2018 at 7:05 pm in reply to: [Resolved] Ajax registor form customization #14402
Hi Daniel
That is happening since theme is applying that on the mobile. I had updated the css earlier. Will add it to the additional css again to fix it. Please allow me to update on the site today.
Also, It is possible that the theme’s css override has higher priority. I will check and update you again today for the other fields.
Thank you
Brajesh - Brajesh Singh on April 10, 2018 at 7:02 pm in reply to: Ajax registration – form has gone whacky #14401This reply has been marked as private.
- Brajesh Singh on April 10, 2018 at 6:49 pm in reply to: [Resolved] insert a value into my new xprofile numeric field #14399
Hi Herve,
You are welcome.yes, The above hook fires when a user activates their account.
For editing the profile, I will suggest sticking to ‘xprofile_updated_profile’ hook as the ‘xprofile_data_before_save’ fires each time an individual xprofile field is updated.
Best Regards
Brajesh - Brajesh Singh on April 10, 2018 at 6:15 pm in reply to: Ajax registration – form has gone whacky #14398
Hi Diana,
Please do grant me temporary admin access and I will update the css.About loading css/js on the login page. The scripts loaded on the hook ‘wp_enqueue_Scripts’ will not be loaded.
In order to load css/js on the login page, we need to hook to ‘login_enqueue_scripts’ action.
Regards
Brajesh