No replies
crazydred
crazydred's picture
Offline
newbie
Last seen: 6 years 40 weeks ago
Joined: 2014-10-29
Posts: 1
Points: 2

Currently this function is displaying a minotar avatar, which does not work
I want the following format https://minepic.org/avatar/25/username

if($GetPlayers !== false)
			{
				foreach ($GetPlayers as $i => $value)
				{
					if($instance['displayAvatar'] !== 1)
					{
						$displayWidget .= '<li id="mouw_li"><img src="https://minotar.net/helm/' . $value . '/' . $instance['avatarSize'] . '.png" width="' . $instance['avatarSize'] . '" height="' . $instance['avatarSize'] . '" border="0" title="' . $value . '" alt="avatar_' . $value . '" id="mouw_avatar" />' . $value . '</li>';
					}
					else
					{
						$displayWidget .= '<li id="mouw_li">' . $value . '</li>';
					}
				}
				$resnbPlayer = count($GetPlayers);
 
Thanks for your time
			}
			else
			{
				$displayWidget .= '<li id="mouw_li">' . $instance['ifNoPlayer'] . '</li>';
				$resnbPlayer = 0;
			}

Thanks for your time!