vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Auto display custom image when link images die in post (https://vborg.vbsupport.ru/showthread.php?t=308766)

Thangvip9x 02-21-2014 11:00 PM

Auto display custom image when link images die in post
 
1 Attachment(s)
When images die in post, this plugin will display your custom images
Go to Admincp > Plugins & Products > Add New Plugin or go to yourdomain/admincp/plugin.php?do=add
Hook Location: Choose postbit_display_complete
Title: Auto display images when images die
Plugin PHP Code:
PHP Code:

if(THIS_SCRIPT=='showthread' || THIS_SCRIPT=='showpost'
$this->post['message']=str_replace('<img ','<img onerror="this.src=\'http://a.imageshack.us/img38/8837/noq9.png\';" ',$this->post['message']); 

Save
You can replace
Code:

http://a.imageshack.us/img38/8837/noq9.png
with your custom images
Use for vbulletin all versions
Tested on vbulletin 4.2.2 and perfect
If you want, i will made a product
Please click like button and Mark as Installed

DemOnstar 02-22-2014 02:10 PM

Sorry, I am not familiar with the phrase "Images die in post".

What does it mean exactly?

Thanks.

ozzy47 02-22-2014 02:12 PM

I would assume he means when a user posts a image from lets say Photo Bucket, and then later removes it, this mod will replace the broken image with a custom one.

Thangvip9x 02-22-2014 02:24 PM

Quote:

Originally Posted by ozzy47 (Post 2483065)
I would assume he means when a user posts a image from lets say Photo Bucket, and then later removes it, this mod will replace the broken image with a custom one.

Correct answer

DemOnstar 02-22-2014 02:42 PM

Ok, got it....

Cheers boys.......

Nirjonadda 02-22-2014 06:51 PM

Excellent Work ! Installed and Nominate for MOTM !

Thangvip9x 02-22-2014 08:55 PM

Quote:

Originally Posted by Nirjonadda (Post 2483110)
Excellent Work ! Installed and Nominate for MOTM !

Thank you very much

Nirjonadda 02-23-2014 07:46 AM

Please can you add image look like this. Ex:

Error
Image Not Found or Deleted.

Thangvip9x 02-23-2014 09:20 AM

Quote:

Originally Posted by Nirjonadda (Post 2483178)
Please can you add image look like this. Ex:

Error
Image Not Found or Deleted.

You can use photoshop software and design your image

Thangvip9x 02-23-2014 09:33 AM

Please click like button
http://a.imageshack.us/img34/7699/ja6.gif
http://a.imageshack.us/img713/9969/o633.png
http://a.imageshack.us/img138/9127/d9eo.png
http://a.imageshack.us/img827/8795/blx2.png
http://a.imageshack.us/img41/4976/rybi.jpg
http://a.imageshack.us/img542/7953/bzsq.jpg


All times are GMT. The time now is 08:00 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.01917 seconds
  • Memory Usage 1,737KB
  • 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_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete