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.
Default avatar missing?

Hi all! Quick question, I just noticed that my users default avatar is missing...in fact it appears the script is not even calling for one as the space where the avatar would be is totally missing? Any ideas? If the user uploads an image it will appear just fine...but I would like the default to at least be present until the user decides to upload an image. Thanks in advance!
0
Comments
What version number of Vanilla are you running?
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
Version 2.0.18.10
The default action for users with no avatars is to return nothing. You can change this by using a plugin that defines the
UserPhotoDefaultUrl()
function, or define it yourself in your bootstrap file.Popular plugins that do this are the Gravatar plugin (which should be included in your base Vanilla install) and the Vanillicon plugin.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
The default user image is located in dashboard/design/images/usericon.gif
If you enable Gravatar , the default.gif is the one called. Maybe the one in the dashboard can be renamed to default.gif instead of usericon.gif . But one way to see is if it gives a 404 on the default.gif which is what it was called before I think...
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Hmmm...I don't have Gravatar at all in my list of plugins. The default user icon was present at one point recently...I must have deleted the Gravatar plugin that was included on the base install on accident maybe...I just tried to install a gravatar plugin found via Vanilla (not supported) and it does nothing but give fatal errors once uploaded to the plugin folder. Where can I get the gravatar plugin that came with the base install?
Sadly I changing the name doesn't do anything because I don't even have gravatar to enable...
Simply download a new copy of the vanilla core 2.0.18.10 and extract Gravatar from the plugins and upload it to your server then enable it.
http://vanillaforums.org/addon/vanilla-core-2.0.18.10
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Very true vrijvlinder, it is the simple things I tend to overlook:-)
I think there is also a $Configuration or should be one for the default user pic. I could swear I saw it somewhere before. Maybe as some other plugin somewhere...else
That would be a cool plugin to be able to upload your own pic in the dashboard to replace the default. I use one on the wordpress installation I made for a client. It is called default avatar. And you can choose some others or use your own.
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
That would be a great plugin for sure. I uploaded the base gravatar plugin and enabled it. The default image shows in the activity portion but not in the profile. Not a big deal I guess as long as there is something shown in discussions and activity.
Yes it will not show in the profile, that would be weird no? You can replace the default image with your own in gravatar just call it the same name. In other words create your own default.gif then upload it to overwrite the original with the one you made.
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
I don't know if this will help
http://vanillaforums.org/discussion/comment/193315/#Comment_193315
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
I don't know if this will help
http://vanillaforums.org/discussion/comment/193315/#Comment_193315
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
All good info! Thank you all! I have it all working and will create a neat avatar and upload as the default just for fun and to be a tad different!
You can change the default value for the field
Photo
of the tableGDN_User
to point to your default avatar. This way all new users would have a default picture. You would have to make an update query though to fill all rows where Photo is nullyes, I wonder if their knowledge has improved ....nope
I will check that out p , next time please just post the code here to avoid going back there .... the filters for bothersome content and people is not functional yet ....lol
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
@cpositive Here is a simple plugin to change the default avatar if you do not have gravatar or the others enabled.
http://vanillaforums.org/addon/defaultavatar-plugin
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌