[For 1.8] Fix Broken Default Avatars for MyBB Last Post Avatar Plugin
#1
Preview 

[Image: Screenshot-87.png]

How to fix:
  • Log in to your MyBB Admin Panel.
  • Go to Home > Template Sets > Your Theme Templates > forumdisplay_thread.
  • Copy and paste this code into the forumdisplay_thread template:
<!-- Default Broken Avatar Fix - Author: Xferno - Website: exfum.team --><script>
$(document).ready(function() {
    $('.avatarep_bg.avatarep_forumdisplay_img').each(function() {
        if (!$(this).attr('src')) {
            $(this).attr('src', '/images/default_avatar.png');
        }
    });
});
</script>


In the Last Post Avatar Plugin settings:
Locate and set "Shows white or broken avatars as default" to 'Yes'.

My Services
Telegram @Xferno

[Image: standard.gif]
Reply


Messages In This Thread
Fix Broken Default Avatars for MyBB Last Post Avatar Plugin - by Xferno - 2023-12-17, 02:05 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)