https://www.ads-software.com/plugins/simplr-registration-form/
]]>https://www.ads-software.com/plugins/simplr-registration-form/
]]>The goal was to have clients access a registration form from a widget in the sidebar, submit their info, get an email asking them to verify their email address, while I get a notification that someone has just signed up and I need to approve them, and once I login and approve them as a “client”, they receive an email letting them know they are approved with a temporary password.
Plugins used: Sidebar Login –> Simplr User Registration Form Plus –> New User Approve –> and Register Plus Redux, which I deactivated because it seemed useless.
It’s working fine except admin isn’t receiving notification emails and user is being sent a temporary password BEFORE approval.
I don’t know php, but I suspect that the FIX is too simple to hire someone to alter it. I think this is the problem code. Any suggestions?
//notify admin of new user
$userdata = get_userdata( $user_id );
$data = array_merge( (array) $userdata->data , $data );
simplr_send_notifications($atts,$data,$passw);
$extra = "Please check your email for confirmation.";
$extra = apply_filters('simplr_extra_message', __($extra,'simplr-reg') );
$confirm = '<div class="simplr-message success">Your Registration was successful. '.$extra .'</div>';
//Use this hook for multistage registrations
do_action('simplr_reg_next_action', array($data, $user_id, $confirm));
//return confirmation message.
return apply_filters('simplr_reg_confirmation', $confirm);
}
function simplr_send_notifications($atts, $data, $passw) {
global $simplr_options;
$site = get_option('siteurl');
$name = get_option('blogname');
$user_name = @$data['username'];
$email = @$data['email'];
$notify = @$atts['notify'];
$emessage = @$atts['message'];
$headers = "From: $name" . ' <' .get_option('admin_email') .'> ' ."\r\n\\";
wp_mail($notify, "A new user registered for $name", "A new user has registered for $name.\rUsername: $user_name\r Email: $email \r",$headers);
$emessage = $emessage . "\r\r---\r";
if(!isset($data['password'])) {
$emessage .= "You should login and change your password as soon as possible.\r\r";
}
$emessage .= "Username: $user_name\r";
$emessage .= (isset($data['fbuser_id']))?'Registered with Facebook':"Password: $passw\rLogin: $site";
if( @$simplr_options->mod_on == 'yes' AND @$simplr_options->mod_activation == 'auto') {
$data['blogname'] = get_site_option('blogname');
$data['link'] = get_home_url( $blog_id, '/?activation_key='.$data['activation_key'] );
$content = simplr_token_replace( $simplr_options->mod_email, $data );
$subject = simplr_token_replace( $simplr_options->mod_email_subj, $data );
$headers = "From: ".get_option('admin_email')." \n";
wp_mail( $data['user_email'], $subject, $content, $headers);
} else {
$emessage = simplr_token_replace( $emessage, $data );
wp_mail($data['email'],"$name - Registration Confirmation", apply_filters('simplr_email_confirmation_message',$emessage), $headers);
}
}
]]>Being spanish (espa?ol) my native language, i expected an any language support translations, so i sugest this addon to the plugin, and i can do the translation to spanish for free (of course) in order to help this plugin reach the top!
Now, the only solution i found to this problem guys, is by editing the code on the files: simplr_form_functions.php and mod.php (among others less important files)
WARNING: DO IT ONLY IF YOU HAVE THE RIGHT KNOWLEDGE WITH PHP!!! DO NOT TOUCH A SINGLE LINE COS YOU CAN BREAK THE PLUGIN!!!
https://www.ads-software.com/plugins/simplr-registration-form/
]]>https://www.ads-software.com/plugins/simplr-registration-form/
]]>Thanks
Stephen.
https://www.ads-software.com/extend/plugins/simplr-registration-form/
]]>For the record I’m using “Simplr User Registration Form.”
https://www.ads-software.com/extend/plugins/wp-recaptcha/
]]>Or, that the template path is wrong. Should it be like this?
@import url(“…/public_html/wp-content/themes/simplr/style.css”);
I know that the path doesn’t have to start from http.://… but it doesn’t work when I don’t write the full url.
Thanks for any help!
]]>Here’s a link to one of the category results so you can see what I mean: https://www.alidasaxon.com/?cat=39
]]>