Skip to:
Content
Pages
Categories
Search
Top
Bottom

Modifying Site Admin Mail

  • @cawoodm

    Participant

    The filter newuser_notify_siteadmin allows one to modify the mail Administrators receive when new users register.

    I have tried everything to access the custom profile fields to no avail. Is it possible that they are not written to the DB until after this filter is called? All SELECT statements in the filter returned no results but afterwards I ran the same SQL on the DB and got the fields.

    Next I tried adding visible fields to the register form using the signup_hidden_fields action. These fields should have been available as $_POST variables but were not. When I access $POST in the filter newuser_notify_siteadmin it’s completely empty.

    Why is it so difficult to enrich the admin mail with fields???

Viewing 2 replies - 1 through 2 (of 2 total)
  • @burtadsit

    Participant

    What are you trying to get from the profile fields? The new user info? All that filter gives you is the text of the message that it’s gonna send out. The user login name is embedded in there but that’s about the only way to get at it. You’d have to parse the text of the msg to get it out.

    @lokers

    Participant

    I am not sure if this is related to this topic, but this is the one and only post related to this function at all so I decided to write it here.

    Basically, I was trying to modify this function to put some more information about the registered user and pass this info in email to the admin. When you call the function somewhere in the content (template), it’s ok, it works. When you register new user – it doesn’t, it will not print these data. Weird, huh?

    On top of that, I don’t know why and it’s not the major thing, but I am using mailpress plugin to send the emails and apparently when calling this function from template it send nice html email but again, when user tries to register it sends plain text only.

    Any ideas where to start or how to fix this problem?

    Oh, btw, I am using this method to fetch data from database:

    $more_info = BP_XProfile_ProfileData::get_value_byid(7,$user_id);

    (and yes, it returns the field I need properly everywhere else)

    Thanks in advance

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Modifying Site Admin Mail’ is closed to new replies.
Skip to toolbar