• Resolved Alex Cicovic

    (@acicovic)


    Hi,

    We will be registering members on the back-end (no front-end registration/purchase). Is there a way to auto-generate passwords, as well as notify users by email upon registration from the back-end which will also contain their password?

    Finally, is it possible to send them the email in the back-end’s current language?

    Thanks!

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support mbrsolution

    (@mbrsolution)

    Hi,

    We will be registering members on the back-end (no front-end registration/purchase). Is there a way to auto-generate passwords,

    No, unfortunately you need to generate the password yourself.

    as well as notify users by email upon registration from the back-end which will also contain their password?

    The following documentation manually-adding-members-site should help you with your question above.

    Finally, is it possible to send them the email in the back-end’s current language?

    Are you talking about the sites default language?

    Regards

    Thread Starter Alex Cicovic

    (@acicovic)

    1. Could we get a “Generate Password” button next to the password fields when adding members? If you want to enroll 2oo members it is very time consuming to add passwords for everyone if you want them to have different passwords.

    2. I’m talking about the admin back-end’s current language, which can be different from the site default language as it is a per-user setting and users can change that from their WordPress profile (language setting). So in the scenario I’m describing, if an Administrator who has chosen Spanish as his language enrolls a member, the member would receive the confirmation mail in Spanish, if the Administrator has chosen French as his language the email would be sent in French, and so on.

    Thanks!

    Plugin Support mbrsolution

    (@mbrsolution)

    Hi, I have submitted a message to the plugin developers to investigate further your requests.

    Kind regards

    Thread Starter Alex Cicovic

    (@acicovic)

    To tailor it to my case, I’m trying to override admin_add.php view and then use the swpm_admin_end_registration_complete_user_data hook in order to send the translated emails.

    However, it seems that the path to admin_add.php is hardcoded in line 251 of class.swpm-members.php instead of using the SwpmUtilsTemplate::swpm_load_template() function which is used in other parts of the plugin to load views.

    Could the plugin’s admin views be also loaded using the SwpmUtilsTemplate::swpm_load_template() function? It seems not possible to tailor them otherwise except for writing code that will break with updates.

    Thank you!

    Thread Starter Alex Cicovic

    (@acicovic)

    To anyone having the same issue, I solved this by using the swpm_admin_registration_form_override filter and the swpm_admin_end_registration_complete_user_data action. However, this solution involves code duplication and a hack. It does not need changes to the plugin’s core though.

    Hi @acicovic,
    Thanks for sharing your solution. I would like to implement something like that. Can you share more details as to how to implement what you suggested? I am a programmer just not in the web space. So I am comfortable to follow any technical instructions.
    Thanks

    Thread Starter Alex Cicovic

    (@acicovic)

    @francoc30

    Are you in a hurry? I’m asking because I’m waiting to see if there’s a better solution, because my current solution is hacky and requires some code duplication which is best to be avoided.

    Let me know.

    @acicovic,
    I am not in a hurry. But I am not sure if SWPM developers are going to put this feature in their future version. So the wait could be long.
    On the other hand, I am trying learn more of the web developer side of things as I work my way through my website. So if you don’t mind, I would like to learn more of your solution.
    Regards

    Thread Starter Alex Cicovic

    (@acicovic)

    OK. Let’s make it wait for a few days and if I forget it send me a reminder.

    Thanks!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Back-end registration: password autogeneration and email notification’ is closed to new replies.