Support Forum ยป User Profile

Forum Replies Created

Viewing 13 posts - 16 through 28 (of 28 total)
  • Author
    Posts
  • KevinKevin
    Participant

    Hi Long, thanks for sharing,

    suggestions for both filter name :
    rwmb_mbb_before_php_output
    rwmb_mbb_after_php_output

    Hope you're fine,
    have a nice day
    Kevin

    in reply to: โœ…Group Index starting by 4 rather than 1 in group title #33960
    KevinKevin
    Participant

    Many thanks Long ๐Ÿ™‚
    have a nice day

    KevinKevin
    Participant

    Hi Long,

    finally found a way more secure than css, using rwmb_get_registry and passing the form id to my hook,

    like that, i can loop through each unique form field using rwmb_{$field_id}_begin_html, as the rwmb_get_registry->get method loop only to the form i pass through my hook

    thanks for your time and help, you show me the way ๐Ÿ™‚

    KevinKevin
    Participant

    Hi Long, thanks for your quick reply,

    i was aware of this, but more generally is it possible to traget the whole form the field ID is in ?

    thanks again,

    in reply to: โœ…[FRONT END SUBMISSION] Id on form rendered #23572
    KevinKevin
    Participant

    Hi Long,
    Thanks for your quick reply,
    i'll use the hook for now, and really hope that my feature requests will be implemented, that would be nice !

    have a nice day,
    KL

    in reply to: rwmb_get_registry() in network context #18050
    KevinKevin
    Participant

    Hi Anh,

    My code is called out of the box, as you may have noticed with wp-load.php being require on top of it.
    I am trying to get all fields IDs declared in several $meta_boxes to get all values for a specific post and child posts to create an excel export of it.

    Seems to work fine on a single install of wordpress, problem is the network is calling only the blog_id 1, even with the switch_to_blog(2) before my code.

    so i am pretty sure that the code is called after priority 20.

    Still trying to figure it out, but if you have any idea, that would be great ๐Ÿ™‚

    thanks for your help,
    Kevin

    in reply to: โœ…Group "std" doesn't work on frontend ? #16594
    KevinKevin
    Participant

    Thanks Anh

    have a nice day
    K

    in reply to: โœ…Group "std" doesn't work on frontend ? #16550
    KevinKevin
    Participant

    ok, i finally get it,

    in group-field.php, under the html() function, you have to check if $field['std'] isset or not

    line 108 :

    // Remove filter to child field meta value and reset class's parent field's meta.
            if(!isset($field['std']))://ADD THIS
            if ( empty( self::$meta_queue ) ) {
                remove_filter( 'rwmb_field_meta', array( __CLASS__, 'child_field_meta' ) );
            }
            endif;//AND THIS

    and all works fine now.

    Hope these helps
    Thanks
    K

    in reply to: โœ…Group "std" doesn't work on frontend ? #16549
    KevinKevin
    Participant

    Hi Anh, as far as i can get from now, by editing group-field.php child_field_std() function, i successfully show the array in the field, but i don't understand how to show them in two separate clone. any clue ?

    protected static function child_field_std( $parent, $child, $meta ) {
            // Respect 'std' value set in child field.
            if ( ! empty( $child['std'] ) ) {
                return $child['std'];
            }
    
                $meta = $parent['std'];
    
                foreach($meta as $k => $v):
                   $std[$k] = $meta[$k][$child['id']] = $v[$child['id']];
                endforeach;
    
                // $meta contains $parent['std'] or clone's std.
                //$std = isset( $meta[$child['id']] ) ? $meta[$child['id']] : '';
                return $std;
    
        }

    thanks for your help,
    K

    in reply to: โœ…Group "std" doesn't work on frontend ? #16484
    KevinKevin
    Participant

    Sorry i wasn' t clear enough in my previous answer, it sill not working on front end, even with the code set up in the previous pastebin

    in reply to: โœ…Group "std" doesn't work on frontend ? #16483
    KevinKevin
    Participant

    just to be sure i'm not missing anything, here's a pastebin

    https://pastebin.com/YRzuC38S

    in reply to: โœ…Group "std" doesn't work on frontend ? #16482
    KevinKevin
    Participant

    Hi Anh,

    i did, here's my code (set in fields, as i say, everything works fine on backend) :

    https://pastebin.com/heLuGZgS

    thanks for your help

    in reply to: Cannot create user with empty ID #13101
    KevinKevin
    Participant

    Hi Anh,

    Thanks for your quick reply.

    Yes, versions are up to date (MBAIO 1.6.18 and MB core 4.15.9), and no, no fields with ID email (both email fields i got are med_email and med_confirm_email).

    Here's my exact process :
    - create a quick theme, nothing but basics (wp_head(), wp_footer() & jQuery ok )
    - Created couples of mb with mb builder
    - Assign them to user type, it's ok and they show up in user profile in WP admin
    - create a post with [mb_user_profile_register id="inscription"] shortcode => message show up "Cannot create a user with an empty login name."
    - replace code with [mb_user_profile_info id="inscription"] (as i am connected, i thought it could be a reason ) => message show up "Cannot create a user with an empty login name."
    - remove id="inscription" from the shortcode [mb_user_profile_register] => show only message "Cannot create a user with an empty login name." and register button

    I am trying to create a register form with some custom fields, and a edit profile page where registered user can change their info.

    Thanks again ๐Ÿ™‚
    have a nice day

Viewing 13 posts - 16 through 28 (of 28 total)