Activate Wordpress User by Email | JetEngine | Crocoblock

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ต.ค. 2024
  • 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.co...
    Download #Elementor:
    elementor.com/...
    Download #Crocoblock:
    crocoblock.com...
    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/peru...

ความคิดเห็น • 90

  • @ceciliatabbi4218
    @ceciliatabbi4218 ปีที่แล้ว +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.

  • @pritampyare187
    @pritampyare187 ปีที่แล้ว +1

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

  • @neillewis487
    @neillewis487 ปีที่แล้ว

    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  ปีที่แล้ว

      Very good observation, thanks for sharing

  • @AidanJoyce
    @AidanJoyce 5 หลายเดือนก่อน

    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!!

  • @saaqisahafi1979
    @saaqisahafi1979 11 หลายเดือนก่อน

    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  11 หลายเดือนก่อน

      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.

  • @ShahbazAli-ni6bf
    @ShahbazAli-ni6bf 10 หลายเดือนก่อน +3

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

    • @AidanJoyce
      @AidanJoyce 5 หลายเดือนก่อน

      + 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.

    • @ALIMAHMA
      @ALIMAHMA หลายเดือนก่อน

      +1 would love to see that as well

  • @momohezekieltrump6835
    @momohezekieltrump6835 ปีที่แล้ว

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

  • @affiafridi
    @affiafridi ปีที่แล้ว +1

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

  • @notarmonbuchli7457
    @notarmonbuchli7457 ปีที่แล้ว +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  ปีที่แล้ว +1

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

    • @notarmonbuchli7457
      @notarmonbuchli7457 ปีที่แล้ว

      @@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.

  • @dmcsrbija5799
    @dmcsrbija5799 11 หลายเดือนก่อน +1

    How to make resend activation code button?

  • @usrPtP
    @usrPtP ปีที่แล้ว +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  ปีที่แล้ว +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.

    • @ohpeculiarlife
      @ohpeculiarlife ปีที่แล้ว +2

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

  • @gustavoruiz1097
    @gustavoruiz1097 ปีที่แล้ว +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  ปีที่แล้ว +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.

  • @aymericzambo1914
    @aymericzambo1914 ปีที่แล้ว

    Love your channel! You provide great insights! Thank you

  • @emmanuelbarronr
    @emmanuelbarronr ปีที่แล้ว +1

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

  • @muhammadaslan6256
    @muhammadaslan6256 ปีที่แล้ว +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

    • @MoxetKhanPK
      @MoxetKhanPK  ปีที่แล้ว

      Thank you, i am using cloudways hosting.

    • @muhammadaslan6256
      @muhammadaslan6256 ปีที่แล้ว

      @@MoxetKhanPK which plan you are using

    • @MoxetKhanPK
      @MoxetKhanPK  ปีที่แล้ว

      @@muhammadaslan6256 50$ a month

  • @9mmxd128
    @9mmxd128 ปีที่แล้ว

    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..

  • @rewdroid
    @rewdroid ปีที่แล้ว

    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  ปีที่แล้ว +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.

  • @Art-01
    @Art-01 ปีที่แล้ว +1

    Thank u so much. Please post more videos

  • @ALIMAHMA
    @ALIMAHMA หลายเดือนก่อน

    How to deal with the Dynamic Visibility in Bricks Builder? can not find this option, only conditions and there is nowhere to get the Query name on Conditions.

  • @ramproshadbiswas9686
    @ramproshadbiswas9686 ปีที่แล้ว

    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

  • @MsilikaleMsilanga
    @MsilikaleMsilanga ปีที่แล้ว

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

  • @rmyantilable
    @rmyantilable ปีที่แล้ว

    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.

  • @YaserAlhosani
    @YaserAlhosani ปีที่แล้ว +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  ปีที่แล้ว +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

  • @anthonyespino7214
    @anthonyespino7214 7 หลายเดือนก่อน

    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  7 หลายเดือนก่อน

      Hi this is called dropbar in jetelement

  • @visualmodo
    @visualmodo ปีที่แล้ว

    Truly good work!

  • @romaruiz2009
    @romaruiz2009 ปีที่แล้ว

    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 ปีที่แล้ว

      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";}}
      }

  • @mojiabby
    @mojiabby 10 หลายเดือนก่อน

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

    • @MoxetKhanPK
      @MoxetKhanPK  10 หลายเดือนก่อน

      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 10 หลายเดือนก่อน

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

  • @mdhuvobd2010
    @mdhuvobd2010 ปีที่แล้ว

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

    • @MoxetKhanPK
      @MoxetKhanPK  ปีที่แล้ว

      Hello, not yet, but planning.

  • @eaipitol
    @eaipitol ปีที่แล้ว

    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  ปีที่แล้ว

      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.

  • @hmiqbalhussain1
    @hmiqbalhussain1 ปีที่แล้ว

    Very Helpful Tutorial

  • @WickyDesign
    @WickyDesign ปีที่แล้ว

    Great Tutorial!

  • @baliflorent6971
    @baliflorent6971 ปีที่แล้ว

    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  ปีที่แล้ว +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 ปีที่แล้ว

      @@MoxetKhanPK OK thanks.

  • @sandeepcv2097
    @sandeepcv2097 ปีที่แล้ว

    Very nice tutorial as usual, bro 👌

  • @novranaditia
    @novranaditia ปีที่แล้ว

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

    • @MoxetKhanPK
      @MoxetKhanPK  ปีที่แล้ว

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

  • @Marvelteecee23
    @Marvelteecee23 ปีที่แล้ว

    This is gold 🥇

  • @FaridBouchama
    @FaridBouchama ปีที่แล้ว

    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  ปีที่แล้ว

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

  • @nylebroad2623
    @nylebroad2623 ปีที่แล้ว +1

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

  • @bizfunnel
    @bizfunnel ปีที่แล้ว

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

    • @MoxetKhanPK
      @MoxetKhanPK  ปีที่แล้ว

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

    • @bizfunnel
      @bizfunnel ปีที่แล้ว

      @@MoxetKhanPK Thanks🙏

  • @gzmpp
    @gzmpp ปีที่แล้ว

    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.

    • @MoxetKhanPK
      @MoxetKhanPK  ปีที่แล้ว

      Please check your smtp settings.

  • @MrWLKNSN
    @MrWLKNSN ปีที่แล้ว

    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  ปีที่แล้ว

      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 ปีที่แล้ว

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

    • @MoxetKhanPK
      @MoxetKhanPK  ปีที่แล้ว

      @@MrWLKNSN yes will cover it

    • @ohpeculiarlife
      @ohpeculiarlife ปีที่แล้ว

      Have you made this video @MoxetKhanPK?

  • @FlymotionDesign
    @FlymotionDesign 7 หลายเดือนก่อน

    what plugin is used to differentiate user roles?

    • @MoxetKhanPK
      @MoxetKhanPK  7 หลายเดือนก่อน

      Its called Members i guess

    • @FlymotionDesign
      @FlymotionDesign 7 หลายเดือนก่อน

      @@MoxetKhanPKWhat a name the plugin? Members?

    • @FlymotionDesign
      @FlymotionDesign 7 หลายเดือนก่อน

      @@MoxetKhanPKMembers - Membership & User Role Editor Plugin ?

    • @MoxetKhanPK
      @MoxetKhanPK  7 หลายเดือนก่อน

      Yes@@FlymotionDesign

  • @mariberceritah8925
    @mariberceritah8925 ปีที่แล้ว

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

    • @MoxetKhanPK
      @MoxetKhanPK  ปีที่แล้ว

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

    • @mariberceritah8925
      @mariberceritah8925 ปีที่แล้ว

      @@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  ปีที่แล้ว +1

      @@mariberceritah8925 it works with this method

    • @mariberceritah8925
      @mariberceritah8925 ปีที่แล้ว

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

    • @mariberceritah8925
      @mariberceritah8925 ปีที่แล้ว

      @@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?

  • @soyeb_ali
    @soyeb_ali ปีที่แล้ว

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

    • @MoxetKhanPK
      @MoxetKhanPK  ปีที่แล้ว

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

  • @razakahmad12
    @razakahmad12 7 หลายเดือนก่อน +1

  • @lilian6171
    @lilian6171 ปีที่แล้ว

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

    • @MoxetKhanPK
      @MoxetKhanPK  ปีที่แล้ว

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