Installing Mass Video Embedder Power Tool
Back to Installation
Before you begin
Before you start installing the
Mass 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 massembedder
Upload this whole folder into your FTP into the addons folder. You should now have a structure like /addons/massembedder
Upload your license file using FTP into /addons/massembedder/license_mve.php
Login to Site Admin Area
Important: Now login to your Site Admin area as normal. This powertool checks if you are logged in as Admin.
CHMOD Directories
You must CHMODusing your FTP the following directories to 777 (note that is you get a server error, then chmod these to 755 instead)
/addons
/addons/massembedder
Additional Instructions
Instruction for PHPmotion V3 Users
If you are using PHPmotion V3 (with the default templates/theme
OR any of the templates provided by
PHPmotionTemplates.com) we have included some files with the video embedder download. These files are in the folder
/massembedder/replacement_files/V3/
INSTRUCTIONS: These files must be uploaded into your FTP
---------------------------------------------------------
/massembedder/replacements_files/V3/play.php [Upload it via ftp to]>> /play.php
/massembedder/replacements_files/V3/menuloader.php [Upload it via ftp to]>> /siteadmin/includes/menuloader.php
/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
/massembedder/replacement_files/V2/
INSTRUCTIONS: These files must be uploaded into your FTP
---------------------------------------------------------
/massembedder/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
/massembedder/replacements_files/V2/inner_media.htm [Upload it via ftp to]>> /siteadmin/inner_media.htm
Instruction for PHPmotion V2 OR V3/V3.5 (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 additional sets of instructions.
INSTRUCTION: Upload this file which is provided in the videoembedder download into your ftp to replace your /play.php
------------------------------------------------------------------------------------------------------------------
V2 Users
--------
/massembedder/replacements_files/V2/play.php [Upload it via ftp to]>> /play.php
/massembedder/replacements_files/V2/inner_media.htm [Upload it via ftp to]>> /siteadmin/inner_media.htm
V3 Users
---------
/massembedder/replacements_files/V3/play.php [Upload it via ftp to]>> /play.php
/massembedder/replacements_files/V3/menuloader.php [Upload it via ftp to]>> /siteadmin/includes/menuloader.php
/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
INSTRUCTIONS: Edit the video playing page/template file. (V2 users: /templates/inner_play.htm)
OR (V3/V3.5 users: /themes/default/make_player.htm)
--------------------------------------------------------------------------------------------------
INSTRUCTIONS: Start by finding the section with your video player embed code.
Just before the closing </script> tag of that section of code. Add: the following code
------------------------------------------------------------------------------------------------------
<!--[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 Mass Video Embedder
You can now start using the video embedder. Login to the
SiteAdmin. You will find a link to the "Mass Video Embedder". For V2 users, this is found on the "Media" menu
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 servers don't like CHMOD 777 (as instructed above). You should CHMOD any file you were told to 755 instead
When I try to edit a video in Siteadmin Control panel, 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