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 have new applicants show email address by default?

I'd like new applicants to automatically have the UtilizeEmail and ShowName fields set to "1" which is enabled. Even if I change the email default to "1" in the database, it still insists on putting in a "0" for disabled. It does look like names are already set to be enabled by default.

Any ideas?

Thanks!
- Matt.

Comments

  • try this:

    in library/People/People.Class.User.php, line 176, change this
    $this->UtilizeEmail = ForceBool(@$DataSet['UtilizeEmail'], 0);
    to this
    $this->UtilizeEmail = ForceBool(@$DataSet['UtilizeEmail'], 1);

    but be aware that you'll have to make the change again next time mark updates that file.
  • That works great, thank you. I was even browsing that file, but your suggestion didn't occur to me. The only downside is that the UtilizeEmail change is not written to the database.

    I'll probably stick with version 1.0.0 for the time being, so no worry about changes being overwritten. I've already modified a few other areas too as needed (read-only categories, etc).
  • OK, this seems to work, but now I can't hide my email... is there a way to show the email by default for newly registered users, but also allowing then to turn this option off?
  • anyone?
This discussion has been closed.