Subject:*
Name/Email:*
Message Icon:*
Message:*
url email imgsrc image php hide code quote
English Nederlands 
VOORBEELD
alignleft aligncenter alignright bold italic underline linethrough   


 [meer...]
Options:*
 

 

 
   
Re: Source video ?

by Will on 14/4/2010 15:38:56

http://api.jquery.com/load/

This will require you to edit the template a little bit for singlevideo and add an id to the container div.

For example. http://www.impresscms.tv/modules/mytube/singlevideo.php?cid=4&lid=1

if the container div had an id of let's say "video" then you would be able to use load to pull it anywhere else you may want it.

All you need to do is add a new empty container for the video on the page you want to pull it to - let pretened you did so and labeled it "videowrap"

<script type="text/javascript"> <!--//--><![CDATA[//><!-- jQuery('#videowrap').load("http://www.impresscms.tv/modules/mytube/singlevideo.php?cid=4&lid=1 #video"); //--><!]]> </script>


Boom - instant video.

Alternatively - you can use the colorbox library to load video as well - and its actually a really nice outcome.

<a id="vid_window" href="path/to/video#videocontainer">Link</a>


jQuery("#vid_window").colorbox({width:"650px", height:"450px", iframe:true, scrolling:false});


Example: Click "View The Video"
http://mrtheme.com/test/index.php
Re: Source video ?

by Madfish on 13/4/2010 10:13:31

Have a look at the tutorial using smarty templates in a module, that should give you the idea.
Source video ?

by pelis24 on 13/4/2010 8:56:26

hello,

i wanted to ask, if it is possible to create a page where you only the <($ video.showvideo)> of singlevideo.php?

i have a html source ... and just want to leave a page where the content (<($ video.showvideo)>).


now i create a php page called embed.php and copy the contents of singlevideo.php remove him include 'header.php';
and include 'footer.php';
. but the page goes blank.

greetings.