03/04/2018, 13:27 #1 sledgeab ozanakkaya Bul Kurucu Adı Soyadı: Oz.... Ak.... Konum: Denizli Ofis Versiyonu: Ofis 2016 64 Bit Son Oturumu: Dün,15:02 Yorumları: 13.453 Konuları: 498 Kayıt Tarihi: 29/01/2008 Rep Puanı: 3.131 Mesleğiniz: Memur Epey uğraştırdığı için paylaşmak istedim. PHP Kod: $html = preg_replace('/<iframe width="(.*)" height="(.*)" src="\/\/www.youtube.com\/embed\/(.*)" frameborder="0" allowfullscreen>\<\/iframe>/', '<amp-youtube width="480" height="270" layout="responsive" data-videoid="$3"></amp-youtube>', $html); Örnek sayfa: https://accesstr.net/konu-alt-form-ust-f...derme.html Amp Sayfa: https://accesstr.net/amp/konu-76818.html Cevapla Cevapla
19/10/2018, 04:39 #2 sledgeab ozanakkaya Bul Kurucu Adı Soyadı: Oz.... Ak.... Konum: Denizli Ofis Versiyonu: Ofis 2016 64 Bit Son Oturumu: Dün,15:02 Yorumları: 13.453 Konuları: 498 Kayıt Tarihi: 29/01/2008 Rep Puanı: 3.131 Mesleğiniz: Memur Güncel kod PHP Kod: $html = preg_replace('/<iframe src="https:\/\/www.youtube.com\/embed\/(.*?)" (.*)><\/iframe>/', '<amp-youtube width="480" height="270" layout="responsive" data-videoid="$1"></amp-youtube>', $html); Cevapla Cevapla