TopMediaScript Video Player Mod

I put together this quick little mod for TopMediaScript. All you have to do is download it and follow the directions. It comes with JW FLV Player so after a few tiny little tweaks you will have a cool looking video player for your media page.

TopMediaScript Video Player Mod by Jake

——–Back your original files——–

1. Files you need: >>DOWNLOAD<<

After you have uploaded everything follow the steps below.

Open your header.php and add this code in between the <head> </head>

<script type=”text/javascript” src=”/swfobject.js”></script>

2. Open up media.php in this folder and find this code:

<div id=”player”>This text will be replaced</div>
<script type=”text/javascript”>
var so = new SWFObject(‘http://<?=$siteURL;?>/flvplayer.swf’,’mpl’,’500′,’360′,’7′);
so.addParam(‘allowfullscreen’,’true’);
so.addParam(‘allowscriptaccess’,’always’);
so.addVariable(‘file’,’http://<?=$siteURL;?>/m_<?=$line[“m_type”]?>s/<?=$line[“m_file”]?>’);
so.addVariable(‘height’,’360′);
so.addVariable(‘width’,’500′);
so.addVariable(‘image’,’http://<?=$siteURL;?>/m_<?=$line[“m_type”]?>s/thumbs/<?=$line[“m_thumbnail”]?>’);
so.addVariable(‘frontcolor’,’0xDDDDDD’);
so.addVariable(‘backcolor’,’0x000000′);
so.addVariable(‘lightcolor’,’0x89b5c6′);
so.addVariable(‘screencolor’,’0x111111′);
so.addVariable(‘showstop’,’true’);
so.addVariable(‘overstretch’,’fit’);
so.addVariable(‘autostart’,’true’);
so.addVariable(‘bufferlength’,’5′);
so.addVariable(‘shuffle’,’false’);
so.addVariable(‘linktarget’,’_self’);
so.addVariable(‘type’,’flv’);
so.write(‘player’);
</script>

*To change the player size change these ‘500’,’360′

* To change the colors of the player controls you will need to change this code:

so.addVariable(‘frontcolor’,’0xDDDDDD’);
so.addVariable(‘backcolor’,’0x000000′);
so.addVariable(‘lightcolor’,’0x89b5c6′);
so.addVariable(‘screencolor’,’0x111111′);

* To add your own custom logo to your video player you will need to create a Transparent PNG save it as videologo.png

so.addVariable(‘logo’,’link to your image’);

If you want to add more features visit: http://www.jeroenwijering.com/?page=wizard

Make sure to click the get the swfobject code before you start customizing your player.
The last thing I changed was the VIEW FULL SCREEN to Download this video. If you don’t what people to have this feature simply remove this code from your media.php

<tr><td align=”center” valign=”top” bgcolor=”#f4f3f3″ class=”mediaDetails”><a href=”http://www.<?=$siteURL?>/m_<?=$line[“m_type”]?>s/<?=$line[“m_file”]?>”><strong>VIEW FULL SCREEN
</div>
</strong></a></td>
</tr>
<tr>

Remember, if you mess up you can always go back to the backups that you made.

You can see a live example on this site http://bikerpunks.com

If you need any help just PM me http://www.gamepacks.org/forum/memberlist.php?mode=viewprofile&u=499

Or post some comments below and I will try my best to help you out.