View Full Version : Showing an error image when the orginal doesnt load
wally
01-21-2009, 06:20 PM
as in title
i have an adult forum which mostly use images hosted on image host sites which dont always load and when not you will see in IE a red cross but not in FF / Opera so i want to let is show an error image when the original doesn't load
i think it has to do with class_bbcode but i 've no idea how to do it
Wally
wally
01-24-2009, 01:08 PM
anyone an idea??
Lynne
01-24-2009, 04:52 PM
I don't know that you can do anything about it. If you look at the page source, the link to the image will be there, it's just that the browser can't grab it for some reason. That is a browser thing and not something you can put into your code (that I know of).
freewilley
01-24-2009, 04:54 PM
I don't know that you can do anything about it. If you look at the page source, the link to the image will be there, it's just that the browser can't grab it for some reason. That is a browser thing and not something you can put into your code (that I know of).
I have to agree to that! :up:
wally
01-25-2009, 12:28 PM
strange i've seen this working on some phpbb forums (if it works on phpbb it should also be possible with vbulletin)
--------------- Added 1232896409 at 1232896409 ---------------
on phpbb a board uses this after the img code:
onerror="this.src='url to /error.png'"
how can i add this to img tag? (so to let it parse with it? )
Lynne
01-25-2009, 03:15 PM
I'm a trial and error coder, especially with javascript, so here's a page to help you out - http://www.w3schools.com/JS/js_onerror.asp
wally
01-26-2009, 06:04 PM
thx lynne that might help will look into it
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.