[Weird] Image Error Help!

JayC

Always Learning
Aug 8, 2013
5,493
1,398
iURrDf3.png

The first one is there, but its displaying as not found. There is no error saying no found in inspect element.
The second one is displaying correctly.
The third one is displaying as just that box, but that's NOT the image... But all the images are there.

Why would this be happening?
 

Sysode

Front-End Developer
Dec 11, 2012
1,673
848
Right click, copy image URL of the first image and see what the file path is. Compare this file path to that of where your image is located.

As for the second image, we'd have to see the code mayn.
 

JayC

Always Learning
Aug 8, 2013
5,493
1,398
<?php
$color = 'E6E6E6';
$q = mysql_query("SELECT * FROM groups WHERE badge != 'b0503Xs05013s05015s09114' ORDER BY RAND() LIMIT 20")or die(mysql_error());
while($r = mysql_fetch_assoc($q)) {
$color = $color != 'E6E6E6' ? 'E6E6E6' : 'FFFFFF';
echo "<div style='padding:6px;background-color:#{$color}'>";
echo "<table><tr>";
echo "<td style='width:50px'><img src='/habbo-imaging/badge.php?badge={$r["badge"]}.gif'></td>";
echo "<td><a href='%www%/group.php?i={$r['id']}'>" . htmlentities($r['name'], ENT_QUOTES, "UTF-8") . "</a><br/>" . htmlentities($r['desc'], ENT_QUOTES, "UTF-8") . "<td>";
echo "</tr></table>";
echo "</div>";

}

?>

<img src="/habbo-imaging/badge.php?badge=b0511Xs11127s30104.gif">

I tried putting my domain in front of it too, same effect. The image IS THERE.
 

Ethereal

Neurotic Male
May 18, 2013
494
330
<?php
$color = 'E6E6E6';
$q = mysql_query("SELECT * FROM groups WHERE badge != 'b0503Xs05013s05015s09114' ORDER BY RAND() LIMIT 20")or die(mysql_error());
while($r = mysql_fetch_assoc($q)) {
$color = $color != 'E6E6E6' ? 'E6E6E6' : 'FFFFFF';
echo "<div style='padding:6px;background-color:#{$color}'>";
echo "<table><tr>";
echo "<td style='width:50px'><img src='/habbo-imaging/badge.php?badge={$r["badge"]}.gif'></td>";
echo "<td><a href='%www%/group.php?i={$r['id']}'>" . htmlentities($r['name'], ENT_QUOTES, "UTF-8") . "</a><br/>" . htmlentities($r['desc'], ENT_QUOTES, "UTF-8") . "<td>";
echo "</tr></table>";
echo "</div>";

}

?>

<img src="/habbo-imaging/badge.php?badge=b0511Xs11127s30104.gif">

I tried putting my domain in front of it too, same effect. The image IS THERE.

Surely you can link the image far more directly than that. I'm guessing this: "badge.php?badge=" is nonsense, and this "b0511Xs11127s30104.gif" is what you should actually be linking to.

Like:
PHP:
<img src="/habbo-imaging/Badge.gif">
 

JayC

Always Learning
Aug 8, 2013
5,493
1,398
No. Its very important. Badge.php uses their design from a SWF to make the image name, then creates the image name and all the images in the folder are .gif , here's a snip-bit of the badge.php its over 2,000 characters

if(empty($badgedata)){ exit; }

$letters = array("b", "X");
$badgedata = str_replace($letters, "", $badgedata);
$layer = explode("s",$badgedata);
$sourcefile_id = imageCreateFromgif("badges/base/base.gif");

$str = "$layer[0]";
$arr = str_split($str, 2);
if ("$layer[0]" == "") {
$lay = "badges/templates/none.gif";
$lay = imagecreatefromgif($lay);
imagecopy($im, $lay, 0, 0, 0, 0, 0, 0);
} else {
$colcode = $arr[1];
if ("$colcode" == "01") {
$col = '0xff0xd60x01';
}
elseif ("$colcode" == "02") {
$col = '0xee0x760x00';
}
elseif ("$colcode" == "03") {
$col = '0x840xde0x00';
}
elseif ("$colcode" == "04") {
$col = '0x580x9a0x00';
}
elseif ("$colcode" == "05") {
$col = '0x500xc10xfb';
}
elseif ("$colcode" == "06") {
$col = '0x000x6f0xcf';
}
elseif ("$colcode" == "07") {
$col = '0xff0x980xe3';
}
elseif ("$colcode" == "08") {
$col = '0xf30x340xbf';
}
elseif ("$colcode" == "09") {
$col = '0xff0x2d0x2d';
}
elseif ("$colcode" == "10") {
$col = '0xaf0x0a0x0a';
}
elseif ("$colcode" == "11") {
$col = '0xff0xff0xff';
}
 

Users who are viewing this thread

Top