apot24 - Dle Makeserver TemasıEn Son Güncellenen Temalar
Anket
Hangi Dle Forum Modülünü Kullanıyorsunuz?
Online Üyeler
| Kayıtlı Kullanıcılar | (0): |
| Ziyaretçiler | (7): |
| Ziyaretçi→ Şu Konuyu Okuyor: Dle Popüler Konuların Güncellenme Süresini Kısaltmak | |
| Ziyaretçi→ Şu Kategoriyi Görüntülüyor: Dle Yama | |
| Ziyaretçi→ Şu Konuyu Okuyor: Dle N-Torrents Teması | |
| Ziyaretçi→ Şu Konuyu Okuyor: Dle Mainsoft Teması | |
| Ziyaretçi→ Şu Konuyu Okuyor: Dle Emugames Teması | |
| Ziyaretçi→ Şu Konuyu Okuyor: DataLife Engine v.9.2 UTF Edition Final Release [TÜRKÇE] | |
| Ziyaretçi→ Anasayfayı Görüntülüyor | |
| Arama Motorları | (1): |
| Google→ Şu Konuyu Okuyor: WhoOnline v2.7 | |
| Toplam: 8 | |
Dle Popüler Konuların Güncellenme Süresini Kısaltmak
- Yazar: tmr_026
- Görüntülenme: 736

Popüler konular bölümünün ( { topnews } etiketi olarak kullandığımız modül ) hep aynı konuları göstermesi ve çok uzun bi süre sonra güncellenmesi olumsuz bir durum. Normalde 1 ayda güncellenen popüler konular bu sayede 3 günde bir güncellenecektir. Her sürüm için uyumludur.9.4 için denenmiştir..
Aç: /engine/modules/topnews.php
Bul:
$this_month = date( 'Y-m-d H:i:s', $_TIME );
$tpl->load_template( 'topnews.tpl' );
$db->query( "SELECT id, short_story, title, date, alt_name, category, flag FROM " . PREFIX . "_post WHERE approve=1 AND date >= '$this_month' - INTERVAL 1 MONTH AND date < '$this_month' ORDER BY rating DESC, comm_num DESC, news_read DESC, date DESC LIMIT 0,10" );
$tpl->load_template( 'topnews.tpl' );
$db->query( "SELECT id, short_story, title, date, alt_name, category, flag FROM " . PREFIX . "_post WHERE approve=1 AND date >= '$this_month' - INTERVAL 1 MONTH AND date < '$this_month' ORDER BY rating DESC, comm_num DESC, news_read DESC, date DESC LIMIT 0,10" );
Değiştir:
$this_day = date( 'Y-m-d H:i:s', $_TIME );
$tpl->load_template( 'topnews.tpl' );
$db->query( "SELECT id, short_story, title, date, alt_name, category, flag FROM " . PREFIX . "_post WHERE approve=1 AND date >= '$this_day' - INTERVAL 3 DAY AND date < '$this_day' ORDER BY rating DESC, comm_num DESC, news_read DESC, date DESC LIMIT 0,10" );
$tpl->load_template( 'topnews.tpl' );
$db->query( "SELECT id, short_story, title, date, alt_name, category, flag FROM " . PREFIX . "_post WHERE approve=1 AND date >= '$this_day' - INTERVAL 3 DAY AND date < '$this_day' ORDER BY rating DESC, comm_num DESC, news_read DESC, date DESC LIMIT 0,10" );
Kurulum Tamamlanmıştır, Artık popüler konularınız 3 günde bir güncellenecektir
DESC LIMIT 0,10 yazılı alanı kendinize göre editleyebilirsiniz.
Konu Etiketleri: dle populer konular
