Replies
- Tosin on September 15, 2018 at 1:51 pm in reply to: Hide some stuff from buddypress activity stream #17382
Hello,
This plugin might help https://wordpress.org/plugins/buddypress-block-activity-stream-types/
Good luck
- Tosin on July 7, 2018 at 11:07 am in reply to: [Resolved] BuddyPress Auto Activate Auto Login email login problem #16188
Hello Brajesh,
The updated plugin and the filter worked successfully, thank you so very much.
Tosin
- Tosin on July 6, 2018 at 10:17 am in reply to: [Resolved] BuddyPress Auto Activate Auto Login email login problem #16150
Hello Brajesh,
I have not received any feed back yet with regards to the update.
Thank you
- Tosin on July 4, 2018 at 6:16 am in reply to: [Resolved] BuddyPress Auto Activate Auto Login email login problem #16110
Hello Brajesh,
I am using two methods to achieve (1) through the ithemes security plugin (2) through custom code in my functions.php file
1. Using the ithemes security plugin by navigating to settings the wordpress tweaks
2. Below is the custom code applied to my functions.php file
/* ------------------------------------------------------------------------- * * Remove WordPress default authentication function /* ------------------------------------------------------------------------- */ remove_filter('authenticate', 'wp_authenticate_username_password', 20); /* ------------------------------------------------------------------------- * * Add custom authentication function /* ------------------------------------------------------------------------- */ add_filter('authenticate', function($user, $email, $password){ //Check for empty fields if(empty($email) || empty ($password)){ //create new error object and add errors to it. $error = new WP_Error(); if(empty($email)){ //No email $error->add('empty_username', __('<strong>ERROR</strong>: Email field is empty.')); } else if(!filter_var($email, FILTER_VALIDATE_EMAIL)){ //Invalid Email $error->add('invalid_username', __('<strong>ERROR</strong>: Email is invalid.')); } if(empty($password)){ //No password $error->add('empty_password', __('<strong>ERROR</strong>: Password field is empty.')); } return $error; } //Check if user exists in WordPress database $user = get_user_by('email', $email); //bad email if(!$user){ $error = new WP_Error(); $error->add('invalid', __('<strong>ERROR</strong>: Either the email or password you entered is invalid.')); return $error; } else{ //check password if(!wp_check_password($password, $user->user_pass, $user->ID)){ //bad password $error = new WP_Error(); $error->add('invalid', __('<strong>ERROR</strong>: Either the email or password you entered is invalid.')); return $error; }else{ return $user; //passed } } }, 20, 3);
Thank you
- Tosin on July 3, 2018 at 9:00 pm in reply to: [Resolved] BuddyPress Auto Activate Auto Login email login problem #16105
Hello Brajesh,
I’m using a plugin to prevent usernames and accept only on email address on login, is there a way to work around this because I don’t want my users to be able to login using their username but only their email address.
1. For security reasons logins with email address is better as I want to use usernames for communication purpose only in the community.
2. Users cannot easily identity another user’s email address unlike usernames that are publicly visible during communication in buddypress.
Thanks
- Tosin on July 1, 2018 at 11:51 am in reply to: [Resolved] Facebook Like User Activity Stream for BuddyPress not working properly #16031
Hello Brajesh,
I just updated the plugin now and it works perfectly. Just to let you know, I am using this plugin with the buddyboss wall plugin but I only enabled the stream on the site wide activity page and not the profile page, I don’t think there is any form of conflict. If possible I can send you a copy of the buddyboss wall plugin to check it out for compatibility issues.
Thank you so much
Tosin - Tosin on July 1, 2018 at 10:00 am in reply to: [Resolved] Facebook Like User Activity Stream for BuddyPress not working properly #16027
Hello Brajesh,
Thank you so much for explaining, I was also wondering if it will be possible to also change the all members label for only logged in users.
1. Logged in users will see the label (My wall) while logged out users will see (all members) label.
2. When a user is logged out does the site wide activity page revert back to the default all members activities.
Thanks
Tosin - Tosin on May 2, 2018 at 8:14 am in reply to: [Resolved] Facebook Like User Activity Stream and Buddyboss wall compatibility #14856
Hello Brajesh,
Thank you so very much i’m very grateful. You even took the plugin a step further.
- Tosin on April 30, 2018 at 10:22 am in reply to: BuddyPress Clear Notifications support for Klein theme #14824This reply has been marked as private.
- Tosin on April 16, 2018 at 11:01 pm in reply to: [Resolved] Prevent buddypress unfollow function for specified users #14549
The code worked successfully thank you very much Brajesh, God bless.