Support Forum ยป User Profile

Forum Replies Created

Viewing 15 posts - 16 through 30 (of 95 total)
  • Author
    Posts
  • in reply to: Google reCaptcha V3 - Backend Verification? #48799
    CodogCodog
    Participant

    Hi 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

    in reply to: Google reCaptcha V3 - Backend Verification? #48781
    CodogCodog
    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

    CodogCodog
    Participant

    Apologies Peter,
    you are correct! On a clean install it works fine.

    Cheers

    CodogCodog
    Participant

    Hi Peter,
    yeah sure.... probably should have done that first!

    Will get back to you shortly.

    Cheers

    Leo

    CodogCodog
    Participant

    Hey 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 ๐Ÿ™‚

    in reply to: Backslashes in passwords break user login? #48424
    CodogCodog
    Participant

    Hi 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!

    CodogCodog
    Participant

    For 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 ๐Ÿ™‚

    CodogCodog
    Participant

    Hi 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.

    in reply to: Frontend Submission - Google Maps - Custom Binding #48372
    CodogCodog
    Participant

    Yes, 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.

    in reply to: Frontend Submission - Google Maps - Custom Binding #48365
    CodogCodog
    Participant

    Hi 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 Australia

    When 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 ๐Ÿ™‚

    in reply to: Frontend Submission - Google Maps - Custom Binding #48348
    CodogCodog
    Participant

    Hi 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 API

    My 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

    in reply to: Frontend Submission - Google Maps - Custom Binding #48343
    CodogCodog
    Participant

    Hi 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.35

    I 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 ๐Ÿ™‚

    CodogCodog
    Participant

    No problem Peter, thanks for the feedback.

    in reply to: Frontend Submission - Google Maps - Custom Binding #48258
    CodogCodog
    Participant

    Thanks for the clarification Peter!

    That was really helpful ๐Ÿ™‚

    I will try this myself.

    in reply to: Frontend Submission - Google Maps - Custom Binding #48251
    CodogCodog
    Participant

    Hi 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.35

    I 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.

Viewing 15 posts - 16 through 30 (of 95 total)