Not signed in (Sign In)

Vanilla 1.0.3 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorrazta
    • CommentTimeMar 9th 2008 edited
     
    Hello,
    I use an open source CMS called PHPDirector which displays youtube, dailymotion and google video submitted by users. PHPDirector uses the SMARTY template system and I have uploaded and included the latest SWFObject javascript file. The way PHPDirector displays the videos is as follows:

    The video embed script is in a file called players.tpl and then this file is called in another file called viewvid.tpl to display the videos.

    Heres the players.tpl source:

    {if $vidtype eq "YouTube"}

    <object width="425" height="350"><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/{if $video[video].file eq ""}{$videoid}{else}{$video[video].file}{/if}&rel=0&autoplay=1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>

    {elseif $vidtype eq "GoogleVideo"}

    <embed style="width:400px; height:326px;" id="VideoPlayback" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId={if $video[video].file eq ""}{$videoid}{else}{$video[video].file}{/if}" flashvars=""> </embed>

    {elseif $vidtype eq "dailymotion"}

    <div><object width="425" height="335"><param name="movie" value="http://www.dailymotion.com/swf/{if $video[video].file eq ""}{$videoid}{else}{$video[video].file}{/if}"></param><param name="allowfullscreen" flashVars="autoStart=1" value="true"
    ></param><embed src="http://www.dailymotion.com/swf/{if $video[video].file eq ""}{$videoid}{else}{$video[video].file}{/if}" type="application/x-shockwave-flash" width="425" height="334" allowfullscreen="true" flashVars="autoStart=1"></embed></object></div>

    {else}
    This video type is currently unsuppotred
    {/if}

    And then players.tpl is included in viewvid.tpl with the following code:

    {include file="players.tpl"}

    Ive read the SWFObject documentation and searched the forum, I cant for the life in me figure out how to implement it into PHPDirector. Any help will be much apretiated and shared with the open source community.

    Thanks in advance,
    Ryan