I'm developing a site which has a multi step procedure for creating a site on a multisite install. This involves having the user first create a user account, then create their site at a later date.
When using the Registration Add-On to update the user account, a network site is not created, despite having the option selected under the Registration Add-On's Network Options.
A network site is created when the form is set up to create a new user.
I'm using WP 3.5.1, Gravity Forms 1.6.12 and Gravity Forms User Registration Add-On 1.5.beta1
I'm using the following code to pre-populate the user's first & last names:
add_filter('gform_field_value_user_firstname', create_function("", '$value = populate_usermeta(\'first_name\'); return $value;' ));
add_filter('gform_field_value_user_lastname', create_function("", '$value = populate_usermeta(\'last_name\'); return $value;' ));
function populate_usermeta($meta_key){
global $current_user;
return $current_user->__get($meta_key);
}
I'm using this to change pre-populated fields to readonly:
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery("li.gf_readonly textarea").attr("readonly","readonly");
jQuery(".gform_wrapper .readonly input").attr('readonly','readonly');
});
</script>
Any ideas?
Thanks heaps,
Cam