Facebook kaynaklı videoları benim gibi birçok arkadaş Pro Player eklentisini kullanarak sitesine eklemiştir. Fakat 15 hazirandan sonra videolar açılmamaya başladı. Embed kodunu direkt yapıştırarak videoları ekleyenler bir çözümünü buldu ve videoları kurtarmayı başardı fakat wordpress kullananlar için durum değişik. BU KONUDA EuroTurk arkadaşın paylaştığı paket üzerinden bir çözüm üretmeye çalıştım. Paket içerisinden çıkan player.swf ve skin dosyası olan modeius.swf dosyalarını proplayer plugin'i içindekilerle değiştirdim. Daha sonra pro-player.php dosyasını açtım ve eklenen videoları sayfaya yazdıran kodları yeni embed kodlarıyla değiştirdim.

Orijinali şöyle idi:

			function constructSnippet($attrs, $content = '') {
				$configurationBuilder = new ConfigurationBuilder($attrs);
				$configuration = $configurationBuilder->build();
				
				$flashvars = $configuration->getFlashVars();
				$params = $configuration->getParams();
				$others = $configuration->getOthers();
				
				$id = $others[Constants::$ID_KEY].uniqid('pp-single-');
				
				$result  = '<!-- ProPlayer by Isa Goksu -->';
				$result .= '<div name="mediaspace" id="mediaspace"><div class="pro-player-container" width="'.$flashvars[Constants::$WIDTH_KEY].'px" height="'.$flashvars[Constants::$HEIGHT_KEY].'px"><div id="pro-player-'.$id.'"></div></div></div>'.$this->NEW_LINE;
				$result .= '<script type="text/javascript" charset="utf-8">'.$this->NEW_LINE;
				
				$result .= $this->getFlashVars($flashvars, $id, $content);
				$result .= $this->getParams($params);
				
				$result .= 'var attributes = {'.$this->NEW_LINE;
				$result .= 'id: "obj-pro-player-'.$id.'",'.$this->NEW_LINE;
				$result .= 'name: "obj-pro-player-'.$id.'"'.$this->NEW_LINE;
				$result .= '};'.$this->NEW_LINE;
				
				$result .= 'swfobject.embedSWF("'.$this->getPlayer().'", "pro-player-'.$id.'", "'.$flashvars[Constants::$WIDTH_KEY].'", "'.$flashvars[Constants::$HEIGHT_KEY].'", "9.0.0", false, flashvars, params, attributes);';
				
				$result .= '</script>'.$this->NEW_LINE;
				$result .= $others[Constants::$AD_SCRIPT_KEY];
				
				return $result;
			}
Böyle değiştirdim:

			function constructSnippet($attrs, $content = '') {
				$configurationBuilder = new ConfigurationBuilder($attrs);
				$configuration = $configurationBuilder->build();
				
				$flashvars = $configuration->getFlashVars();
				$params = $configuration->getParams();
				$others = $configuration->getOthers();
				
				$id = $others[Constants::$ID_KEY].uniqid('pp-single-');
				
				$result  = '<!-- ProPlayer by Isa Goksu -->';
				$result .= '<object classid="clsid:D27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="500" height="362" id="Untitled-1" align="middle">'.$this->NEW_LINE;
				$result .= '<param name="allowScriptAccess" value="sameDomain" />'.$this->NEW_LINE;
				$result .= '<param name="allowFullScreen" value="true" />'.$this->NEW_LINE;
				$result .= '<param name="movie" value="http://www.site.com/wp-content/plugins/proplayer/players/player.swf?file=VIDEO&amp;skin=http://www.site.com/wp-content/plugins/proplayer/players/skins/modieus.swf&amp;" />'.$this->NEW_LINE;
				$result .= '<param name="quality" value="high" />'.$this->NEW_LINE;
				$result .= '<param name="bgcolor" value="#ffffff" />'.$this->NEW_LINE;
				$result .= '<embed src="http://www.site.com/wp-content/plugins/proplayer/players/player.swf?file=VIDEO&amp;skin=http://www.site.com/wp-content/plugins/proplayer/players/skins/modieus.swf&amp;" quality="high" bgcolor="#ffffff" width="500" height="362" name="mymovie" align="middle" allowFullScreen="true" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />'.$this->NEW_LINE;
				
				$result .= '</object>'.$this->NEW_LINE;
				$result .= $others[Constants::$AD_SCRIPT_KEY];
				
				return $result;
			}
Bunu yaptıktan sonra daha önce eklediğim tüm videoların player'larının kaynak kodları yeni embed koduna göre olmuş oldu. Fakat

[proplayer]...[/proplayer]
tagını kullanarak eklediğim video url'lerini çağırmayı bir türlü yapamadım. Bunun için bir değişken belirtilmemiş eklentide. Abartısız söylüyorum 5 buçuk saattir uğraşıyorum ama beceremedim hala.

Bu taglar arasına eklediğim .mp4 uzantılı url'leri nasıl çağırabilirim? Koddaki VIDEO yazan yere bu url'leri çağırabilecek bir değişken tanımlasak bütün videolar sorunsuz çalışacak.

Veritabanından video.ak.facebook diye arattım ve eklediğim tüm url'ler wp_postmeta tablosu içerisinde:



pro-player.php dosyası içerisine bir SQL sorgusu tanımlayıp bu resimde gözüken url'leri çekip daha sonra kod içerisinde yazdırabilir miyiz?