MyBB Community Forums

Full Version: Default Avatar
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Which template/setting do I go to so that people with no set avatar have a default avatar?
(2010-01-17, 04:51 AM)Dennis Tsang Wrote: [ -> ]Give this a try:
http://mods.mybboard.net/view/default-profile
Great mod. I use this and no problems at moment.
Thanks!
Hmm it seems that it wont add the default avatar to those who are already registered, how can I add it to all of the members without avatars?
Use this query:
UPDATE mybb_users SET avatar = 'images/noavatar.gif' WHERE avatar = '';

Best regards
NetHunter
ok thanks! SOLVED*
Also set a default for the avatar field in phpmyadmin. It's by far the easiest method to have a default avatar.
(2010-01-20, 01:22 AM)labrocca Wrote: [ -> ]Also set a default for the avatar field in phpmyadmin. It's by far the easiest method to have a default avatar.


Hi labrocca,

I tried setting Default avatar value in bb_users to ./images/avatar.png but nothing gets entered into the avatar field post user registration. Any help would be appreciated.

Regards,
-Marc
Set value images/avatar.png. Without ./ at the beginning.

Best regards
NetHunter
(2010-01-18, 05:56 PM)NetHunter Wrote: [ -> ]Use this query:
UPDATE mybb_users SET avatar = 'images/noavatar.gif' WHERE avatar = '';

Best regards
NetHunter

Don't foget to set avatardimensions and avatartype. Wink

Examples:

UPDATE `mybb_users`
SET `avatar` = 'images/avatars/supertux.gif',
`avatardimensions` = '120|102',
`avatartype` = 'gallery'
WHERE `avatar` =  '';

UPDATE `mybb_users`
SET `avatar` = 'http://community.mybboard.net/images/default_avatar.gif',
`avatardimensions` = '44|44',
`avatartype` = 'remote'
WHERE `avatar` =  '';
Pages: 1 2