2015-08-31, 09:01 AM
I am working on a plugin, and I have this code to display avatars:
But if the default avatar path is different to default (or it isnt a png) then the image link will break. How would I make that default avatar link work with a custom path to a default avatar?
if (!empty($referral['avatar'])){
$avatar = htmlspecialchars_uni($referral['avatar']);
} else {
$avatar= $mybb->settings['bburl'].'/images/default_avatar.png';
}
But if the default avatar path is different to default (or it isnt a png) then the image link will break. How would I make that default avatar link work with a custom path to a default avatar?
Random Fish and Sims Maniac
MY PLUGINS
Help MyBBSupport help you - remember to mark your threads as solved
MY PLUGINS
Help MyBBSupport help you - remember to mark your threads as solved