We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10313
    • 375 Posts
    Hi!

    I wonder if I can access the value of the newly registered user in the &notifyTpl. I have a registration form (with verifacation). On submitting the form, an admin receives the notification. And in that notification, I want to provide a link to a "manage profile" form, loaded with the data of the new user. The admin should check if the user is applicable and then set the "blocked" status to false.

    I have changed the webloginpe class so that a new user is always blocked as default.

    Is that possible? I’m using MODx 1.0.0 RC2, WebLoginPE 1.3.1.

    Thanks in advance
    Martin
      • 4310
      • 2,310 Posts
      You should be able to, using the $key variable.
      Around line 700 add :
      $notification = str_replace('[+ukey+]', $key, $notifyTpl);

      Then add the placeholder to yor notify template.
      Untested, but I’ve previously done something similar, so it might work laugh
        • 10313
        • 375 Posts
        Thank you very much!

        It works perfectly.

        Martin
          • 4310
          • 2,310 Posts
          Glad it worked for you Martin grin