1,105,395 Community Members

Hide Broken images

Member Avatar
Julia25
Junior Poster in Training
69 posts since Jul 2009
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

i hired a developer to customize a wordpress template, it seem ok but when i use certain feature in the template
it show a small broken image above the main image, when i right click to open image in new tab it has this "Invalid src mime type:"

and i think its in the php of timthumb (/timthumb.php?src=/&w=0&h=0&zc=1&q=100)
is it possile to hide this that using its url?

ive found some scripts and i dont know if related
but this might help
this seem working but dont know how to modify the script to hide the url
using jquery

var link = $('a[href*="<a href="http:.../themes/template/scripts/timthumb.php?src=/&w=0&h=0&zc=1&q=100">anotherdomain/>"]').attr("href");

    <body>
    <img src="http://parkerbusinessplanning.com/wp/wp-content/themes/bitwork/scripts/timthumb.php?src=/&w=0&h=0&zc=1&q=100" />
    </body>`

heres another but not working

     $("img").error(function(){
                $(this).hide();
        });

i tried contacting the developer but im not getting any response :(

Member Avatar
pritaeas
mod_pritaeas
11,297 posts since Jul 2006
Reputation Points: 1,420 [?]
Q&As Helped to Solve: 1,832 [?]
Skill Endorsements: 155 [?]
Moderator
Featured
Sponsor
 
0
 

Looks like the image has no source file defined, but I cannot guess where you would need to change this.

Member Avatar
gon1387
Posting Whiz in Training
242 posts since Jan 2011
Reputation Points: 22 [?]
Q&As Helped to Solve: 38 [?]
Skill Endorsements: 4 [?]
 
0
 

Hi Julia,

Please let me know if this works for you:

$("img[src*='timthumb.php?src=/&w=0&h=0&zc=1&q=100']").hide()
You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article