Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 16 through 30 (of 56 total)
  • Author
    Posts
  • in reply to: whats wrong with my validation? #43702
    Aaron KesslerAaron Kessler
    Participant

    However, I found a workaround:

    
    $fields[] = [
        'title' => __('Validation', NAME_SPACE),
        'post_types' => [PREFIX . 'event'],
        'context' => 'form_top',
        'style' => 'seamless',
        'fields' => [
            [
                'id' => PREFIX . 'validation',
                'type'   => 'group',
                'visible' => ['eventDateValidator()', false],
                'fields' => [
                    [
                        'id' => 'error_message',
                        'type' => 'custom_html',
                        'std'  => "<div class='hidden event-error'><p>$event_validation_error_message</p></div>",
                    ],
                    [
                        'id'   => 'hidden',
                        'type' => 'hidden',
                        'required' => true
                    ],
                ]
            ]
        ],
    ];
    

    This filed is only visible if my eventDateValidator() returns false, since the hidden field is required but is missing the std value prevents the submit. Seems very hacky to me.

    Any other approaches to compare two custom fields values before submitting?

    in reply to: whats wrong with my validation? #43701
    Aaron KesslerAaron Kessler
    Participant

    Where in the docs is it mentioned that the validation does not work with the group field? Afaik the documentation only says "add a key validation to the field group settings". Since the group field has its own 'fields' key it should work according to the docs.

    in reply to: Metabox v5.8.0 not working with MB Blocks #43303
    Aaron KesslerAaron Kessler
    Participant

    Same for me, not all mb blocks are affected only

    
    $fields[] = [
        'title' => __('Slider', NAME_SPACE),
        'icon' => 'images-alt2',
        'category' => 'theme-blocks',
        'description' => __('Section containing an image slider', NAME_SPACE),
        'supports' => [
            'customClassName' => true,
            'anchor' => true,
        ],
        'render_callback' => 'mb_block_renderer',
        'type' => 'block',
        'context' => 'asside',
        'mode' => 'edit',
        'fields' => [
            [
                'name' => __('Heading', NAME_SPACE),
                'id' => PREFIX . 'slider_heading',
                'type' => 'text',
                'label_description' => __('Slider Heading', NAME_SPACE),
                'std' => __('Slider', NAME_SPACE),
                'required' => true,
            ],
            [
                'name' => __('Images', NAME_SPACE),
                'id' => PREFIX . 'slider_images',
                'type' => 'image_advanced',
                'label_description' => __('Slider Images', NAME_SPACE),
                'max_status' => false,
            ],
        ],
    ];
    
    in reply to: Unnecessary code on every page #43079
    Aaron KesslerAaron Kessler
    Participant

    I can confirm. I am experiencing the same issue. I use these Plugins:

    mb-admin-columns
    mb-blocks
    mb-settings-page
    mb-views
    meta-box
    meta-box-group
    meta-box-include-exclude<

    in reply to: email is always required #41249
    Aaron KesslerAaron Kessler
    Participant

    Hey Peter,

    I assume you have not tried to update the profile. However, I solved it. It should also happen on your site. This only happens if the field ID is 'email'. I guess it conflicts with the native email field.

    in reply to: email is always required #41245
    Aaron KesslerAaron Kessler
    Participant

    Hey Peter,

    I switched to the 2023 theme, deactivated all plugins except

    MB Custom Post Types & Custom Taxonomies
    MB Settings Page
    MB User Meta
    Meta Box
    MB Builder
    MB Group

    The MB Builder PHP Export is:

    
    <?php
    add_filter( 'rwmb_meta_boxes', 'your_prefix_function_name' );
    
    function your_prefix_function_name( $meta_boxes ) {
        $prefix = '';
    
        $meta_boxes[] = [
            'title'  => __( 'Paten-Profil', 'your-text-domain' ),
            'id'     => 'user-profile',
            'type'   => 'user',
            'fields' => [
                [
                    'name' => __( 'Profil-Bild', 'your-text-domain' ),
                    'id'   => $prefix . 'profile_image',
                    'type' => 'single_image',
                ],
                [
                    'name'       => __( 'Fragen und Antworten', 'your-text-domain' ),
                    'id'         => $prefix . 'qa',
                    'type'       => 'group',
                    'clone'      => true,
                    'sort_clone' => true,
                    'fields'     => [
                        [
                            'name'       => __( 'Frage', 'your-text-domain' ),
                            'id'         => $prefix . 'question',
                            'type'       => 'taxonomy_advanced',
                            'field_type' => 'select_advanced',
                        ],
                        [
                            'name' => __( 'Antwort', 'your-text-domain' ),
                            'id'   => $prefix . 'answer',
                            'type' => 'wysiwyg',
                        ],
                    ],
                ],
                [
                    'name'              => __( 'E-Mail', 'your-text-domain' ),
                    'id'                => $prefix . 'email',
                    'type'              => 'email',
                    'label_description' => __( 'Abweichende E-Mail-Adresse', 'your-text-domain' ),
                    'desc'              => __( 'Wenn keine E-Mail-Adresse eingetragen wird, wird die E-Mail-Adresse dieses Kontos verwendet.', 'your-text-domain' ),
                ],
                [
                    'name' => __( 'Crew United ID', 'your-text-domain' ),
                    'id'   => $prefix . 'cu_id',
                    'type' => 'text',
                ],
                [
                    'name'       => __( 'Patenschaft', 'your-text-domain' ),
                    'id'         => $prefix . 'mentoring',
                    'type'       => 'taxonomy',
                    'field_type' => 'select_advanced',
                    'multiple'   => true,
                ],
            ],
        ];
    
        return $meta_boxes;
    }
    

    the problem still persists

    in reply to: unpkg.com #40139
    Aaron KesslerAaron Kessler
    Participant

    Thanks, this is a reasonable explanation. So maybe bundling them with the meta box core plugin is a solution to get around this. I appreciate your decision to include it.

    Currently tooltip is used in the Tooltip and Builder extensions (backend).

    Backend is not 100% correct. As I wrote with mb front end submission, you can use this library on the front end, and therefore the reason I initially complained about GDPR compliance.

    in reply to: unpkg.com #40123
    Aaron KesslerAaron Kessler
    Participant

    It is not about what data I collect, but which data will be processed by third parties, especially outside the EU. If I transfer visitor data like ip addresses without legitimate interest to google analytics, or another third parties, I have to ask the visitor before doing so to be GDPR-compliant. In Germany, we have recently had problems with lawyers who have issued legal warnings to website operators for the use of fonts hosted by google because of a recent judgment wich condemed the website owner to pay the visitor for "personal indisposition" (sounds crazy, I know). Technically, using unpgkg.com this is not different. It is advised to sign a CP-contract with third parties who is processing visitor data, or rely on corporate binding rules, which are heavily disputed over here since there are judgements that EU equivalent level of data protection could not be provided from a CDN concerning Cloudflare, so I can't agree with your statement that "Cloudflare rule is very strict about GDPR compliance, so you don't worry about that." Also transferring data outside the EU for displaying a tooltip, is hardly arguable as legitimate interest. As a web design provider, I don't want to deal with this legal complexity if I don't have to, and you should not force your customers to do custom coding to get around this. Hosting the necessary JavaScript locally makes it so much easier to be GDPR-compliant, and I can't see why it is beneficial to use Cloudflare unless I want to serve a high traffic website to visitors worldwide.

    in reply to: unpkg.com #40068
    Aaron KesslerAaron Kessler
    Participant

    So this is marked as resolved with the reason "some benefits" and that's it? What's about the unpkg usage on the front end and GDPR concerns?

    in reply to: unpkg.com #40037
    Aaron KesslerAaron Kessler
    Participant

    As long as there is internet available, everything works, of course. I guess one could unregister your script and register them again using a local copy. Why is it beneficial to use a CDN? It's easy to violate GDPR this way, using mb front end submission. I would not do this, and suggest you include your dependencies locally. In my point of view, there is no harm in doing so.

    Meta Box website, plugin and all extensions are 100% GDPR-compatible. (https://metabox.io/privacy-policy/)

    This is not true, since you should ask for consent before IP addresses are transferred to third parties. I think no one cares if that happens on the backend of a content management system, but for the front end, it's another story.

    in reply to: Licence Management Bugs #40002
    Aaron KesslerAaron Kessler
    Participant

    Hi Anh,

    limiting to 0 works now, but I still can't delete my last unused key. I noticed that I can set a limit, and if I then hit delete, the limit reverts to 0 instead of deletion.

    in reply to: Customizer "something went wrong" when advanced image is reset #39796
    Aaron KesslerAaron Kessler
    Participant

    Thanks Peter, I did know about the workaround.
    I would appreciate it, if you update this thread when this is fixed. I like the idea of being subscribed per mail to issues I report.

    in reply to: How to use Metabox to create custom fields within Menu items #39313
    Aaron KesslerAaron Kessler
    Participant

    +1 Came here to request this feature 🙂

    me to 😉

    in reply to: panel_id #39312
    Aaron KesslerAaron Kessler
    Participant

    Thanks for your guidance so far. I did take a look at Memory's wp-content/themes/memory/inc/customizer/customizer.php and noticed that

    
    	$wp_customize->add_control(
    		'site_description',
    		array(
    			'label'   => esc_html__( 'Site Description', 'memory' ),
    			'section' => 'title_tagline',
    			'type'    => 'checkbox',
    		)
    	);
    

    is used to add a checkbox inside the Site Identity Panel below the 'title_tagline' inputs. So i guess i can't define this position inside the meta box custom fields definition?

    Currently, my field is defined as follows:

    
    $fields[] = [
        'title' => __('Copyright', NAME_SPACE),
        'id' => PREFIX . 'copyright',
        'panel' => '',
        'fields' => [
            [
                'name' => __('Copyright', NAME_SPACE),
                'id' => PREFIX . 'copyright',
                'type' => 'text',
                'label_description' => __('Text after copyright. Appears in the footer.', NAME_SPACE),
            ],
        ],
    ];
    
    in reply to: Users Language #39294
    Aaron KesslerAaron Kessler
    Participant

    It seems you did not understand what I was trying to tell you, so I will elaborate:

    The string "+ Add more" is correctly translated to my sites' language (German), but it should not since my user profile language is English, which is different from my sites' language. This results in a mixed language user interface. My concern is that you should honor the users language settings over the sites' language.

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