Datalife Engine Türkçe Yama İndir

Datalife Engine 14.0

  • Temalara yeni taglar eklendi ve geliştirildi
  • Yeni AirPlay medya oynatıcısı eklendi
  • 1500 adet yeni ifade (emoji) eklendi

Github'dayız

Kendi yapımımız olan modüllerin neredeyse tamamını ücretsiz olarak Github üzerinden yayımladık. Sadece bu modüller için "destek" verilecektir.

We are on Github

Almost all of our own modules have been released free of charge via Github. We support only these modules

» » Youtube için open graph meta tagları

Youtube için open graph meta tagları

Eğer makalelerinizde video kullanıyorsanız, veya siteniz bir video sitesi ise bu metaları kullanabilirsiniz.
Bu sayede sitenize ait arama sonuçlarında eklemiş olduğunu video da görünecektir.

Dosya: engine/modules/show.full.php

Bul:
$tpl->compile( 'content' );

Üstüne ekle
//  OpenGraph XField Hack
        if ( ! isset( $xfieldsdata ) ) $xfieldsdata = xfieldsdataload( $row['xfields'] );
        $social_tags['image'] = $xfieldsdata['cover'];
        $social_tags['type'] = 'video.other';
        $social_tags['video'] = str_replace( array("watch?", "="), array("", "/"), $xfieldsdata['trailer'] );
        $social_tags['video:height'] = "340";
        $social_tags['video:width'] = "640";
        $social_tags['video:type'] = "application/x-shockwave-flash";
        $description = preg_replace( "#<!--TBegin(.+?)<!--TEnd-->#is", "", $row['short_story'] );
        $description = preg_replace( "#<!--MBegin(.+?)<!--MEnd-->#is", "", $description );
        $description = preg_replace( "'\[attachment=(.*?)\]'si", "", $description );
        $description = preg_replace ( "#\[hide(.*?)\](.+?)\[/hide\]#is", "", $description );
        $description = str_replace( "</p><p>", " ", $description );
        $description = str_replace( "\"", "'", $description );
        $description = strip_tags( $description, "<br>" );
        $description = trim(str_replace( "<br>", " ", str_replace( "<br />", " ", str_replace( "\n", " ", str_replace( "\r", "", $description ) ) ) ));
        $description = dle_substr( $description, 0, 198, $config['charset'] );
        if( ($temp_dmax = dle_strrpos( $description, ' ', $config['charset'] )) ) $description = dle_substr( $description, 0, $temp_dmax, $config['charset'] );
        $social_tags['description'] = $description . "..";
// OpenGraph XField Hack

Bu eklentiyi daha önce paylaşmıştım fakat video için değildi. Burada trailer ilave alanına eklenmiş olan youtube video linki. Embed linkine dönüştürülüyor. Ayrıca manuel olarak width ve height bilgilerini giriyoruz. Ayrıca description alanı için short_story'yi kullandığını belirteyim.
Image bilgisi de cover adlı ilave alandan çekiliyor.

Örnek çıktı:


Yapımcı: Mehmet Hanoğlu
Kaynak: https://dle.net.tr
Bilgilendirme
Yorum Ekleyebilmeniz için Sitemize Kayıt Olmanız Gerekmektedir.
deneme bonusu veren siteler