Forum Replies Created
-
AuthorPosts
-
Codog
ParticipantHi Peter,
thanks for getting back to me and confirming. So to clarify how the keys are added:// Google reCAPTCHA keys $login_site_key = defined('GRC_LOGIN_SITE_KEY') ? GRC_LOGIN_SITE_KEY : ''; $login_secret_key = defined('GRC_LOGIN_SECRET_KEY') ? GRC_LOGIN_SECRET_KEY : ''; // Login Shortcode echo do_shortcode('[mb_user_profile_login label_username="Email" label_title="Login" ajax="true" value_remember="true" recaptcha_key="'.$login_site_key.'" recaptcha_secret="'.$login_secret_key.'" redirect="'.$return_url.'"]');I use the same methodology on other MB User Profile Forms. I have also double checked and verified the login keys are correct.
Page where login can be viewed: https://wordpress.build/client-login/
I look forward to your feedback.
Cheers
I ha
Codog
Participant.... Q) Does the MB AIO plugin support ReCaptcha on MB User Profile Login Forms? When adding some debug logging to verify reCaptcha requests on the login form... I get nothing. On the Registration Form I see the reCaptcha request.
Can you confirm?
Cheers
July 22, 2025 at 10:50 PM in reply to: โ MB Frontend Form Shortcode - Redirect Param is Broken? #48601Codog
ParticipantApologies Peter,
you are correct! On a clean install it works fine.Cheers
July 22, 2025 at 10:23 PM in reply to: โ MB Frontend Form Shortcode - Redirect Param is Broken? #48599Codog
ParticipantHi Peter,
yeah sure.... probably should have done that first!Will get back to you shortly.
Cheers
Leo
June 17, 2025 at 4:51 PM in reply to: MB jQuery Validation - Scroll To Highlight Error - file_upload - Issue #48463Codog
ParticipantHey Peter,
its been 6 months since I logged this issue! I would really like to see this fixed. Can you let me know whats happening.Thanks ๐
Codog
ParticipantHi Peter,
apologies you are correct.... the registration form. Although there is only a slim chance that a backslash will make it into a user password it's definitely good to prevent the potential error. Thanks for escalating!June 9, 2025 at 9:10 PM in reply to: Login Form Forgotten Password link does not have a password strength #48408Codog
ParticipantFor anyone else....
After some further testing Peter's suggestion above:#47738 is the way to go and is actually much more effective at enforcing stronger passwords. Use a Regex
'pattern'to suit your requirements in your field'attributes'.Appreciate the suggestion here (#47738) Peter and sorry I did not see this earlier ๐
June 9, 2025 at 3:01 PM in reply to: Login Form Forgotten Password link does not have a password strength #48407Codog
ParticipantHi Peter,
I too have just noticed the "Password Strength Meter" not being available in the Password Reset form. Allowing weak passwords in any website is a big security flaw. I would really like to see this feature included/enabled for password reset. What is the likelihood of this being updated?Thanks.
Codog
ParticipantYes, I agree all the information is in the documentation. However, the order and presentation of these concepts are (in my opinion), not well structured and clear.
Codog
ParticipantHi Peter,
thanks for the more detailed explanation. Following your coded method above does work, thank you! However, your instructions are definitely not inline with your documentation here: https://docs.metabox.io/extensions/meta-box-geolocation/For example your documentation states:
1. Under the "Open Street Maps" section to use:
'geo' => true,In the field group settings?
But under the "Google Maps" section to use:
'geo' => [ 'api_key' => 'YOUR API KEY', ],In the field group settings?
2. Under the "Custom Binding" to get the "City & Country" to use:
'binding' => 'city + " " + country', // returns QLD AustraliaWhen you have stated to use "Locality"? (Which does work).
These things do not match what you have demonstrated above for Google Maps in your coded example? It's one of the reasons why I found, what should have been a straightforward task so tricky?
Many Thanks ๐
Codog
ParticipantHi Peter,
I have already checked everything you have mentioned in your previous post. I have the correct API services enabled.Selected APIs:
- Geocoding API
- Maps JavaScript API
- Places APIMy API key is 100% valid.
My Address and Map fields work absolutely fine and exactly as expected. As soon as I use the:
'geo' => [ 'api_key' => 'YOUR API KEY', ],I my field group both the Address and Map fields break!
Again I would urge you to test a coded version.
Cheers
Codog
ParticipantHi Peter,
I have returned to look at this again, watched your video, and double checked the documentation. But it still does not work for me via a coded solution. Here is my implementation:add_filter( 'rwmb_meta_boxes', function ( $meta_boxes ) { $meta_boxes[] = [ 'title' => 'Event details', 'post_types' => 'event', 'geo' => [ 'api_key' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',// As per your documentation only one API key required. Not necessary on the 'location_map' field. ], 'fields' => [ // Map field. [ 'id' => 'location_map', 'type' => 'map', 'std' => '51.5074,-0.1278,15', 'address_field' => 'location_address', ], // Address field. [ 'id' => 'location_address', 'name' => __( 'Address', 'text-domain' ), 'type' => 'text', 'placeholder' => 'Enter address...', 'desc' => __( 'Enter the complete address.', 'text-domain' ), 'required' => true, ], // Hidden field to store the city and country [ 'id' => 'city_country', 'type' => 'hidden', 'binding' => 'locality + " " + country', 'std' => 'null', ], // Other custom fields.... ], ]; return $meta_boxes; } );When I follow this implementation:
1. My Google map breaks and shows the standard "Sorry! Something went wrong" ? (IE: InvalidKeyMapError in console).
2. The Autocomplete feature on the address field stops working?
3. The hidden field can never capture any "binding" as 1&2 above are broken?As before:
- WP 6.8.1
- Metabox Version 5.10.10
- AIO Version 2.1.1
- PHP 8.3
- MYSQL 8.0.35I have the MB Geolocation extension on.
I see no console log errors (Apart from the InvalidKeyMapError mentioned above).
I see no debug.log errors.
I am using a completely unrestricted API key from my Google cloud console for testing.Although I appreciate the video showing this feature working in the Metabox builder. I would be very grateful if you can test a coded version as above to confirm this works on your end. I am stumped!!!
I look forward to your response ๐
May 19, 2025 at 3:02 PM in reply to: โ Prevent / Intercept Form Submission when radio option is checked? #48280Codog
ParticipantNo problem Peter, thanks for the feedback.
Codog
ParticipantThanks for the clarification Peter!
That was really helpful ๐
I will try this myself.
Codog
ParticipantHi there,
I never got this working. I have re-visited your suggestion (from above):add_filter( 'rwmb_meta_boxes', function ( $meta_boxes ) { $meta_boxes[] = [ 'title' => 'Event details', 'post_types' => 'event', 'geo' => [ 'api_key' => 'YOUR API KEY', ], 'fields' => [ ... ], ]; return $meta_boxes; } );But this binding never seems to work for me?
1. I have set up an unrestricted API key with all available API's.
2. I have added the geo parameter to my Metabox (Exactly as suggested):
3. My full test implementation is like this:add_filter( 'rwmb_meta_boxes', function ( $meta_boxes ) { $meta_boxes[] = [ 'title' => 'Event details', 'post_types' => 'event', 'geo' => [ 'api_key' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',// Unrestricted API Key ], 'fields' => [ // Map field. [ 'id' => 'location_map', 'type' => 'map', 'api_key' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', 'std' => '51.5074,-0.1278,15', 'address_field' => 'location_address', ], // Address field. [ 'id' => 'location_address', 'name' => __( 'Address', 'text-domain' ), 'type' => 'text', 'placeholder' => 'Enter address...', 'desc' => __( 'Enter the complete address.', 'text-domain' ), 'required' => true, ], // Hidden field to store the city and country [ 'id' => 'city_country', 'type' => 'hidden', 'binding' => 'city + " " + country', 'std' => 'null', ], ], ]; return $meta_boxes; } );I am using a clean install of WP:
- WP 6.8.1
- Metabox Version 5.10.9
- AIO Version 2.1.1
- PHP 8.3
- MYSQL 8.0.35I have the MB Geolocation extension on.
I see no console log errors.
I see no debug.log errors.Can you confirm that this implementation works for you? (or Not). I cannot get this feature to work for love or money?
Thanks.
-
AuthorPosts