Notifications
Clear all

Increase badge's size?

24 Posts
2 Users
0 Reactions
4,697 Views
Posts: 16
Topic starter
(@qnkov)
Active Member
Joined: 4 years ago

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)

Reply
1 Reply
Astghik
Admin
(@astgh)
Joined: 7 years ago

Illustrious Member
Posts: 6197

@qnkov,

we don't see any badges/ranks in the link you've provided. 

Reply
Posts: 16
Topic starter
(@qnkov)
Active Member
Joined: 4 years ago

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

Reply
1 Reply
Astghik
Admin
(@astgh)
Joined: 7 years ago

Illustrious Member
Posts: 6197

@qnkov,

In the active plugin list, we don't see the wpDiscuz - myCRED Integration addon installed. 

Here you said that you have the addon installed on your website.

Reply
Posts: 16
Topic starter
(@qnkov)
Active Member
Joined: 4 years ago

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. 

Reply
Posts: 16
Topic starter
(@qnkov)
Active Member
Joined: 4 years ago

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;

Reply
Posts: 16
Topic starter
(@qnkov)
Active Member
Joined: 4 years ago

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 ?

Reply
1 Reply
Astghik
Admin
(@astgh)
Joined: 7 years ago

Illustrious Member
Posts: 6197

@qnkov,

The code is not supported anymore. You should remove it. 

Reply
Page 3 / 4
Share:
Scroll to top