I see this has been addressed before, such as http://formidablepro.com/help-desk/adding-default-website-address-from-user-data/ but it looks like this was for a previous version of the registration addon?
I can’t figure out how to send the web address field to the website field already in WP. I have added the user meta field “user_url” as shown in the screenshot.
A related question: would there be a way to add the http:// prefix automatically so that users won’t get an error if they delete it from the field? (I usually tab through forms which highlights the default value and overwrites it when I go to type).
Thanks!
Andrew





October 29, 2012 at 2:45 pm
You'll need to also use dynamic default values if you want the values from the profile to show when filling out the form for the first time. [user-meta key=user_url]
http://formidablepro.com/knowledgebase/using-dynamic-default-values-in-fields/
Please see this related post about the http:
http://formidablepro.com/help-desk/can-i-change-the-way-a-url-is-evaluated/
October 29, 2012 at 2:54 pm
Thanks for the quick reply. I think I explained my question poorly, let me try again. When someone fills out this form they won't have a user profile yet. I want formibable to populate the user_url based on their input, same as it does for the name and email. I was able to populate the description field no problem with the setting you see in that screenshot. However the website does not appear anywhere in the users profile.
October 30, 2012 at 12:38 pm
Yep, it looks like this needs a change that will be included in the next version. Please open formidable-registration/FrmRegAppController.php and change lines 445-449ish from:
if(function_exists('update_user_meta'))
update_user_meta($user_ID, $meta_key, $meta_val);
else
update_usermeta($user_ID, $meta_key, $meta_val);
to:
if($meta_key == 'user_url'){ wp_update_user(array('ID' => $user_ID, 'user_url' => $meta_val)); }else{ if(function_exists('update_user_meta')) update_user_meta($user_ID, $meta_key, $meta_val); else update_usermeta($user_ID, $meta_key, $meta_val); }November 12, 2012 at 7:59 am
Makes sense! Thanks!
Topic closed.