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

Display E-Mail Address in Profile 1.1

Allows your users to display their e-mail address (if they want) in messages, member card or profile

  1. Chris D
    This add-on is not affiliated with XenForo Ltd.

    Please consider donating if you find this add-on useful.
    [​IMG]

    A lot of forum software allows your users to display their e-mail address, if they wish, in their message information, profile and other places.

    This adds that functionality to XenForo.

    NOTE: The e-mail address is ALWAYS hidden to guests.

    First and foremost, user privacy. Not every user will want to display their e-mail address, so let's give them the choice.

    Preference.PNG

    This add-on adds a custom user field (fully configurable by you in Admin CP > Users > Custom User Fields) to allow users in their preferences to show or hide their e-mail address.

    By default, for all users this field is not set to ensure their e-mail address is hidden unless they want to show it.

    The default behaviour of this add-on is to require this preference to be set and show it during registration. Again, you can change this in the Admin CP.

    Second of all, you can decide where you want the e-mail field to be shown. You can access these options in the Admin CP. By default, the e-mail address is shown in each user's message, the member card and in their profile.

    adminCP_options.PNG

    And finally, this is what it looks like:

    Message User Info
    Before
    message_before.PNG


    After
    message_after.PNG



    Member Card
    Before
    member_card_before.PNG


    After
    member_card_after.PNG



    Profile
    Before
    profile_before.PNG


    After
    profile_after.PNG


    I am 99.9% certain that most of you will hate the way it looks, but of course with something like this it will be up to you to style it to fit in with your site.

    I decided to make this relatively discreet and only considered compatibility with the default XenForo theme.

    To customise, all you need to do is edit the three templates:

    displayEmailAddress_member_card
    displayEmailAddress_member_view
    displayEmailAddress_message_user_info

    The little envelope icon is located:

    styles/DisplayEmailProfile/email.png

    HOW TO INSTALL

    1) Download the zip file. Extract its contents.
    2) Upload the contents of the upload folder to the root of your XenForo installation.
    3) Install using the XML file provided.

    Enjoy! :)
    Steve F, JVCode, RobinHood and 3 others like this.

Recent Reviews

  1. Shane Greer
    Shane Greer
    5/5,
    Version: 1.1
    Fantastic addition to Xenforo thankyou very much. Donation submitted.
    1. Chris D
      Author's Response
      Thanks so much Shane :)
  2. Gopala Subramanium
    Gopala Subramanium
    5/5,
    Version: 1.1
    Nice and Helpful...