PHPmotion Wiki : VideoEmbedder

HomePage :: Contents :: PageIndex :: Login/Register

Installing Video Embedder Power Tool


Video Embedder


Back to Installation

Featured PHPmotion Sponsor: Cirtex- Unlimited PHPmotion Web Hosting $2.95/month [50% discount with coupon code "phpmotion"]



Before you begin


Before you start installing the Video Embedder make sure you have done the following

- Downloaded the most recent version at: PHPmotion Forum
- Ordered and received our copy of the license file



General Instructions



Unpacking and Uploading

  • Unzip the downloaded file onto your computer. You will now have a folder called videoembedder
  • Upload this whole folder into your FTP into the addons folder. You should now have a structure like /addons/videoembedder
  • Upload your license file using FTP into /addons/videoembedder/license_ve.php

  • CHMOD Folders

    The following folders must be CHMOD to 777. Note: If you get an "Internal Server Error" try and CHMOD to 755 instead
  • /addons
  • /addons/videoembedder

  • Important: Run the Setup Script

    Open your website in a web browser to the example url (http://www.yourdomain.com/addons/videoembedder/setup.php)
  • Follow the on screen instructions
  • Delete the file /addons/videoembedder/setup.php




  • Instruction for PHPmotion V3 Users (All V3 installations)


    The following files need to be replaced in your FTP.
    We have included these replacement files within the download. These files are in the folder /videoembedder/replacements_files/v3/

    INSTRUCTIONS: These files must be uploaded into your FTP
    ---------------------------------------------------------
    
    /videoembedder/replacements_files/v3/editvideo.php		[Upload it via ftp to]>>    /edit/editvideo.php
    /videoembedder/replacements_files/v3/inner_edit_video.htm	[Upload it via ftp to]>>    /edit/inner_edit_video.htm        





    Instruction for PHPmotion V2 (Using the Default PHPmotion Theme)


    If you are running PHPmotion V2 with the default theme (i.e. you have not changed the default PHPmotion templates) we have included some files with the video embedder download. These files are in the folder /videoembedder/replacements_files/v2/

    INSTRUCTIONS: These files must be uploaded into your FTP
    ---------------------------------------------------------
    
    /videoembedder/replacements_files/v2/play.php				[Upload it via ftp to]>> /play.php
    /videoembedder/replacements_files/v2/inner_play.htm			[Upload it via ftp to]>> /templates/inner_play.htm          
    /videoembedder/replacements_files/v2/inner_upload_video_form.htm	[Upload it via ftp to]>> /templates/inner_upload_video_form.htm 





    Additional Instructions





    Instruction for PHPmotion V2 OR V3 (Using a custom Theme)


    If you are running PHPmotion V2 with a custom theme (i.e. you have changed the default PHPmotion templates), you must follow these 3 sets of instructions.

    INSTRUCTION: Upload this file which is provided in the videoembedder download into your ftp to replace your /play.php
    ------------------------------------------------------------------------------------------------------------------
    
    V2 Users
    --------
    /videoembedder/replacements_files/v2/play.php          [Upload it via ftp to]>>           /play.php                              



    INSTRUCTION: Place the following "grab video button" anywhere in the  template file: /inner_upload_video_form.htm
    ---------------------------------------------------------------------------------------------------------------
    
    
    <!-- addon -videoembedder- start button -->
    <div style="text-align:center">
    <br />
    <a href="addons/videoembedder/upload.php?keepThis=true&TB_iframe=true&height=400&width=550" class="thickbox">
    <img src="[var.base_url]/addons/videoembedder/images/getvideo.png" alt="get video" width="214" height="41" border="0" />
    </a><br /><br />
    Or you can upload your own video
    <br />
    </div>
    <!-- addon -videoembedder- end of button -->



    INSTRUCTIONS: Edit the video playing page/template file. (V2 users: /templates/inner_play.htm)  OR  (V3 users: /themes/default/inner_play.htm) 
    -------------------------------------------------------------------------------------------------------------------------------
    
    
    
    
    INSTRUCTIONS: Fnd the section with your video player embed code. Just before the closing </script> tag of that section of code. Add:
    ----------------------------------------------------------------------------------------------------------------------------------
    
    <!--[onload;block=script;when [var.video_type] != 'embedded';comm]-->
    </script>
    
    
    
    
    INSTRUCTIONS (alternative to one above) : Some templates may use </embed> and not </script>
    In which case you should replace the closing </embed> with the following
    ------------------------------------------------------------------------------------------------------
    
    <!--[onload;block=embed;when [var.video_type] != 'embedded';comm]-->
    </embed>
    
    
    
    
    INSTRUCTIONS: After you have done the above, immediately after that section, paste this code
    -----------------------------------------------------------------------------------------
    
    <!--start of EmbedVideo Addon Player-->
    <span>
    <!--[var.videoembedder_code;htmlconv=no;comm]-->
    <!--[onload;block=span;when [var.video_type] == 'embedded';comm]-->
    </span>
    <!-- end of EmbedVideo Addon Player-->




    Changing Size Of The Video Player (optional)


    If you are using a custom template, you may find that the embedded youtube video player is not the correct size for your theme.
    You can change the size of the youtube video player, by changing the following settings, found in the file /classes/config.inc.php

    //Embedder THEME SIZE
    $config['theme_embed_width']				= '560';	// default V3 theme width
    $config['theme_embed_height']				= '370';	// default V3 theme height






    Using The video Embedder



    You can now start using the video embedder. You will see a link to it when you/or your members next login to your site and start to upload a new video.

    Note the demo below is based on PHPmotion V3 but this powertool can also be used with PHPmotion V2






    Common Installation Errors


    The following are typical errors that you may get and they are due to having missed one of the instructions above

    Videos dont play

    If you are using PHPmotion V2 (any theme) or PHPmotion V3 (with a custom theme), you have not added the changes to the template
    file inner_play.htm as shown in the instruction above

    It can also be that you have not uploaded the replacement play.php file as supplied with the download


    I cant add videos - I get an error

    You did not run the initial setup.php file as instruction at the start of these instructions


    I get a Internal Server Error when I load the embedder

    Some server dont like CHMOD 777 (as instructed aboev). You should CHMOD any file you were told to 755 instead



    When I try to edit a video in Siteadmin Control pane, the preview does not play

    You have not uploaded the replacement /edit files as instructed (V3 users only)


    Why can't I see previews of embedded videos on my home page video player

    Embedded videos require the Youtube player. At present the PHPmotion Video Player (i.e. the main video player you see on your home page) cannot play Youtube videos. This may change in the future as we develop the player further.



    Zero Branding









    For further help with installation you can try


    Order our installation services
    Peer support in our forum




    Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
    Page was generated in 0.0555 seconds