vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Showing an error image when the orginal doesnt load (https://vborg.vbsupport.ru/showthread.php?t=202618)

wally 01-21-2009 06:20 PM

Showing an error image when the orginal doesnt load
 
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

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 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 [DATE]1232896409[/DATE] at [TIME]1232896409[/TIME] ---------------

on phpbb a board uses this after the img code:

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


All times are GMT. The time now is 03:39 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00964 seconds
  • Memory Usage 1,720KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete