TMS Embed Video Mod

I recently built a TMS theme for a videos only site and the owner asked if it was possible to have a spot where users can grab some kind of embed code just like on YouTube. The stock version that comes with TMS lets people embed a link and a thumbnail to the post. So I went ahead and changed that to an actual embed code for videos!

embed-finish

If you want to add this to your TMS video site this mod is pretty easy to do.

Step 1: back up your files!

Then open your mainbox_sharing.tpl file and go to around line 84. The code should look like this:

embed-screenshot

Step 2: Replace the the contents of the input value with this :

<embed src=”{$tms_paths->tms_url}players/player.swf” width=”470″ height=”320″ bgcolor=”#ffffff” allowscriptaccess=”always” allowfullscreen=”true” flashvars=”file={$tms_paths->tms_url}media/{$tms_media->file}” />

Note: this mod will allow people to post your videos on any site or blog etc. This can use up a lot of your servers bandwidth so be careful.

Now that you are finished people will be able to embed videos from your site to their site or blog.

If you have any troubles please let me know and I will try my best to help you!

2 Replies to “TMS Embed Video Mod”

Comments are closed.