For some reason the user approved email that gets sent out is oddly formatted. The only thing that works is the 'a' tag for links. Inserting an image or even paragraph tags doesn't work.
Anyone else encounter this and any idea how to fix it?
For some reason the user approved email that gets sent out is oddly formatted. The only thing that works is the 'a' tag for links. Inserting an image or even paragraph tags doesn't work.
Anyone else encounter this and any idea how to fix it?
Hjsurk, I am also trying to integrate with a woo commerce install. I was beating my head against the wall trying to accomplish the same thing, since my shop is a business to business and I can't have just anyone making purchases. I also want as much data in the email as possible so I don't have to bounce around too much.
I ended up solving it with two approaches. I have a heavily customized situation, and it turned out that my customer is setup as a user in one step, then a lot of the important details from the registration page are added to the user meta in following steps. However, the NUA scripts fire between these two stages.
To build a direct link to the edit-user.php page in the admin, I added a tag to the email_tags array (just like the code examples above). I used the $attributes['user_login'] as the argument for get_userdatabylogin(), then build out the link string with the id.
For all the meta data that hasn't been inserted yet when this code apparently fires, I just accessed the post object directly inside the new_user_approve_notification_message_default filter. I was able to get all the data I wanted into the registration notification email this way.
Hello there,
Congrats for your wonderful plugin.
As the title says, i would like to have another email sent to user right after his registration. Notifying him about the approval stage.
Thanks a lot.
Hi!
I'm using a function to avoid auto log in of new woocommerce users in a multilanguaje site Spanish/English/French.
The user must be approved before he can log in, so when he registers the myaccount page where he has registered is loaded again and displays a text message.
I'm using this line of code:
`wp_logout();
return get_permalink(woocommerce_get_page_id('myaccount')) . "?approved=false";`
The problem is when an english or french user fills in the form they are redirected to the main language myaccount page which is in spanish. I'd like to know if there is some piece of code I can add to the above to force the redirection to load the page in the user's language.
Thanks!
Daniel
Hi!
Is this software multisite compatible?
Thanks in advance for the answer!
You will need to assign the user (whom you want to manage new/existing users) with 'edit_users' permission and change his role to 'editors'. Edit Users capability alone is not enough.
PS: I have not checked if any other role also will work.
Hello,
I use the plugin Approve New Users in my website and before I import the users I select the option that I want them to be approved when imported. Nevertheless, the imported users are always pending.
How do I solve this problem?
I use the last version of the abovementioned plugin, this plugin and Wordpress.
Thanks!
https://wordpress.org/plugins/import-users-from-csv-with-meta/
Jeina,
Yes I have seen and it seems to be broken.
I am not online those days, next Thursday or Friday I try to fix it and update a new version.
Sorry for the delay.
Hey Javier,
Thanks a lot!
Jeina
Done I send the update now.
Javier, have you noticed what caused this issue, because I'm currently using bbPress and BuddyPress on a multi-site and the newly imported users aren't visible in All users section, while if I try the very same csv on a plain WordPress everything is working fine.
@Ivan Stefanov: This is not your topic & has been resolved. If you require assistance then, as per the Forum Welcome, please post your own topic.
i just imported some users, using latest version: 1.9.3, and even tho i'm specified approve when imported, none are:-\
has the update u sent 2 days ago not made it into the latest version?
This is included in the code, look at:
// New User Approve
if( $approve_users_new_user_appove == "approve" )
update_user_meta( $user_id, "approved", true );
else
update_user_meta( $user_id, "pending", true );
so why do these imported users show pending?
brg527 Barbara Greco brg527@ Subscriber 0 pending None
brian.payne Brian Payne brian.payne@ Subscriber 0 pending None
cakeracer Ruth Wahl cakeracer@ Subscriber 0 pending None
cbstaunton1 Charles Staunton cbstaunton1@ Subscriber 0 pending None
charles.markert Charles Markert charles.markert@ Subscriber 0 pending None
No idea :s, I can give you a proffessional service to see what's happening in your system.
Hi Josh,
I wanted to bring another issue to your attention.
On the settings page this plugin calls home to populate the meta boxes for “Updates”, “Support”, and “Feedback”.
The code in question is in the file ‘new-user-approve/includes/admin-approve.php’ on lines 219-224 and 254-261:
public function add_meta_boxes() {
add_meta_box( 'nua-approve-admin', __( 'Approve Users', 'new-user-approve' ), array( $this, 'metabox_main' ), 'users_page_new-user-approve-admin', 'main', 'high' );
add_meta_box( 'nua-updates', __( 'Updates', 'new-user-approve' ), array( $this, 'metabox_ajax' ), 'users_page_new-user-approve-admin', 'side', 'default', array( 'url' => 'http://newuserapprove.com/wp-json/posts/52' ) );
add_meta_box( 'nua-support', __( 'Support', 'new-user-approve' ), array( $this, 'metabox_ajax' ), 'users_page_new-user-approve-admin', 'side', 'default', array( 'url' => 'http://newuserapprove.com/wp-json/posts/54' ) );
add_meta_box( 'nua-feedback', __( 'Feedback', 'new-user-approve' ), array( $this, 'metabox_ajax' ), 'users_page_new-user-approve-admin', 'side', 'default', array( 'url' => 'http://newuserapprove.com/wp-json/posts/56' ) );
}
public function metabox_ajax( $post, $metabox = array() ) {
$response = wp_remote_get( $metabox['args']['url'] );
if ( wp_remote_retrieve_response_code( $response ) == 200 ) {
$body = wp_remote_retrieve_body( $response );
$details = json_decode( $body );
print $details->content;
}
}
As you’re probably aware from the plugin developer guidelines, that’s kindof a big deal, as they don’t want us to be doing that because of privacy and security risks.
I realize you most likely mean no harm and probably aren’t collecting any data with this, but a savvy/deceptive developer could do just that.
According to the plugin developer guidelines, in rule 7, it says:
No “phoning home” without user’s informed consent. This seemingly simple rule actually covers several different aspects:
…
- All images and scripts shown should be part of the plugin. These should be loaded locally. If the plugin does require that data is loaded from an external site (such as blocklists) this should be made clear in the plugin’s admin screens or description. The point is that the user must be informed of what information is being sent where.
Thanks in advance for fixing this!
– Scott
https://wordpress.org/plugins/new-user-approve/
Since ‘create_new_user’ uses ‘register_post’ it validates the registration form before ‘registration_errors’ fires. This only permits custom validation to work if the username or email has errors. If they don’t, the form will ignore any function with the hook ‘registration_errors’. The WordPress website states to never validate forms using ‘register_post’. So, my question is how do I add custom validation? Should i just add to to the core functions of the plugin like so:
public function create_new_user( $user_login, $user_email, $errors ) {
$errors->add( 'demo_error', __( '<strong>ERROR</strong>: This is a demo error.', 'my_textdomain' ) );
if ( $errors->get_error_code() ) {
return;
}
// create the user
$user_pass = wp_generate_password( 12, false );
$user_id = wp_create_user( $user_login, $user_pass, $user_email );
if ( !$user_id ) {
$errors->add( 'registerfail', sprintf( __( '<strong>ERROR</strong>: Couldn’t register you... please contact the <a href="mailto:%s">webmaster</a> !' ), get_option( 'admin_email' ) ) );
}
}
What are my options. Is this code really unsafe like the WordPress site states?
https://wordpress.org/plugins/new-user-approve/
For some reason the user approved email that gets sent out is oddly formatted. The only thing that works is the ‘a’ tag for links. Inserting an image or even paragraph tags doesn’t work.
Anyone else encounter this and any idea how to fix it?
https://wordpress.org/plugins/new-user-approve/
Hello there,
Congrats for your wonderful plugin.
As the title says, i would like to have another email sent to user right after his registration. Notifying him about the approval stage.
Thanks a lot.
https://wordpress.org/plugins/new-user-approve/