Activate Wordpress User by Email | JetEngine | Crocoblock

Sdílet
Vložit
  • čas přidán 30. 06. 2023
  • Today we will discuss how to activate user account in wordpress using email. We will be using JetEngine to create meta boxes for users & send email notifications with JetFormBuilder using hooks.
    Code Used in Tutorial:
    softemblems.com/activate-word...
    Download #Elementor:
    elementor.com/?ref=16401
    Download #Crocoblock:
    crocoblock.com/?ref=4088
    Need to build dynamic websites?
    softemblems.com
    Follow me on Social Media
    Facebook: / mxtchamkani
    Instagram: / moxet
    Twitter : / sokaniwaal
    Track: Peruvian Woods - Dave Osorio [Audio Library Release]
    Music provided by Audio Library Plus
    Watch: • Peruvian Woods - Dave Osorio | Free B...
    Free Download / Stream: alplus.io/peruvian-woods
  • Věda a technologie

Komentáře • 88

  • @ceciliatabbi4218
    @ceciliatabbi4218 Před rokem +6

    You make a lot of great tutorials and cover lots of things that other channels do not :) One of my fave subs of all time.

  • @momohezekieltrump6835

    No joke! MO's tutorials are top rated. 💪💪💪

  • @pritampyare187
    @pritampyare187 Před 11 měsíci +1

    I am new in WordPress. Your video is very helpful. Thank you. ❤❤❤

  • @AidanJoyce
    @AidanJoyce Před 3 měsíci

    EXCELLENT - It's only a matter of time before your following significantly grows, especially if you keep make great tutorials like this. TOP CLASS JOB.
    THANK YOU SO MUCH FOR SHARING - MORE MORE MORE!!

  • @aymericzambo1914
    @aymericzambo1914 Před 11 měsíci

    Love your channel! You provide great insights! Thank you

  • @affiafridi
    @affiafridi Před rokem +1

    published a vid in eid days. Thank you so much 😍.

  • @MsilikaleMsilanga
    @MsilikaleMsilanga Před rokem

    You are the BEST man, thank you for a great tutorial.

  • @visualmodo
    @visualmodo Před rokem

    Truly good work!

  • @sandeepcv2097
    @sandeepcv2097 Před rokem

    Very nice tutorial as usual, bro 👌

  • @WickyDesign
    @WickyDesign Před rokem

    Great Tutorial!

  • @muhammadiqbalhussain1483
    @muhammadiqbalhussain1483 Před 11 měsíci

    Very Helpful Tutorial

  • @Art-01
    @Art-01 Před rokem +1

    Thank u so much. Please post more videos

  • @Marvelteecee23
    @Marvelteecee23 Před 11 měsíci

    This is gold 🥇

  • @emmanuelbarronr
    @emmanuelbarronr Před rokem +1

    Exelente, felicidades por el gran conocimiento que tienes de Jet Engine y Los Query Builders.

  • @neillewis487
    @neillewis487 Před 9 měsíci

    This is a great tutorial. I wanted to add a note about a problem that I had with the query.
    If the activation code generated contains certain symbols like "#" (in my case), it will break query variable. For example if activation code generated was "12345#abcd". The query would be comparing the user meta code: "12345#abcd" to "12345"... which are not equal.
    For anyone implementing this I would suggest to stick to alphanumeric codes and remove any special characters that may break the url query variable from the wishlist code.

    • @MoxetKhanPK
      @MoxetKhanPK  Před 9 měsíci

      Very good observation, thanks for sharing

  • @rmyantilable
    @rmyantilable Před 9 měsíci

    Hello, nice to greet you, I ask you for a question or regarding a problem I have, I have a hierarchical filter with Jetsmartfilter, it works perfectly but I have the requirement that the filter selects be mandatory or that the apply filter button is not shown until they are all the select with information, have you ever had any of that? Do you have any idea how I can do it?
    Beforehand thank you very much.

  • @notarmonbuchli7457
    @notarmonbuchli7457 Před rokem +1

    Now I can stop recording :) I solved this task in precisely the same way and I was about to record a tutorial. Very well explained and easy to follow. Keep up with such great tutorials.

    • @MoxetKhanPK
      @MoxetKhanPK  Před rokem +1

      Hello, thank you for sharing your views. Would love to watch such tutorial on your channel.

    • @notarmonbuchli7457
      @notarmonbuchli7457 Před rokem

      @@MoxetKhanPK Maybe I still do it, but I had the same approach. The only difference is that I check on the login page with a custom hook if the user is verified and only if I redirect to the dashboard.

  • @ShahbazAli-ni6bf
    @ShahbazAli-ni6bf Před 8 měsíci +2

    Record a complete tutorial how to develop dashboard like you did here please ❤️
    You are awesome 👏

    • @AidanJoyce
      @AidanJoyce Před 3 měsíci

      + 1 - That would be so nice. Let's see it.
      To really top it off, it could be done with Bricks as Elememtor slowly dies.

  • @dmcsrbija5799
    @dmcsrbija5799 Před 9 měsíci +1

    How to make resend activation code button?

  • @ramproshadbiswas9686
    @ramproshadbiswas9686 Před 10 měsíci

    Dear sir I also tried this same whey but not send email into user email. moreover user account create same time. Thanks for Your Video

  • @saaqisahafi1979
    @saaqisahafi1979 Před 8 měsíci

    Very good content, but something to note here is that anyone can inspect the page and check the code field value and activate any user with any email, is there a way to generate a code on user creation with a function and save in the DB without using the form builder so no one other than the user can see the code, I understand that it might not work with submit actions in formbuilder and we probably need to create a seperate function for that as well.

    • @MoxetKhanPK
      @MoxetKhanPK  Před 8 měsíci

      Yes you are right, the code is visible. The easiest hack is to have this code generated with hook & at the same time create user & send email but that is more complicated that's why our focus was a bit graphical approach.

  • @9mmxd128
    @9mmxd128 Před 11 měsíci

    Your videos very helpful 💯❤
    Please make a video on how to login without password (ex: token url login) or user a can request a code on Gmail to login with code..

  • @anthonyespino7214
    @anthonyespino7214 Před 4 měsíci

    Hello friend, greetings from Peru. A query which plugins or widgets you have used so that when you hover the cursor on your dashboard it shows you a popup of elements.

    • @MoxetKhanPK
      @MoxetKhanPK  Před 4 měsíci

      Hi this is called dropbar in jetelement

  • @gustavoruiz1097
    @gustavoruiz1097 Před rokem +1

    Excellent tutorial Moxet . One question, how do you address the activation_code in jet form with the verification page? Redirect to page?

    • @MoxetKhanPK
      @MoxetKhanPK  Před rokem +1

      The code comes from an email via URL, we then fetch the code from URL and compare it in query builder whether it exists or not. If exists we make a form which has only 1 field code which is hidden and get the value from same URL.

  • @usrPtP
    @usrPtP Před rokem +2

    Awesome work dude! Super useful content as usual. My only question is regarding the activation code generation on the front end using the jquery snippet, isn’t that a security concern to be able to see the generated code in the inspector ? 😮

    • @MoxetKhanPK
      @MoxetKhanPK  Před rokem +3

      Thank you, Yes it is not good practice i mentioned in the video as well. It can be done with hook as well, i might make a short video on how to do the code creation with hook instead of jquery.

    • @cbook8387
      @cbook8387 Před 11 měsíci +2

      @MoxetKhanPK
      Have you created the video, using hook?
      Thank you for all you do.

  • @michalbenda9398
    @michalbenda9398 Před rokem

    Super video! Please Is it possible to apply this also with woocomerce environment? or do I have to set every page that touches a registered user with dynamic visibility condition? Thank you

    • @MoxetKhanPK
      @MoxetKhanPK  Před rokem +1

      Thank you, Yes it can be done with hook to check directly with login form whether the user is active or not. If user is not active they can't login to woocommerce.

  • @muhammadaslan6256
    @muhammadaslan6256 Před rokem +1

    Man keep going you do awesome work with crocoblock we need to make tutorial about building this awesome dashboard you are using.
    Which hosting you are use

  • @romaruiz2009
    @romaruiz2009 Před rokem

    Hi, Congrats for this great tutorial! Question: How update the status to True, without button "Activate My Account"? (only using Code Validations). With this, is one less step for the user...Thks, Moxet

    • @romaruiz2009
      @romaruiz2009 Před rokem

      Hi Moxet, here a little variation, about the situation I described.
      add_action('template_redirect', 'cambiar_estado_cuenta');
      function cambiar_estado_cuenta() {
      if (is_page('verifica-cuenta') && isset($_GET['code'])) {
      $activation_code = $_GET['code'];
      //Check all users who has the Unique code from URL
      $users = get_users(array('meta_key' => 'code', 'meta_value' => $code));
      if(count($users)==1){
      $user_id = $users[0]->ID;
      //Update Status Switcher to True if match
      //update_user_meta( $user_id, 'status', 'true' );
      update_user_meta( $user_id, 'estado', 'true' );
      echo "User activated successfully!";
      }else{
      echo "Invalid Request, user not found";}}
      }

  • @FaridBouchama
    @FaridBouchama Před 10 měsíci

    Will this add-on help me create a registration for doctors, users, and nurses? How can a user file be created when he registers?

    • @MoxetKhanPK
      @MoxetKhanPK  Před 10 měsíci

      yes it will, there is no file in wordpress but a database entry.

  • @YaserAlhosani
    @YaserAlhosani Před 10 měsíci +1

    Thank you!
    For those who registered but did not receive the activation email, the link expires after 48 hours and will be automatically deleted. could you guide us on how to do it?

    • @MoxetKhanPK
      @MoxetKhanPK  Před 10 měsíci +1

      Yes it is possible but you might need an extra meta field which will insert the code as well as insertion time of the code, then run a cron-job with PHP which will fetch all those users who has inactive state & the datetime field is

  • @novranaditia
    @novranaditia Před 10 měsíci

    Hi friends, can you make a tutorial for making a login OTP using Crocoblock?

    • @MoxetKhanPK
      @MoxetKhanPK  Před 10 měsíci

      It has same concept, but you ll use 3rd party API for sending SMS

  • @mdhuvobd2010
    @mdhuvobd2010 Před rokem

    Hello Mr. Moxet Khan, Do you have any paid courses for WordPress Development?

  • @eaipitol
    @eaipitol Před rokem

    I have a question about a system with similar functionality.
    I need to make the user enter their name, email, and interests → Send a confirmation email → After confirming via email, they set their password to finalize account creation.
    Is it possible to do something similar?

    • @MoxetKhanPK
      @MoxetKhanPK  Před rokem

      Yes possible, in this tutorial in step 1 we are getting password from user, in that case add a static complex password so no one can guess/login.
      In step 2 where i showed Activate Account you need to add a field for password as well and update password that time.

  • @baliflorent6971
    @baliflorent6971 Před rokem

    Thanks. I have two important questions.
    1- how can we make the activation code sent in the email expire in 24 hours ?
    2- if the code generated in jQuery already exists in the users table, how can we regenerate a new code for the new registered user ?

    • @MoxetKhanPK
      @MoxetKhanPK  Před rokem +1

      1. You have to setup a cron job PHP file which runs every 24 hour and remove all codes from database.
      2. The sequence i used produce very unique code but even if you need in this case you need to verify with hook before sending new code.

    • @baliflorent6971
      @baliflorent6971 Před rokem

      @@MoxetKhanPK OK thanks.

  • @mojiabby
    @mojiabby Před 7 měsíci

    Very nice tutorial , how can I create a form for users to register with their mobile number instead of entering an email?

    • @MoxetKhanPK
      @MoxetKhanPK  Před 7 měsíci

      you need to use SMS API to send sms to the user mobile with the same link, the user need to verify from a link.

    • @mojiabby
      @mojiabby Před 7 měsíci

      How can I make the email field optional?@@MoxetKhanPK

  • @bizfunnel
    @bizfunnel Před rokem

    Is there any OTP verification option with jetengine form or jetformbuilder?

    • @MoxetKhanPK
      @MoxetKhanPK  Před rokem

      Same concept, instead of email send code via API to SMS

    • @bizfunnel
      @bizfunnel Před 11 měsíci

      @@MoxetKhanPK Thanks🙏

  • @razakahmad12
    @razakahmad12 Před 4 měsíci +1

  • @nylebroad2623
    @nylebroad2623 Před rokem +1

    booking appointments user dashboard front end for user manage doctor or patient plzzz add in second part

  • @FlymotionDesign
    @FlymotionDesign Před 4 měsíci

    what plugin is used to differentiate user roles?

  • @gzmpp
    @gzmpp Před rokem

    I followed the exact steps but my form doesn't show the success message, and doesn't email the activation code. However, the user information is saved in Wordpress.

  • @soyeb_ali
    @soyeb_ali Před rokem

    8:59 Can't they log in without activation after the user registered with a password

    • @MoxetKhanPK
      @MoxetKhanPK  Před rokem

      Yes they can login but they can't use your system, check at 23:32

  • @mariberceritah8925
    @mariberceritah8925 Před rokem

    Hello sir, Can u create user login with google account ?

    • @MoxetKhanPK
      @MoxetKhanPK  Před rokem

      It has ready made plugins which you can use called social logins.

    • @mariberceritah8925
      @mariberceritah8925 Před rokem

      @@MoxetKhanPK yeah, i tried it.. but does it work with the method you are using? because I want to do a little experiment

    • @MoxetKhanPK
      @MoxetKhanPK  Před rokem +1

      @@mariberceritah8925 it works with this method

    • @mariberceritah8925
      @mariberceritah8925 Před rokem

      @@MoxetKhanPK Thanks for the answer, must go on sir

    • @mariberceritah8925
      @mariberceritah8925 Před rokem

      @@MoxetKhanPK hello sir, I've tried it, but in the jetform account activation step (call hook) I can't see my user meta status has shifted to true, I've also pasted the add user activation code into my child theme, is there something I've missed?

  • @lilian6171
    @lilian6171 Před 11 měsíci

    It makes no sence to generate the activation code in the browser.

    • @MoxetKhanPK
      @MoxetKhanPK  Před 11 měsíci

      I know, you can use form hooks as well, i can't prepare everything ready on plate; do a bit research as well.

  • @MrWLKNSN
    @MrWLKNSN Před rokem

    Nice concept, but this isn't very "secure". If you know the url, for instance if you made one account using the full flow described, you have the url so you can basically start creating as many accounts as you want without doing the actual verification from an email (aka register any email you like). If this code could somehow be created serverside instead of in the browser, it would be perfect solution!

    • @MoxetKhanPK
      @MoxetKhanPK  Před rokem

      I totaly understand that, the code generation must be through hook so it is processed server size, the reason i used Jquery is to demonstrate how the logic works. Thankyou for our input.

    • @MrWLKNSN
      @MrWLKNSN Před rokem

      @@MoxetKhanPK Makes sense. Are you planning on having a demo on this?

    • @MoxetKhanPK
      @MoxetKhanPK  Před rokem

      @@MrWLKNSN yes will cover it

    • @cbook8387
      @cbook8387 Před 11 měsíci

      Have you made this video @MoxetKhanPK?