Active
Project:
Embedded Media Field
Version:
6.x-2.x-dev
Component:
Embedded Media Thumbnail
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Jan 2010 at 21:59 UTC
Updated:
25 Dec 2011 at 22:18 UTC
Jump to comment: Most recent file
Comments
Comment #1
alisonsubscribing
Comment #2
leanazulyoro commentedanyone? I beleive it should be an "if" statement missing somewhere... I don't have time to dig the code, nor I am a great coder... one of the developers that knows exactly where to go and fix it? please?
Comment #3
goto10 commentedThis is happening on our site, too. Unfortunately, ours is live already. Anyone have any ideas?
If it helps, the image url it displays is the imagecache preset directory with no file specified.
Please help! Thanks!
-Jesse
Comment #4
goto10 commentedComment #5
dafederI fixed the issue with a theme function to make sure imagecache had a path before building an img tag:
I'm not sure if this is something emfield has any control over, looks to me like an oversight on imagecache's part.
Comment #6
goto10 commentedI just found another solution in the imagecache issues- might be useful. Looks similar.
http://drupal.org/node/745344
Best,
-Jesse
Oh- wait. they're both dafeder. Good job!
Comment #7
goto10 commentedThanks- The fix got rid of the imagecache missing thumbnail beautifully!
The emvideo play button replacement is still hanging around, though.
Any thoughts? Thanks!
Comment #8
dafederCan you post an example URL?
Comment #9
goto10 commentedI've attached some screen captures, and http://www.dctvny.org/documentaries/hunger-suburbs is a good example of a broken one. Any thoughts?
Thanks,
-Jesse
Comment #10
goto10 commentedJust wanted to check in on this- any ideas?
Comment #11
alex ua commentedI'm closing this- the correct way to remove the player image is to uncheck "Thumbnail play button overlay" under thumbnails at admin/content/emfield
Comment #12
thrash632 commented@ #11, unchecking "Thumbnail play button overlay" at the admin/content/emfield isn't really a solution. You shouldn't have to sacrifice functionality in order to avoid a bug.
Comment #13
thrash632 commentedAlso, the field is still being generated. Look at this:
http://www.adambadlotto.com/work/branding/peace-studies-identity
The label 'Videos' is still there, even though the field is empty.
Comment #14
dicreat commentedsubscribing
Comment #15
mattcasey commentedmake sure you also set in the Row/Field style to hide empty fields - thanks the fix worked for me!
Comment #16
thrash632 commentedCould you give me an example of what the code should look like? I'm not familiar with php. Thanks!
Comment #17
core44 commentedIm still having this issue, views seems to be including an empty row for empty embed video fields. I have never checked the "Thumbnail play button overlay" and im currently not using imagecache for the thumbnail. I also have all the options in views checked to avoid outputting empty fields.
Why is Embedded Media Field causing empty rows like this? I can't show the empty text for my view when no video is added as it is never empty. Anyone else having this issue?
Comment #18
core44 commentedStill not sure why markup is being created for the empty field but found a quick fix for hiding the empty row. http://drupal.org/node/672632#comment-2857946
Comment #19
9802008 commentedThe 'Play' png for the video is visible when viewing any node that has the emvideo field, even if the video field is blank.
This is a quick fix:
- Find the function theme_emvideo_modal_generic in emvideo.theme.inc.
- Paste the function into template.php in you themes directory.
- change the theme_ part of the function name to match your theme name
- change the last line of the function from:
to
Not sure why this function is even being called.
Note that if you decide to go back to a different option to display the videos (ie not using lightbox) you may need to remove the above code.
Comment #20
jkomenda commentedMany thanks for that fix #19! For those looking, emvideo.theme.inc should be in /sites/all/modules/emfield/contrib/emvideo/
Comment #21
Vasiliy Grotov commentedStill have this problem.
The thumbnail is not showing up when using imagecache.
I've spent some time debugging this and I'm pretty sure the problem is in the _emthumb_imagecache_formatter_default() theme function. This output of this functions is NULL, because it provide an external link to theme_image and theme_imagecache.