We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3866 ☆ A M B ☆
    • 350 Posts
    Hi there,
    I've pretty much got all my Login and Registration working perfectly except the posthook doesn't actually return the 'username' or the 'email' in the register custom email.

    The code comes from the last changes made on Nov 29, 2010 on the Login.Using Pre and Post Hooks page.

    $message = 'Hi, a new User signed up: '.$hook->getValue('username')
     . ' with email '.$hook->getValue('email').'.';


    Have tried a couple of different options but these don't work - I really do need to start getting to grips with php but I just seem so busy learning everything else smiley

    Thanks in advance. [ed. note: boomerang last edited this post 14 years, 11 months ago.]
      Helen Warner
      Number one pixel!
      Proud to be linked with MODX at Crimson Pixel
      • 36666
      • 19 Posts
      From the FormIt docs:

      $hook->setValue
        • 3866 ☆ A M B ☆
        • 350 Posts
        Tried that - still nothing returned. I've logged a bug here http://bugs.modx.com/issues/5823
          Helen Warner
          Number one pixel!
          Proud to be linked with MODX at Crimson Pixel
          • 3866 ☆ A M B ☆
          • 350 Posts
          Latest Login version 1.7.0 pl now fixes problem
            Helen Warner
            Number one pixel!
            Proud to be linked with MODX at Crimson Pixel