Closed (fixed)
Project:
Video
Version:
5.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
19 Apr 2007 at 09:07 UTC
Updated:
14 Oct 2009 at 21:30 UTC
Hi,
i have a block made by view (i try table view and list view both) and i have choose two fields:
Node: Title
Video: Thumbnail
but the thumbnail doesn't show !!!! :(
Instead in full node i see the thumbnail correctly.
Help me,
please!!
Max
Comments
Comment #1
psicomante commentedIn the next, i suggest Fabio to use Image_attach for thumbnailing Support
Comment #2
capitano83 commentedfabio says me to post the html generated by block.
it's this:
Canto Chart
Comment #3
capitano83 commentedSorry for my previous post...it's the first time tath i post code.
retry......
Comment #4
drumminlogan commentedI am having the same problem. Any idea as to what can fix this problem?
Comment #5
omar commentedI am experiencing the same issue.
Comment #6
Dawa commentedNobody can't tell ??
Comment #7
rubenk commentedWow. I was just about to post a new node about this.
I can't seem to get a simple thumbnail block with a "latest video" block view.
What do you mean by
?
Do you think it would be easier for me to check the php written for the block itself to show the image rather than the title of the video.
Comment #8
Dawa commentedHi all,
The problem is that you have to serialize data to get the path image. and I can't do that with view ... too bad !
So, I wrote few PHP code to paste in a block. It list the 5 last videos published and display thumbnail and title with link.
I'ts not perfect but it works :
Hope it help you.
Dawa
Comment #9
theorichel commentedDawa please could you be more specific WHERE this snippet should be pasted?
Many many thanks,
Theo Richel
Comment #10
theorichel commentedAnd also: are there tablenames in this code that I should give my own prefix?
Comment #11
theorichel commentedI have pasted the code in the block-configuration box and I gave both 'node' and ' video' tablenames my prefix. That was apparently wrong (it made clear that the prefixes were already added). When I removed these prefixes I got no errors anymore, but I also do not see the thumbnails at www.klimatosoof.nl (lower right). Or should I paste it somewhere else?
Thanks
Comment #12
mattso5050 commentedExcellent! Nice work.
Can you help me randomize the videos so it doesnt show in order of submission?
Thanks,
Matt
Comment #13
Dawa commentedHi theo,
- Yes, you can paste this code in PHP block or a PHP page.
- You don't have to change the table names. Drupal do his job with {node} and {video}.
- You say "I also do not see thumbnails" ...but... are title displayed with the link ?
Dawa
Comment #14
jorisx commentedwow this works really well,
is it possible to get a list of video's with a certain tag?
like // tag to use:
$tag = 'personalVideo';
but I'm not sure where to put the $tag in the db query ?
Comment #15
seaneffel commentedYou guys are doing a lot of custom coding and block snippets when a better, code free way of doing this is with the Views module. Video plays nicely with Views, we have multiple pages and blocks based on tags from video nodes using the logic already built into Views. Look here on the right side column:
http://www.cctvcambridge.org
Hope this helps, no need to bang your head on the screen for solutions when its already been done for you.
Comment #16
superlou commentedHi Seaneffel,
That list of videos with thumbnails looks exactly what (I think) many of us our trying to do using vanilla views. Could you give us an idea of how you displayed the thumbnail, since when we try simply exposing the video thumbnail view, nothing is output?
Thanks,
Louis
Comment #17
seaneffel commentedI'm actually not at my work machine to answer this properly but here is what I did, in a tiny nutshell.
Effectively I made a normal full node list page view, and the part you are trying to do is a table block view of the same criteria. I made sure that all the fields I wanted were enabled in the view - thumbnail, author, title, time, etc.
I used the Views theme wizard to generate a custom tpl.php file for my View. The wizard gives you two sets of code, one destined for its own theme viewname.tpl.php file and one that is meant to be attached to the bottom of your template.php file. Read the notes carefully in the wizard then you'll see that the wizard generates a default custom theme file for lists (I am using a table view so I had to change my varables in the part meant for the template.php file).
I then tweaked the new viewname.tpl.php file until I got the design I wanted. If you want more explanation then let me know and a few days when I am back at work I can punch up samples of the theme template.php and viewname.tpl.php files I made.
Comment #18
seaneffel commentedHere are the two sample files for you to look at. These theme files were generated with the views theme wizard and then tweaked by hand to get the layout I wanted. This view was created to show a table display of all videos tagged with "webchannel" and the fields for video thumbnail, author, creation date, play time, play link, etc, were all enabled in the view logic.
The first example is the code in my stand-alone tpl.php file, named views-table-webchannel.tpl.php. The second is a section that was added to the theme template.php file. Both files are found in the active theme directory.
views-table-webchannel.tpl.php
template.php
Comment #19
amnion commentedSo, question--I'm no good at php but I could use the two snippets above and just change the name from view-tables-webchannel to whatever, yes?
Comment #20
seaneffel commentedYes, and I don't speak PHP either and I manage to figure it out as well. If you want to use these two snippets just note what file they are supposed to reside in by looking at the file name above each snip. Then be sure that you change each instance of theme naming, in the second snippet there are two instances of my custom view name (views-table-webchannel and views_table_webchannel, note the - vs _ ). Also note that these snippets require the view to be set to a table type, not a list type, as the naming suggests.
Try it, you'll like it.
Comment #21
amnion commented[quote]You guys are doing a lot of custom coding and block snippets when a better, code free way of doing this is with the Views module. Video plays nicely with Views, we have multiple pages and blocks based on tags from video nodes using the logic already built into Views. Look here on the right side column:
http://www.cctvcambridge.org
Hope this helps, no need to bang your head on the screen for solutions when its already been done for you.[/quote]
How did you do this?
Comment #22
oskar_calvo commentedI have found this node: http://drupal.org/node/246400
It tells how to get a video thumbnails in a block with Embedded Media Field configuration.
Oskar
Comment #23
hypertext200