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.
default picture in profile
hello,
is there an extension, or any other "trick" to set a default picture in every users profile?
i don't want an empty div in the profiles which were not editet by their users.
when the user choose his own profile picture the default has to be gone.
thank you
0
This discussion has been closed.
Comments
That's probably a 10 line extension if you can find the right hook.
But if you want a default image if none is set, an even easier way would be to adapt the template. You wouldn't need to touch the user tables.
Make a copy of \themes\account_profile.php in a new folder of your own name and edit line 23 beginning: so that you have an if user picture display own user pic else display standard pic.
If you mean the gravatar, I believe that's called authIcon and you could apply the same principle for that too (also for the threads - see line 78 comments.php).
Afterwards you need to set vanilla to use your new theme. It will then use your modified files instead of vanilla's own. By working on a copy on a new theme, you don't need to hack vanilla's own files and you won't have the problem of your files being overwritten when vanilla is updated.