https://otaku.bg/copy/anime/golden-kamuy/
Here in my test site you can see last ver of your plugin + last ver of mycred. And i still have this problem with broken image under profile's avatar (don't bother with my broken avatr image)
https://otaku.bg/copy/anime/golden-kamuy/
Here in my test site you can see last ver of your plugin + last ver of mycred. And i still have this problem with broken image under profile's avatar (don't bother with my broken avatr image)
Hi, when you open this link -> https://otaku.bg/copy/anime/golden-kamuy/
You can scroll down and you will see this - https://prnt.sc/xtizxt
This broken image is Badge i've added in mycred pluggin. I've viewing my page with Chrome and Firefox. If i open this page with Opera, everything it's OK! I'm using only wpdiscuz and mycred plugin. From what i know, this broken badge should not be there. It should be hided, because i'm not using your wpdiscuz mycred extension. If i disable your plugin and using wordpress default comment system, it's alright, no broken image for badge. So i belive this is some sort of conflict.
I have only those plugins installed - https://prnt.sc/xmehi1
That's my test site, cuz in my main i have old ver. of wpdiscuz. It does not matter if i install mycred integration. I do can see badges with wpdiscuz mycred integration, but same way i have this broken image badge too, which is the problem here. Like i say, this problem appears with Chrome and Firefox, with opera this broken image badge is invisible.
Here how it looks in my main site with actived integration - https://prnt.sc/xv2oyh , if i remove wpdiscuz integration from Hooks, i can see the broken image still. If you earn 3 badges, i will see 3 broken images.
I have put this code in my function.php , maybe the problem comes from it ?
////////////////////////////////////////////////////////////////////////
// MyCred User Ranks and Badges Integration ////////////////////////////
////////////////////////////////////////////////////////////////////////
add_filter('wpdiscuz_after_label', 'wpdiscuz_mc_after_label_html', 110, 2);
function wpdiscuz_mc_after_label_html($afterLabelHtml, $comment) {
if ($comment->user_id) {
if (function_exists('mycred_get_users_rank')) { //User Rank
$afterLabelHtml .= mycred_get_users_rank($comment->user_id, 'logo', 'post-thumbnail', array('class' => 'mycred-rank'));
}
if (function_exists('mycred_get_users_badges')) { //User Badges
$users_badges = mycred_get_users_badges($comment->user_id);
if (!empty($users_badges)) {
foreach ($users_badges as $badge_id => $level) {
$imageKey = ( $level > 0 ) ? 'level_image' . $level : 'main_image';
$afterLabelHtml .= '<img src="' . get_post_meta($badge_id, $imageKey, true) . '" width="22" height="22" class="mycred-badge earned" alt="' . get_the_title($badge_id) . '" title="' . get_the_title($badge_id) . '" />';
}
}
}
}
return $afterLabelHtml;
}
If i remove it, i can see that the broken image is gone, but i don't know if everything would work properly without it? Do we need to change the code or something ?