|
General thought here, but I thought of this while looking at my avatar. Maybe we should make all broken avatars appear as the SZ no avatar images? That way everything looks nice?
I'm too lazy to fix mine - it's on my things to do.
|
|
|
|
|
I like this idea, though I dunno how easy it'd be.
|
|
|
|
Image elements with broken links should fire the onerror event, so you could use that. I'm fairly certain there are other ways of doing it as well, but that's the only one I knew of.
|
|
|
|
Image elements with broken links should fire the onerror event, so you could use that. I'm fairly certain there are other ways of doing it as well, but that's the only one I knew of. That's what I thought, though I wasn't sure. If that's the case, it shouldn't be terribly hard.
|
|
|
|
|
I'll just remove urls/sigs if they're broken. Like Jack's. Just did that. Too lazy to implement an onerror thing until at least v5.
|
|
|
|
|
|
until at least v5. That's what I figured. Sounds good.
|
|
|
|
|
It can be done in a few lines of code if you put the onerror attribute on the avatar. Then it's just image.onerror = ""; image.src = "default image"; return true;
Seems like it's worth doing just to save you manually doing it to every user that posts without a working link.
|
|
|
|
It can be done in a few lines of code if you put the onerror attribute on the avatar. Then it's just image.onerror = ""; image.src = "default image"; return true; Seems like it's worth doing just to save you manually doing it to every user that posts without a working link. Still quicker loading times if it doesn't even try to load the image...
|
|
|
|
|
Or I just replaced the avatar, so that looks a little cleaner
|
|
|
|
|
Or I just replaced the avatar, so that looks a little cleaner Thanks.
|
|
|
|