Replies
- Tosin on October 12, 2018 at 9:38 am in reply to: [Resolved] How to disable public and private messages for specific users #18043
Hello Brajesh,
Thanks but I wasn’t referring to roles and capabilities but specific user ids
Thank you
- Tosin on October 11, 2018 at 2:33 pm in reply to: [Resolved] How to disable public and private messages for specific users #18016
Awaiting your feedback sir
- Tosin on October 6, 2018 at 6:36 pm in reply to: How to redirect website from operamini browser to chrome, firefox and opera #17919
The notice approach would be good.
Thank you very much
- Tosin on September 26, 2018 at 4:57 pm in reply to: How to make custom follow button load with ajax #17694
Hello Brajesh,
THANK YOU, THANK YOU VERY MUCH The code worked perfectly I added it to the bp-follow.js file. I was wondering if its possible to add the code to child-theme.
I am using the klein theme at https://themeforest.net/item/klein-a-nittygritty-community-theme/5418518
God bless
- Tosin on September 24, 2018 at 7:24 pm in reply to: How to make custom follow button load with ajax #17602
Hello Brajesh,
I know you must be very busy, please I’m still expecting feedback on this issue.
Thank you.
- Tosin on September 20, 2018 at 10:08 pm in reply to: How to make custom follow button load with ajax #17518
Hello Brajesh,
Any feedback on this yet
Thanks
- 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