вопрос
Привет, кто может прикрутить плеер в точности как тут http://zagruzka-plus.ru/music/
к zyppy
к zyppy
//#########################ZIPPY PLAYER#################################
if (stripos ( $tpl->result['content'], ".zippyshare.com" ) !== false) {
if (!function_exists('zippyshareplayerautoplayer')) {
function zippyshareautoplayer($zserv, $zfile) {
return <<<HTML
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.adobe.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" name="66064231_14445139" width="100%" height="80" id="66064231_14445139">
<param name="movie" value="http://www{$zserv}.zippyshare.com/swf/player_local.swf?file={$zfile}&server={$zserv}&baseurl=http://www.zippyshare.com/api/&flashid=null&autostart=false&availablequality=both&bordercolor=#333333&forecolor=#999999&backcolor=#333333&darkcolor=#0099ff&lightcolor=0x333333" />
<param name="quality" value="high" />
<param name="scriptAccess" value="always" />
<param name="bgcolor" value="#333333" />
<param name="wmode" value="opaque" />
<embed src="http://www{$zserv}.zippyshare.com/swf/player_local.swf?file={$zfile}&server={$zserv}&baseurl=http://www.zippyshare.com/api/&flashid=null&autostart=false&availablequality=both&bordercolor=#333333&forecolor=#999999&backcolor=#333333&darkcolor=#0099ff&lightcolor=0x333333" bgcolor="#333333" wmode="opaque" width="100%" height="80" quality="high" pluginspage="http://www.adobe.com/go/getflashplayer" type="application/x-shockwave-flash" scriptaccess="always" name="66064231_14445139"></embed></object>
HTML;
}
}
$tpl->result['content'] = preg_replace ( "#http://www([0-9]+).zippyshare.com/v/([0-9]+)/file.html#ies", "zippyshareautoplayer('\\1', '\\2')", $tpl->result['content'] );
}
//######################################################################