Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Forcing User Profile Image
DansTooGood
New
Hello,
I'd like to disable all of my forum users ability to change their picture and also set it to a forced image URL, for example site.com/{username}.png, how could I go about doing this?
Thank you.
0
Comments
will prevent editing/changing of profile pics, once you set it.
$Configuration['Garden']['Profile']['EditPhotos'] = FALSE;
Unfortunately this prevents Admins from changing pics as well after it is set.
if the core had this then admins could add and edit all user pics, but user couldn't add or edit.
instead of this
https://github.com/vanilla/vanilla/blob/2.1/applications/dashboard/controllers/class.profilecontroller.php#L615
as far as naming - you would need to make more mods in core, or just manually change image filenames and usertable references.
not quite sure why the name of the user's photo is critical, you might want to explain.
If a user joins the name will be unique, and unless you are a mind-reader the photo won't be there anyways.
Unless you create something a home grown vanillicon and base it off of usernames.
or maybe you are looking for something like default avatar.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
btw
@vrijvlinder created this unique set of animatars, they may be available for purchase.
I believe its from the "altered state collection". great for post-hypnotic suggestions.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
a quick kluge.
it may work for you, however I am not supporting code.
<?php if (!defined('APPLICATION')) exit();
put all username photos in the plugins/CustomAvatar avatar folder.
and set the photo field in the user table to either to blank and it will read the photo from the folder as UserDefaultUrl
e.g.
plugins/CustomAvatar/DansTooGood.png
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Thank you
I'm having an issue now that the "New Discussion" button is showing to guests. Any idea where I could change this?
that would be a new discussion topic I think.
so did the plugin work for you?
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
@peregrine I downloaded a temporary addon that seemed to work.
If I experience problems or need more customization I'll be sure to use your plugin.