Live Help

Mirror Embeds

Download (23.2 K)
 A small plugin that will add 2 extra fields for embedding. It modifies the current embed_video_mod and adds a few files. 
  • Plugin Info
  • Installation
  • Demo & Screens
  • LordFrz has uploaded Mirror Embeds on April 13, 2011. This plugin has been downloaded about 1,558 times.

    Plugin is uploaded in Videos Category and has been tagged : mirror, embed

    Mirror Embed Installation Instructions

    ·         See bottom of page for installation on older CB versions.

    Install

    1.    Copy the mirrors folder to your plugins folder and upload.

    2.    Copy the contents of the embed_video_mod to its plugin folder and upload.

    3.    Copy the watch_video.html file to your styles folder. (styles/cb2new/layout/)

    Edit

    ·         You may edit the look of the tabs by editing the css file in the mirrors folder.

    ·         Currently the video resize is not automated as with the normal embedding. Please edit line “149” of the embed_video_mod.php file with your desired player size.

    ·         Edit table line “33” of the watch_video file to match your players width.

    Install on old CB version

    ·         Follow steps 1 and 2 above.

    ·         Open your watch_video.html file found (styles/cb2new/layout/)

    ·         Find the following code.

    ·        

        <div class="player_container2" id="normal_player_cont">

        {FlashPlayer vdetails = $vdo}

    </div>

    {if has_hq($vdo)}

    <div id="hd_player_cont" style="display:none">   

      {FlashPlayer vdetails =$vdo player_div='hd_div' hq=true}

    </div>          

    {/if}

     
     

     

     

     

     

     

     

     

    ·         Replace it with the following code.

     

     

    ·          Edit the Table width with your desired size before you copy it.

    <div class="watch_left">

    <!--Tables-->

    <!--Alter the width of this table to your video width size-->

    <table width="660" border="0" cellpadding="0" cellspacing="0">

      <tr>

        <td>

       

        <!--Tabs-->

    <div id="TabbedPanels1" class="TabbedPanels">

      <ul class="TabbedPanelsTabGroup">

        <li class="TabbedPanelsTab" tabindex="0">Best</li>

        <li class="TabbedPanelsTab" tabindex="0">Mirror 1</li>

        <li class="TabbedPanelsTab" tabindex="0">Mirror 2</li>

      </ul>

      <div align="left" class="TabbedPanelsContentGroup">

        <div class="TabbedPanelsContent">

        <!-- Player -->

        <div class="player_container2" id="normal_player_cont">

        {FlashPlayer vdetails = $vdo}

    </div>

    {if has_hq($vdo)}

    <div id="hd_player_cont" style="display:none">   

      {FlashPlayer vdetails =$vdo player_div='hd_div' hq=true}

    </div>          

    {/if}

        <!--Player End-->

        </div>

        <div class="TabbedPanelsContent">{$vdo.embed_code2|htmlspecialchars_decode}</div>

        <div class="TabbedPanelsContent">{$vdo.embed_code3|htmlspecialchars_decode}</div>

      </div>

    </div>

    <!-- Tabs -->

     

    </td>

      </tr>

     

    </table>

    <!-- Tables End -->

     
     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     


    ·         Now copy the following code at the bottom of the watch_video.html page, below everything else.

    ·        

    <script type="text/javascript">

    var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");

    </script>

     
     

     

     

     


    Known Bugs

    ·         Player width does not resize normally, be sure to follow the instructions above to make sure your embeds are the correct size.

    ·         When the embed code does not have the width in quotes, it will not resize; so you must do it manually on upload.

    ·         This is only tested on version 2.1, so I am sorry if other versions cause problems.

    Proud Pakistani

    "Think 100 times before you take a decision, But once that decision is taken, stand by it as one man"

    Quaid-e-Azam