MyBB Community Forums

Full Version: /showteam - default avatar
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I'll take it real quick.

I changed the code at https://forum.hexcom.cz/showteam.php a bit and only the avatars uploaded by users shows up, but I'd like the default one to show as well as an alternative.
Hi,

what I would do:

search for the TD where the avatar default image would be, rename the default class to one exclusive, for example class="default_avatar"

Add the new class in your themes golbal.css
Copy the default data of the TD class into the "default_avatar" class and add a:
background-image: url('https://forum.hexcom.cz/images/default_avatar.png');

Remeber to set the width and height of the TD too, or the image will not show up.

And with this, if an user have an image it'll be above the default avatar, and if he has not, the default avatar will show up.
I can't see a MyBB link back from your site.
Support should not be provided to you unless you comply Support Eligibility Policy.
(2018-04-30, 06:47 PM)effone Wrote: [ -> ]I can't see a MyBB link back from your site.
Support should not be provided to you unless you comply Support Eligibility Policy.

My apologizes. Fixed. Smile

[Image: R8H6kQF.png]