I wanted to use the Youtube hack by locutius (or any hack that will work) to place video samples on the Torrent comments
but i don't want to use video's from Youtube, i would like to use video's from my video site. this way i can control the quality of the samples (Youtube video is poor quality to use as torrent samples)
My Video site is here -->
clip
can someone please help me with the code so it will grab video's from my site instead of youtube ?
here is the code from the hack.
Code:
// YouTube Vids
$content = preg_replace("/\[video=[^\s'\"<>]*youtube.*.*v=([^\s'\"<>]+)\]/ims", "<object width=\"500\" height=\"410\"><param name=\"movie\" value=\"http://www.youtube.com/v/\\1\"></param><embed src=\"http://www.youtube.com/v/\\1\" type=\"application/x-shockwave-flash\" width=\"500\" height=\"410\"></embed></object>", $content);
// Google Vids
$content = preg_replace("/\[video=[^\s'\"<>]*video.google.*.*docid=(-?[0-9]+).*\]/ims", "<embed style=\"width:500px; height:410px;\" id=\"VideoPlayback\" align=\"middle\" type=\"application/x-shockwave-flash\" src=\"http://video.google.com/googleplayer.swf?docId=\\1\" allowScriptAccess=\"sameDomain\" quality=\"best\" bgcolor=\"#ffffff\" scale=\"noScale\" wmode=\"window\" salign=\"TL\" FlashVars=\"playerMode=embedded\"> </embed>", $content);