İstediginiz Bölüme xxden az Konu Sayısı Olan Giremesin

Smf Destek/İstediginiz Bölüme xxden az Konu Sayısı Olan Giremesin => SMF 1.1.9 ' da Konu Sayısı Bileşeni Olmadığı İçin İlk önce Konu Sayısı Bileşeni Yüklemeniz Gerekmektedir. http://custom.simplemachines.org/mods/index.php?mod=1003 Yükledikten Sonra ; Sources/MessageIndex.php'de ara: Kod: [Seç]if (WIRELESS)         $context['sub_template'] = WIRELESS_PROTOCOL .

Gönderen Konu: İstediginiz Bölüme xxden az Konu Sayısı Olan Giremesin  (Okunma sayısı 228 defa)

0 Üye ve 1 Ziyaretçi konuyu incelemekte.

Çevrimdışı hhy89

  • Yönetici
  • *
  • İleti: 9511
  • Karma: 496
  • www.SmfMod.com
  • Smf Sürümü: 2.0 RC3
  • Web Siteniz: smfmod.com
SMF 1.1.9 ' da Konu Sayısı Bileşeni Olmadığı İçin İlk önce Konu Sayısı Bileşeni Yüklemeniz Gerekmektedir.

http://custom.simplemachines.org/mods/index.php?mod=1003

Yükledikten Sonra ;

Sources/MessageIndex.php'de ara:


Kod: [Seç]
if (WIRELESS)
        $context['sub_template'] = WIRELESS_PROTOCOL . '_messageindex';
    else
        loadTemplate('MessageIndex');

Sonrasina Ekle:

Kod: [Seç]
   
//Konu Sayisi Sınırı Bileşeni       
         //check their age for acess to a certain board
    if ($board == '89') // 89 u bolum id siyle degistir
    {
        if (!empty($user_info['topics']))
    {
            if ($user_info['topics'] != '+')
            {
       
            }
            else
            {
                $user_info['topics'] = '0';
            }
    }
       
        if ((@$user_info['topics'] < '30') && (!$user_info['is_admin']))
            fatal_error('Üzgünüz Konu Sayisi 30 dan Az Olanlar Giremez.', false);
    }
   
       
       

Sources/Display.php'de ara:
Kod: [Seç]
        // Load the proper template and/or sub template.
    if (WIRELESS)
        $context['sub_template'] = WIRELESS_PROTOCOL . '_display';
    else
        loadTemplate('Display');

Sonrasina ekle:

Kod: [Seç]
//Konu Sayisi Sınırı Bileşeni       
         //check their age for acess to a certain board
    if ($board == '89') // 89 u bölüm id siyle degistir
    {
        if (!empty($user_info['topics']))
    {
            if ($user_info['topics'] != '+')
            {
       
            }
            else
            {
                $user_info['topics'] = '0';
            }
    }
       
        if ((@$user_info['topics'] < '30') && (!$user_info['is_admin']))
            fatal_error('Üzgünüz Konu Sayisi 30 dan Az Olanlar Giremez.', false);
    }
       

bölüm idsini kendinize Göre Ayarlayınız.
« Son Düzenleme: 29 Ekim 2009, 23:12:09 Gönderen: hhy89 »
Php-SEO-MySQL-Ajax-JavaScript-Css-HTML
Günlük Yaz
Yeni Modları Takip Etmek Için
*Amacımız balık vermek degil balık tutmayı ogretmek ;)
*Smfyi herkes sever ama siz abartın ;)
*“İnsanların en hayırlısı, insa


GoogleTagged - Etiketler