We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,459 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Hide Broken images

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 :(

3
Contributors
2
Replies
15 Hours
Discussion Span
4 Months Ago
Last Updated
3
Views
Julia25
Junior Poster in Training
55 posts since Jul 2009
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

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

pritaeas
Posting Prodigy
Moderator
9,533 posts since Jul 2006
Reputation Points: 1,194
Solved Threads: 1,494
Skill Endorsements: 98

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()
gon1387
Posting Whiz in Training
233 posts since Jan 2011
Reputation Points: 32
Solved Threads: 37
Skill Endorsements: 3

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page generated in 0.3223 seconds using 2.74MB