celinehag
Forum Replies Created
-
Great, thanks for your reply and the recommendations. Very helpful.
Nice little piece of code! Works perfectly! You actually saved my day with this. Thank you so much.
I was getting pretty close to a solution yesterday myself. Only thing left was to iterate through the users. I like yours better, though because it let’s me specify the old_form_id.
$user_id = x; $new_form_id = y; $submitted_field = get_user_meta( $user_id, 'submitted', true ); $submitted_field['form_id'] = $new_form_id; $toupdate= array( 'form_id' => $new_form_id;, 'submitted' => $submitted_field ); foreach( $toupdate as $k => $new_val ){ update_user_meta($user_id, $k, $new_val,false); } UM()->user()->remove_cache( $user_id );
Hello @aswingiri
I managed to export users including all meta data with the pro version of said plugin.
Seems to work fine, even retain user_id is not a problem.
One thing I’m still struggling with and hoping you can point me in the right direction:
When users register on my UM site, they do this using the default registration form.
This form has a unique id which is referenced in wp_usermeta table for each user who has registered on my source site using meta_key ‘form_id’ and inside the meta_key ‘submitted’ array.
UM adds a quick link “Info” to the wp user admin screen.
Since the registration form id between source and destination differ, there is a mismatch and subsequently the information when clicking “Info” on user admin screen is no longer there. All that is displayed is the registration Date and the form id of the source system.
I tried changing the values in wp_usermeta in the database using phpMyAdmin, but this only has the effect that the “Info” Quick Link in wp user admin disappears altogether.
Any idea on how to get this working? Maybe some function to update registration form ids for all users.
Thanks for helping out.
Hagbard
OK, thanks for your reply. Will go with https://www.ads-software.com/plugins/import-users-from-csv-with-meta/ for starters and see how it goes.
thanks for the explanation. Now I unterstand!
I’m closing this topic as it is resolved.
Thanks! Your code correction works like a charm! I can now change passwords and all fields stay populated. How this is done by using isset() with update meta remains a mystery to me though.
Thanks again for your support.
thanks for responding!
I am using the code snippet exactly as shown in the link you sent me:
https://docs.ultimatemember.com/article/1770-extend-the-account-page-with-custom-fields
/** * Add custom fields to the main tab "Account" under the "E-mail Address" field. * Add this code to the file functions.php in the active theme directory. */ function um_account_custom_fields( $args, $shortcode_args ) { // Fields Meta Keys. $args .= ',birth_date'; $args .= ',country'; $args .= ',languages'; return $args; } add_filter( 'um_account_tab_general_fields', 'um_account_custom_fields', 10, 2 );
Like I described in my recent post:
Strangely the fields birth_date, country, languages show up and are able to store data entered?? These fields are not in the UM default registration form nor anywhere else in my configuration.
In the meanwhile I realized that I have ACF Plugin installed, no configuration though, but maybe these are default fields that come automatically with the installation of ACF?
I thought that in order to have custom fields on the account tab, I need to add custom fields in UM registration form and then use some code like the one I’d been using when the problem came up with password change causing the loss of data in these fields.
My own fields don’t show at all when I use the code you pointed out with my own meta keys as defined in my UM registration form:
/** * Add custom fields to the main tab "Account" under the "E-mail Address" field. * Add this code to the file functions.php in the active theme directory. */ function um_account_custom_fields( $args, $shortcode_args ) { // Fields Meta Keys. $args .= ',salutation'; $args .= ',job'; $args .= ',company'; return $args; } add_filter( 'um_account_tab_general_fields', 'um_account_custom_fields', 10, 2 );
I just tried using the code snippet with the args in the example instead of my own. Strangely the fields birth_date, country, languages show up and are able to store data entered?? These fields are not in the UM default registration form nor anywhere else in my configuration.
When I replace the code I’ve been using above with the snippet you pointed out – accordingly using my own custom fields as args – no custom fields at all show up on the account tab.
My setup ist latest version of WP and UM-Plugin.
Any ideas why this might not be working? Any additional settings needed?
Hi @champsupertramp,
Nice, thanks for the pointers. Will try to work it out. I’ll post my solution here in case I manage to make it work.
Best, Hagbard- This reply was modified 3 years, 5 months ago by celinehag.
Hi,
same problem with Carousel View. Very large spaces between individual events. Rolled back to 5.2.2.
Best to wait until fixed before upgrade.
Thanks for great plugin!
H.C.
Forum: Plugins
In reply to: [Glossary] Avada Header & Z-Index for TooltipHi Daniele,
thanks for your feedback. Avada uses fusion builder as the visual composer. It’s one of the more popular themes on themeforest.I’m surprised the issue hasn’t yet come up. I’m sorry I can’t provide a link to the site in question right now, but you could have a peek at the demo theme site here:
https://avada.theme-fusion.com/church/.
Cheers, Hagbard
Okay! Thanks for your reply. Sounds good! Cheers, Hagbard.
After “Resetting Section Settings” – which deletes all custom fields – and re-entering the custom field, this is what I get:
-> Custom field now shows on My Account Orders page. Fine!
-> Also shows on WooCommerce Orders Detail, but is read-only. Would be nice to edit here!
-> Does not show in WooCommerce Orders list preview modal. Would be nice to see here!Bug, missing feature, only premium? Any ideas welcome. Regards, Hagbard