»Forumlar »SE ? Beginners »Youtube sorun
  https://seditio.com.tr/eski1/forums.php?m=posts&q=1784
          Geri Dön      -      Sayfayı Yazdırmak için tıklayın
Author: LocaL, Posted: 2012-01-25 14:59 GMT.
Selam Arkadaslar.... Bugune kadar boyle bir sorunla karsilasmamisdim ama bugun karsilasdim ....evet simdi benim sitemi yeni kurdum seditio 151 ile....seditio 151 kurunca otomatik youtube bbcode eklenmis oluyo Kaan abi eklemis ....ama benim sitede youtube calismadi..diger bbcodeler calisiyo ama . evet ssonra ben youtube kodunun eskimis oldugunu dusundum Kaan abinin yeni youtube kodlari adli konusundan yeni youtube kodunu copy edib functionsda eskisiyle degistirdim yine calismadi ama youtube sitemde ....neapmaliyim? lutfen yardim...

functionsdaki youtube alani :
Kod:
///////// Youtube.com video Kodlarэ ////////////
'#\[youtube\\]([^\\([]*)\\[/youtube\\]#' => '<iframe width="500" height="350" src="http://www.youtube.com/embed/\\1" frameborder="0" allowfullscreen></iframe>',
Author: Kaan, Posted: 2012-01-25 21:27 GMT.
yotube linkini eklerken sadece sondaki kodu ekliceksin linkin hepsini de?il.

http://www.youtube.com/watch?v=LHfr-wfus-A linkin sonundaki LHfr-wfus-A k?sm? ekliceksin taglar?n aras?na

Bu ?ekilde
Kod:
[youtube]LHfr-wfus-A[/youtube]


?rnek video 4 y?l ?nce y?klemi?im youtube ye
Author: LocaL, Posted: 2012-01-26 13:04 GMT.
Kaan abi sen yazdigini sitede yazdim yine calismadi..... haydaa neyapcam ben :S
Author: Kaan, Posted: 2012-01-26 23:12 GMT.
Bbcodeler ?al???yormu forumda ?al???yorsa video kodlar?n?n oldugu k?sm? buraya eklermisin.?

Admin paneli kontrol et admin.php?m=config&n=edit&o=core&p=parser Videolar i?in BBCode'ya izin ver :
Author: LocaL, Posted: 2012-01-28 01:23 GMT.
bbcodeler forumda calisiyor bitek youtube calismiyo...parserden izinleri verilmis zaten...ama yine calismiyo abi...funtions.phpdeki video bbcode kodlari:
Kod:
///////// Youtube.com video Kodlarэ ////////////
'#\[youtube\\]([^\\([]*)\\[/youtube\\]#' => '<iframe width="500" height="350" src="http://www.youtube.com/embed/\\1" frameborder="0" allowfullscreen></iframe>',

/////// mynet.com Mynet Eksenim mynet video kodlarэ //////////////
'\\[mynet\\]([^\\([]*)\\[/mynet\\]' => '<object width="480" height="334"><param name="movie" value="http://video.eksenim.mynet.com/batch/video_xml_embed.php?video_id=\\1">
</param><param name="wmode" value="transparent"></param><embed src="http://video.eksenim.mynet.com/flvplayers/vplayer5.swf" type="application/x-shockwave-flash" wmode="transparent" FlashVars="videolist=http://video.eksenim.mynet.com/batch/video_xml_embed.php?video_id=\\1" width="480" height="334"> </embed></object>',

///////////// Yahoo.com video kodlarэ ////////
'\\[yahoo\\]([^\\([]*)\\[/yahoo\\]' => '<object width="480" height="323"><param name="movie" value="http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.4" /><param name="allowFullScreen" value="true" /><param name="flashVars" value="id=\\1"/>
<embed src="http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.4" type="application/x-shockwave-flash" width="480" height="323" allowFullScreen="true" flashVars="id=\\1"></embed></object>',
////////// video.google.com video kodlarэ ////////////
'\\[google\\]([^\\([]*)\\[/google\\]' => '<object width="480" height="329"><param name="movie" value="http://video.google.com/googleplayer.swf?docId=\\1"></param><param name="wmode" value="transparent"></param><embed src="http://video.google.com/googleplayer.swf?docId=\\1" type="application/x-shockwave-flash" wmode="transparent" width="480" height="329"></embed></object>',


//////////// Metacafe.com video Kodlarэ /////////////////
'\\[metacafe\\]([^\\([]*)\\[/metacafe\\]' => '<object width="480" height="329"><param name="movie" value="http://www.metacafe.com/fplayer/\\1.swf"></param><param name="wmode" value="transparent"></param><embed src="http://www.metacafe.com/fplayer/\\1.swf" type="application/x-shockwave-flash" wmode="transparent" width="480" height="329"></embed></object>',

///////////////// Dailmation.com Video Kodlarэ ///////////////////
'\\[dmotion\\]([^\\([]*)\\[/dmotion\\]' => '<object width="480" height="325"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://www.dailymotion.com/swf/\\1&related=0" /><embed src="http://www.dailymotion.com/swf/\\1&related=0" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="480" height="325"></embed></object>',

//////////////// Direk Swf Link Eklemenizi Yarar. //////////////
'\\[Flash\\]([^\\([]*)\\[/Flash\\]' => '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"   width="480" height="350" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#4,0,0,0">
    <param name="movie" value="\\1"><embed src="\\1"   width="480" height="350" pluginspage="http://www.macromedia.com/shockwave/download/" type="application/x-shockwave-flash"></embed></object>');
Author: Kaan, Posted: 2012-01-28 01:40 GMT.
Hangi Seditio versionunu kullan?yorsun o kodlar yanl?? versiona g?re kodlar de?i?iyor.
Author: LocaL, Posted: 2012-01-28 01:41 GMT.
seditio 151 kullaniyorum
Author: Kaan, Posted: 2012-01-28 02:05 GMT.
Bu ?ekilde kullan ?al???cakt?r.
Kod:
///////// Youtube.com video Kodlarэ ////////////
'\\[youtube\\]([^\\([]*)\\[/youtube\\]' => '<iframe width="500" height="350" src="http://www.youtube.com/embed/\\1" frameborder="0" allowfullscreen></iframe>',
Author: LocaL, Posted: 2012-01-29 18:10 GMT.
Abi yine olmadi (
Author: Kaan, Posted: 2012-01-29 22:19 GMT.
Kodda her hangi bir sorun yok di?er video kodlar? ?al???yormu.?

Video kodlar?n?n alt?ndaki kodlar bu ?ekilde olmal?
Kod:
foreach($bbcodes as $bbcode => $bbcodehtml)
{ $text = preg_replace($bbcode,$bbcodehtml,$text); }
Author: VulnProf, Posted: 2012-03-20 10:45 GMT.
Yaz?lanlar?n hepsini yoklad?m sonucu bu yazd???n koduda yap??t?rd?m functions.php -e bu sefer 400c? sat?rdan hata verdi. Videoda ?al?mad?.

Powered by SeditioPrint version