The Arcive of vBulletin Modifications Site. |
|
KX - Image Not Found Details »»
|
|||||||||||||||||||||||||||
This modification was brought to you by KXDesign http://www.kxdesign.com/ ~Modification name Image Not Found ~Modification description This modification shows an "Image not found" image if the image in the [IMG] bbcode could not be found.Very good if you have lots of posts with images from imageshack or photobucket. ~Modification options
~Modification info File uploads: 0 File edits: 1 Templates: 0 Template edits: 0 Plugins: 0 SQL Queries: 0 Phrases: 5 Settings: 2 Hooks: 0 Install time: 1 min Install level: Light ~Modification installation Step 1: Import product Step 2: Open file includes/class_bbcode.php and find: Code:
function handle_bbcode_img_match($link)
{
$link = $this->strip_smilies(str_replace('\\"', '"', $link));
// remove double spaces -- fixes issues with wordwrap
$link = str_replace(array(' ', '"'), '', $link);
return '<img src="' . $link . '" border="0" alt="" />';
}
Code:
function handle_bbcode_img_match($link)
{
$link = $this->strip_smilies(str_replace('\\"', '"', $link));
// remove double spaces -- fixes issues with wordwrap
$link = str_replace(array(' ', '"'), '', $link);
if ($this->registry->options['kx_noimg_onoff'])
{
$check = @fsockopen($link, 80, $errno, $errstr, $this->registry->GPC['timeout']);
if ($check == true)
{
$link = $this->registry->options['kx_noimg_path'];
}
unset($check);
}
return '<img src="' . $link . '" border="0" alt="" />';
}
~Modification screenshots None ~Modification changelog
~Modification copyright This may not be distributed,released or claimed as your work without author's permission. Download Now
Show Your Support
|
|||||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
~Reserved~
|
|
#3
|
|||
|
|||
|
Very nice idea
![]() Would need this for deleted user album pictures... somethings there still exists links to a user album picture, but the user has already deleted this picture again and it causes the error messages "invalid picture, if you followed a valid link, please contact the administrator" ... this message is just wrong and I don't want to be contacted lol. |
|
#4
|
|||
|
|||
|
Thanks for this, ill check it out in a bit
|
|
#5
|
||||
|
||||
|
Code:
Parse error: syntax error, unexpected T_VARIABLE, expecting '(' in /home/southcalif//public_html/forums/includes/class_bbcode.php on line 1990
|
|
#6
|
||||
|
||||
|
Ah sorry I forgot.
|
|
#7
|
||||
|
||||
|
|
|
#8
|
||||
|
||||
|
Yes it is already fixed
|
|
#9
|
||||
|
||||
|
Great Idea. Installed !!!
|
|
#10
|
|||
|
|||
|
but remember fsocketopen uses pretty much of your memory resources,
well could not harm your site but if you got alot of users it could increase your memory usage alot |
![]() |
|
|