I have flashvideo installed and working fine.

Now i would like to use lightbox2 to display the video in product page (using ubercart)

<a href="?q=node/34/flashvideo" rel="lightframe">Video</a>

The above code returns a lightbox with the whole page. I need only the video from that page.

Also [thumbnail] is not working in product page.

Looking for some help here

Vivek

Comments

Vivekdrupal’s picture

Is there Anyone to help me out here?

gausarts’s picture

I haven't tried it myself with a video, but have you checked the README? Perhaps it can help you:

Video
=====
It's possible to show video content in the lightbox.  In this case the "rel"
attribute should be set to "lightvideo".  It's not possible to group
videos but it is possible to control the size of the lightbox by setting the
'width' and 'height' properties.  The properties can be configured like
"lightvideo[width:300px; height: 200px;]" and
"lightvideo[width:300px; height: 200px;][my caption]".  The properties should
all be of the format "property: value;" - note the closing semi-colon.  If no
properties are set, then the default width and height of 400px will be used.
See below for more detailed examples.

Basic example:
<a href="http://video.google.com/videoplay?docid=1811233136844420765"
rel="lightvideo">Google video example - default size</a>

Basic example with caption:
<a href="http://video.google.com/videoplay?docid=1811233136844420765"
rel="lightvideo[][my caption]">Google video example - default size</a>

Controlling lightbox size example:
<a href="http://video.google.com/videoplay?docid=1811233136844420765"
rel="lightvideo[width:400px; height:300px;][my caption]">Google video example - custom
size</a>

Supported Video Formats
asx, wmv, mov and swf videos should all be supported.  A number of video
providers are also supported, for example YouTube and Google Video. For full
details on how to integrate these with lightbox, please see the online
documentation.

love, light n laughter

Vivekdrupal’s picture

This works fine, but when i access the uploaded file (Flashvideo), i am not able to do that.

Let me know

gausarts’s picture

Sorry, I don't think I understand your question. Please clarify again what matters, whether accessing the file directly through the url, displaying on the lightbox or ...?

BTW, are you using flashvideo and lightbox2 modules altogether?

love, light n laughter

Vivekdrupal’s picture

I am using flashvideo to upload and convert the videos.

So now the videos can be displayed in the node using [video]. here it works, the video is displayed.

I want that video to be displayed in a lightbox2. When i try doing

<a href="?q=/node/32/lightbox2" rel="lightframe">Video1</a>

I got the lightbox2, but the content loaded in it is the whole page (node/32) with no side bar. But i wanted only the video.

Thanks

gausarts’s picture

I see. Have you tried changing rel="lightframe "to rel="lightvideo" as suggested by the above mentioned README?

love, light n laughter

Vivekdrupal’s picture

I tried it, but that dint work.

But i made this working by different way. This is wat i did.

i added a file called page-node-fvideo.tpl.php in my theme folder and added this code

<?php
print flashvideo_get_video($node);
?>

Also changed "flashvideo-thumbnail.tpl.php" in flashvideo module folder.

print '<a href="'. url('node/'. $nid, array('absolute' => TRUE)) .'">';

TO

print '<a rel=lightframe href="'. url('node/'. $nid . '/fvideo', array('absolute' => TRUE)) .'">';

Now when you call [thumbnail] on anynode which has video. that will display a thumbnail which on click will lead to lightbox with the video in it.

Thanks for the help gausarts.

Anyone Any help regarding this, let me know i can help you out.

Vivek