Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

How to make email address visible by default?

edited July 2006 in Vanilla 1.0 Help
I couldn't find any options for doing this. Please advise. Thanks!


  • Options
    anyone, please?
  • Options
    MarkMark Vanilla Staff
    It depends on what you want, exactly.

    For example, you could create a new theme that just makes a minor change to the account.php template and changes this:

    <p>'.(($this->Context->Session->UserID > 0 && $this->User->UtilizeEmail) ? GetEmail($this->User->Email) : $this->Context->GetDefinition('NA')).'</p>

    To this:


    That way all emails will be visible all the time.

    But I imagine you just want the default to be visible and let people change it *after* that to their own personal preference. In this case, you'll have to actually change the source code of the library/People/People.Class.UserManager.php.

    Change line 229 from this:

    $s->AddFieldNameValue('UtilizeEmail', 0);

    to this:

    $s->AddFieldNameValue('UtilizeEmail', 1);

    Your third and final option is to either (a) wait for the next minor release of Vanilla or (b) get the latest source code from svn, because I've made that a configuration option for the next minor release.

    If you either wait for Vanilla 1.0.1 or get it from svn now, you can change this setting by adding the following line to your conf/settings.php file:

    $Configuration['DEFAULT_EMAIL_VISIBLE'] = '1';
This discussion has been closed.