1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How is email pulled from the database?

Discussion in 'XenForo Questions and Support' started by Stephen Melton, Aug 27, 2012.

  1. Hello everyone,

    I was wondering where in the code a user's email address is referenced in the db. My goal is to remove email's being stored in the DB (I can make a soap call to get their email from another place they've registered) and replace the spots where it's pulled with the soap call. Any help or insight is greatly appreciated.

    Thank you!
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    First you would look to the user datawriter:


    The _getFields() function defines all of the db columns for users which includes the email column.

    Then there is the user model which has some email functions:


    Those are the two big ones but there are many more. You need to search the contents of library/XenForo for "email".

    Rather than try to remove the emails I suggest synchronizing your two databases to write out email changes to XenForo's xf_user table. That way no software changes are required.
    Stephen Melton and Walter like this.
  3. Fantastic, thank you very much for the input!

Share This Page