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

» » Fullstory için var/yok kontrol tagı

Fullstory için var/yok kontrol tagı

Sistemde bulunan xfgiven tagları gibi fullstory'e içerik girilip girilmediğini kontrol edebilir ve tasarımlarınız için kullanabilirsiniz.

Dosya: engine/modules/show.full.php

Bul :
$tpl->set( '{full-story}', $row['full_story'] );


Üstüne Ekle :
// Full Story
if ( empty( $row['full_story'] ) ) {
	$tpl->set_block( "'\\[full-story\\](.*?)\\[/full-story\\]'si", "" );
} else {
	$tpl->set_block( "'\\[full-story\\](.*?)\\[/full-story\\]'si", "$1" );
}
// Full Story


fullstory.tpl dosyasında aşağıdaki gibi kullanabilirsiniz.

[full-story] İçerik girilmiş [/full-story]

Sitemde shortstory ve fullstory'i farklı amaçlar için kullanıyorum. Shortstory'de bilgiler ve fullstory'de sistem gereksinimleri var. Fakat her zaman sistem gereksinimi girilmiyor. Girilmediğinde gözükmemesini sağlamak amacıyla yapılmıştır.

Fullstory için var/yok kontrol tagı

Yapımcı: Mehmet Hanoğlu
Kaynak: https://dle.net.tr
Bilgilendirme
Yorum Ekleyebilmeniz için Sitemize Kayıt Olmanız Gerekmektedir.
0
ozan30 30 Kasım 2014 20:25
gerçekten çok yararlı olmuş ellerine sağlık
3 779
MaRZoCHi 30 Kasım 2014 11:13
@rnajans, Teşekkürler.
@dlestarter, Thanks. I need this hack on my site (simulasyon.org). I use short story for explain game and full story is system reqiurements. Now each story is seperated.

--------------------
0
dlestarter 30 Kasım 2014 05:48
Very good way to draw article detail and it will wrap the css and/or html to wrap the tag {full-story}...

What if "if ( empty( $row['full_story'] )" then fullstory is not drawing anything out? by default if {full-story} is empty then it will display {short-story} instead, as you can see query
		if( (strlen( $row['full_story'] ) < 13) and (strpos( $tpl->copy_template, "{short-story}" ) === false) ) {
			$row['full_story'] = $row['short_story'];
		}

But the good news is you can use both {short-story} and {full-story}, and with your tutorial, now we can use
<div class="story">
	{short-story}
</div>

[full-story]
<div class="story extended">
	{full-story}
</div>
[/full-story]

Without your tutorial short-story may have displayed twice if full-story is empty, but with your tutorial now we can eliminate "double" if use both tags...

Nice tutorial!
0
rnajans 20 Kasım 2014 19:03
teşekkürler oldukça faydalı bir eklenti olmuş.
deneme bonusu veren siteler