Closed (won't fix)
Project:
SWF Tools
Version:
5.x-1.x-dev
Component:
SWF Tools
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
14 Jan 2008 at 00:10 UTC
Updated:
11 Oct 2010 at 04:17 UTC
is there a way to assign the title field and/or a cck image field of a post so that when it's clicked, instead of going to the full node page, a thickbox/lightbox pops up and displays a flash movie (by using a .flv url that's been entered in a cck field)?
Comments
Comment #1
markusH commentedWell, I guess it can be done through theming. I used contemplate to achieve this. I can't go into details here but I paste the code that works for me.
Basically you have to theme the thickbox manually for teaser/full page view. The details I kept learning from http://jquery.com/demo/thickbox/
Maybe this is a point to start.
Comment #2
Stuart Greenfield commentedSetting to closed - no follow up posts in over six months, and a possible solution was posted.
Please post again or re-open if required.
Comment #3
luco commentedany chance this might work with Lightbox2? and without needing snippets of code?
cheers,
Luciano
Comment #4
AlexanderPop commentedfor drupal 6 ? SWF Tools 6
Comment #5
Stuart Greenfield commentedThis is going to be in 6.x-3.x and I think you'll like the simplicity!
As a result of fixing a support request in #757232: Open 1pixelout in new window I had a eureka moment. As a result of the new SWF Tools cache system to improve performance it's created an incredibly simple way to do this.
I've tested locally with the LightBox2 module, and all you need to pop some flash up in a lightbox is something like:
And that's it - movie in a lightbox!
The syntax above with the othervars stuff is "indicative" at the moment as I'm putting the code together properly right now, but that is pretty much all there is to it!
Comment #6
Stuart Greenfield commentedThe solution in #757232: Open 1pixelout in new window is working well, but this doesn't let you create lightboxes via CCK.
The bit I'm struggling with for CCK is that we need to know the content, we need to call swf(), and then we need to write a link, but what do we write? Text? An image?
With CCK I'm not sure this will be that easy to do as there are too many bits to configure. But with a little bit of PHP to implement the code above it's easy.
But if someone can think of a good way to do this via CCK I'm open to suggestions!
Comment #7
Yuki commentedsubscribe
Comment #8
jaarong commentedsubscribed
Comment #9
nicoloconte commentedIs it working also with rtmp streaming? I'm using this code but is not working:
Comment #10
Stuart Greenfield commentedI've not tested it, but it should work, as the generated code is simply a player.
Have you tested the syntax in a non-lightbox node first to check the basic syntax is right and that SWF Tools is actually rendering a valid player?
Streaming can be a little tricky to get just right so it may be best to test the code in a simple setting first, and then render it in lightbox.
Comment #11
nicoloconte commented@Stuart Greenfield
in a non-lightbox node is working perfectly :) , the lightbox still doesn't work.
Comment #12
ron williams commented5.x-1.x is no longer supported, so I have marked as closed.