Forum Replies Created
-
AuthorPosts
-
May 16, 2022 at 3:18 PM in reply to: โน๏ธSuggestion : Action before/after encoded string in wrap_function_call() #36041
Kevin
ParticipantHi Long, thanks for sharing,
suggestions for both filter name :
rwmb_mbb_before_php_output
rwmb_mbb_after_php_outputHope you're fine,
have a nice day
KevinFebruary 17, 2022 at 3:52 PM in reply to: โ Group Index starting by 4 rather than 1 in group title #33960Kevin
ParticipantMany thanks Long ๐
have a nice dayMay 10, 2021 at 1:37 PM in reply to: โ [rwmb_begin_html] is there any way to get the current config['id'] ? #28061Kevin
ParticipantHi Long,
finally found a way more secure than css, using
rwmb_get_registryand passing the form id to my hook,like that, i can loop through each unique form field using
rwmb_{$field_id}_begin_html, as therwmb_get_registry->getmethod loop only to the form i pass through my hookthanks for your time and help, you show me the way ๐
May 9, 2021 at 3:46 PM in reply to: โ [rwmb_begin_html] is there any way to get the current config['id'] ? #28043Kevin
ParticipantHi 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,
Kevin
ParticipantHi 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,
KLKevin
ParticipantHi 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,
KevinKevin
ParticipantThanks Anh
have a nice day
KKevin
Participantok, 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 THISand all works fine now.
Hope these helps
Thanks
KKevin
ParticipantHi 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,
KKevin
ParticipantSorry 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
Kevin
Participantjust to be sure i'm not missing anything, here's a pastebin
Kevin
ParticipantHi Anh,
i did, here's my code (set in fields, as i say, everything works fine on backend) :
thanks for your help
Kevin
ParticipantHi 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 buttonI 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 -
AuthorPosts