Please login or register. Welcome to the Studio, guest!


Quick Links:


newBookmarkLockedFalling

Quacker Jack

Quacker Jack Avatar

*****
ProNation

1,666


December 2007
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.

Lucifer

Lucifer Avatar

*******
Mythical Studio Member

Eunuch
5,665


August 2005
I like this idea, though I dunno how easy it'd be.

3:

3: Avatar
...xD

***
Dedicated Member

158


June 2006
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.

Quacker Jack

Quacker Jack Avatar

*****
ProNation

1,666


December 2007
3: Avatar
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.

Chris

Chris Avatar

******
Head Coder

19,519


June 2005
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. :P

Joe Kerr

Joe Kerr Avatar
Why So Serious?



769


June 2010
I'll fix mine later :P
Building Your Proboard, a Basic Guide to Getting Your Forum Started



Need somewhere to host files?[/url]

Quacker Jack

Quacker Jack Avatar

*****
ProNation

1,666


December 2007
Chris Avatar
until at least v5. :P


That's what I figured. Sounds good.

JD

JD Avatar



1,032


June 2008
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.

Chris

Chris Avatar

******
Head Coder

19,519


June 2005
JD Avatar
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...

Quacker Jack

Quacker Jack Avatar

*****
ProNation

1,666


December 2007
Or I just replaced the avatar, so that looks a little cleaner :P

Chris

Chris Avatar

******
Head Coder

19,519


June 2005
Quacker Jack Avatar
Or I just replaced the avatar, so that looks a little cleaner :P


Thanks. :)

newBookmarkLockedFalling