MyBB Community Forums

Full Version: Default User Avatar - Male & Female Avatars Using Conditionals or PHP?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello everyone,

So I followed the guide in this thread: http://demonate.com/thread-744.html for the file: inc/datahandlers/user.php

I would like to use either PHP or template conditionals to show a male avatar if the user is male, and female avatar if the user is female.

How would I convert the code below into male, and female avatars?

"avatar" => 'images/avatar.png',
"avatardimensions" => '100|100',
"avatartype" => 'gallery',
WOW, you're awesome! Thank you so much!