Broken image links in 2.6.1RC2 [message #16897] |
Fri, 27 February 2004 04:48  |
tgaastra
 Messages: 90 Registered: June 2002
Karma: 0
|
Member |
|
|
The v 1.17 lib.js seems to be causing Internet Explorer to display "broken image" tags in place of some images on 2.6.1RC2...
I replaced lib.js 1.17 with 1.15 and things are "OK"...
Seen on two seperate forums.
The images in question that are breaking are forum icons, and a image I added to the header template. Most all of them are PNGs, built with PhotoShop for the most part, but I think a few were made with The GIMP v2.
The same behavior was also seen on another FUDForum instance I don't admin after they went to 2.6.1RC2, and with multiple versions of IE.
|
|
|
Re: Broken image links in 2.6.1RC2 [message #16903 is a reply to message #16897] |
Fri, 27 February 2004 20:08   |
Ilia
 Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
The lib.js in RC2 uses a JS code to replace pngs with equivalent .gif files. Please tell me which files are missing and I'll take a look. In my tests I have not seen any missing files.
FUDforum Core Developer
|
|
|
|
Re: Broken image links in 2.6.1RC2 [message #16909 is a reply to message #16908] |
Fri, 27 February 2004 20:22   |
Ilia
 Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
tgaastra wrote on Fri, 27 February 2004 15:19 | It's trying to replace custom images added by myself, as in a image link I added to a customized header.html template, and to a set of forum icons I added in myself with the Add Forum Icons functionality, that happen to be PNGs. I don't have equivalent GIFs for them.
|
Try changing the IE hack inside lib.js to
function ie_png_hack()
{
var i = document.images.length - 1;
while ((img = document.images[i--])) {
if (img.src.indexOf(".png") > -1 && img.src.indexOf("/images/") > -1 && img.src.indexOf("/theme/") > -1) {
img.src = img.src.replace(/\.png$/i, ".gif");
}
}
}
FUDforum Core Developer
|
|
|
|
Re: Broken image links in 2.6.1RC2 [message #16912 is a reply to message #16911] |
Fri, 27 February 2004 20:39   |
Ilia
 Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Transparency tricks work, but it is too slow on pages with a lot of images. Given the number of complaints I've decided to go with a simpler & faster solution.
FUDforum Core Developer
|
|
|
|
Re: Broken image links in 2.6.1RC2 [message #16914 is a reply to message #16913] |
Fri, 27 February 2004 21:19  |
Ilia
 Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Not really, although I may add a commented out version of the code into lib.js. For people (like yourself) who were quite happy with the old, nicer looking IE png hack.
FUDforum Core Developer
|
|
|