vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=202618

Showing an error image when the orginal doesnt load
by wally
21 Jan 2009 19:20

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 24 Jan 2009 14:08

anyone an idea??

Lynne 24 Jan 2009 17:52

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 24 Jan 2009 17:54

Quote:

Originally Posted by Lynne (Post 1723459)
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 25 Jan 2009 13:28

strange i've seen this working on some phpbb forums (if it works on phpbb it should also be possible with vbulletin)

--------------- Added 25 Jan 2009 at 14:13 ---------------

on phpbb a board uses this after the img code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

how can i add this to img tag? (so to let it parse with it? )

Lynne 25 Jan 2009 16:15

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 26 Jan 2009 19:04

thx lynne that might help will look into it


All times are GMT. The time now is 10:49.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.