malisakyle
Forum Replies Created
-
Hi Takayuki,
I would assume the OP means “does CF7 prevent html, JS or any other form of possible code from being submitted in the input fields, making inputs text only”.Malisa
Forum: Plugins
In reply to: [Theme My Login] Remove Personal OptionsThis really is nothing to do with TML.
To remove the Admin bar for all users except Admin, paste the following into your themes function file.
add_action('after_setup_theme', 'remove_admin_bar'); function remove_admin_bar() { if (!current_user_can('administrator') && !is_admin()) { show_admin_bar(false); } }OR, to remove for all users paste the following into the same into your themes function file.
show_admin_bar(false);Forum: Plugins
In reply to: [Theme My Login] Lost Password link problemJust checked and all seem to working fine??
Forum: Plugins
In reply to: [Theme My Login] Add Roles During RegistrationHi,
I think I found your (and mine now) problem.
Have you set the user to activate account via email?If so, this is the issue, regardless of what role they choose, standard WordPress action after activation is to set the role to whatever you have chosen in the admin settings “New User Default Role”.
This is happening to me know after I set “E-mail Confirmation” in the Moderation module.
I’m thinking maybe to add a temporary field in the usermeta and then add a function to the “wpmu_activate_user” hook once activation is complete to pull this user meta and update role to what they originally chose.
If I manage to sort out will post here.
Malisa
Forum: Plugins
In reply to: [Theme My Login] Add Roles During RegistrationHi,
Not 100% sure but I think you need towp_update_userandnot update_user_metaif (!empty($_POST['role'])) wp_update_user(array( 'ID' => $user_id, 'role' => $_POST['role'] ));Forum: Plugins
In reply to: [Theme My Login] Add Roles During RegistrationHi,
Not 100% sure but I think you need the following:
wp_update_user and not update_user_meta.if (!empty( $_POST['role'])) wp_update_user(array( 'ID' => $user_id, 'role' => $_POST['user_role'] ));