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

    I need to receive in the notyfication mail more informations than the one provided by the message for a new web user (i.e +uid+]
    [+ufn+] ) I would need some custom fields to be send to like gender, mobile phone, occupation etcc..

    How can I pass from the [+user.phone+] to something like [+Uphone+] etc.. ??

    Thanks a lot in advance

    Alchime
      • 867
      • 241 Posts
      I might have found what i’m looking for : smiley

      I (scotty) copied and pasted text from another part of my registration service and I did not check it thoroughly.

      the message to the user is stored in $message. The message to the administrator is stored in $notification. After replacing [+post.whatever+] in the message, I stored it in $message instead of $notifications. Oops!

      If you want to fix this immediately, try this...

      I have added a lot of code, so line numbers might not be exact, but AROUND line 680 to 690(?) there should be a block of code that looks like this:
      Code:

      foreach ($_POST as $name => $value)
      {
      $toReplace = ’[+post.’.$name.’+]’;
      $message = str_replace($toReplace, $value, $notification);
      }


      REPLACE that with this:
      Code:

      foreach ($_POST as $name => $value)
      {
      $toReplace = ’[+post.’.$name.’+]’;
      $notification = str_replace($toReplace, $value, $notification);
      }
        • 867
        • 241 Posts
        Yep that was it (in weblogin class) smiley