Replies
- 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 Hi Ahmed,
No problem with the English.
Can you please tell me what is the issue with disabling the member type editing for user in this case?
Do you want the users to change their member type(except the ENTREPRENEUR)?
Thank you
BrajeshMarking it as resolved due to lack of replies.
- Brajesh Singh on April 10, 2018 at 1:16 pm in reply to: [Resolved] transfer and store demo files #14390
Thank you Monica.
Glad you were able to transfer and use the plugin.Best Regards
Brajesh - Brajesh Singh on April 10, 2018 at 11:12 am in reply to: Display sitewide activity for followers only #14388
Hi Tosin,
Please change this line$args['scope'] = 'following';to
$args['scope'] = 'follow';It will list the user follower activities even if all members tab is selected.
you don’t need the second code.
Also, if you want to remove the All members tab, I will suggest copying the buddypress/members/index.php from your theme(or bp-legacy) to your current theme /buddypress/members/index.php and remove it.
Regards
Brajesh - Brajesh Singh on April 10, 2018 at 3:51 am in reply to: How to regenerate mediapress thumbnails #14378
Hi Eduard,
Welcome to BuddyDev.At the moment, There is no plugin to resize it. All resize plugin use get_intermediate_image_sizes() which we do not add as WordPress will create unnecessary media files for each upload.
Allow us to explore the existing regeneration plugins for next 2 days and we can have a fork with MediaPress support available .
Thank you
Brajesh - Brajesh Singh on April 10, 2018 at 3:47 am in reply to: [Resolved] Mediapress lighbox image size #14377
Hi,
Can you please right click on the image and open it in new tab and then see if it is original or the resized one?It might be showing the scaled version dues to lightbox css. Please check and let me know.
Thank you
Brajesh - Brajesh Singh on April 10, 2018 at 3:19 am in reply to: Display sitewide activity for followers only #14376
Hi Tosin,
If you are using the BuddyPress Follow plugin’s latest version from github, The following code will do it./** * 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_members_directory() ) { return $args; } // for logged in user, change scope to following. $args['scope'] = 'following'; return $args; } add_filter( 'bp_after_has_activities_parse_args', 'buddydev_custom_list_activities_filter' );Hope that helps.
Regards
Brajesh