MyBB Codes

Full Version: [Tip&Trick] Default Groups Avatar
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I came up with this solution on a request made at this thread:

http://www.forumsecurity.eu/showthread.php?tid=82

Go to the phpmyadmin at the cp of your host and then at the db where your forum resides on. Make a backup copy of your mybb_users table and then run the following query at the SQL tab.

PHP Code:[Highlight]
UPDATE mybb_users SET avatar 'images/avatars/image.gif',  avatartype 'gallery'avatardimensions '100|100' WHERE usergroup '4'

This will set a default avatar for all the members in the admin group. To do it for other groups, you can add more of Set avatar..... Where usergroups.... statements separated by commas, or run the query individualy by replacing the usergroup = '4' with the other group id''s that you want to hook them with up a default avatar.
Thank you!
It worked!
Reference URL's