Test edilmiştir. Sorunsuz çalışıyor..
Sources/Load.php'de
BuL
PHP Kodu:
Sonrasına ekle:
PHP Kodu:
Sources/MessageIndex.php'de
Bul:
PHP Kodu:
Sonrasına ekle:
PHP Kodu:
Kodların içindeki bu tarihi (1990-01-01) ben kendim yazdım. Siz istediğiniz gibi değiştirin.
Sources/Load.php'de
BuL
PHP Kodu:
Kod:
'time_offset' => empty($user_settings['timeOffset']) ? 0 : $user_settings['timeOffset'],
Sonrasına ekle:
PHP Kodu:
Kod:
'birthdate' => empty($user_settings['birthdate']) ? 0 : $user_settings['birthdate'],
Sources/MessageIndex.php'de
Bul:
PHP Kodu:
Kod:
if (WIRELESS)
$context['sub_template'] = WIRELESS_PROTOCOL . '_messageindex';
else
loadTemplate('MessageIndex');
Sonrasına ekle:
PHP Kodu:
Kod:
//Bölüme yaş sınırı eklemek - Türkçe çeviri Hoochie Coochie Man
if ($board == '2') // 2 yerine yasaklamak istediğiniz bölümün ID numarısını giriniz.
{
if (!empty($user_info['birthdate']))
{
if ($user_info['birthdate'] != '1990-01-01')
{
list ($birth_year, $birth_month, $birth_day) = sscanf($user_info['birthdate'], '%d-%d-%d');
$datearray = getdate(forum_time());
$user_info += array(
'age' => empty($birth_year) ? $txt[470] : $datearray['year'] - $birth_year - (($datearray['mon'] > $birth_month || ($datearray['mon'] == $birth_month && $datearray['mday'] >= $birth_day)) ? 0 : 1),
'today_is_birthday' => $datearray['mon'] == $birth_month && $datearray['mday'] == $birth_day
);
}
else
{
$user_info['age'] = '0';
}
}
if ((@$user_info['age'] < '18') && (!$user_info['is_admin']))
fatal_error('Üzgünüm, bu bölüme girmeniz için 18 yaşın altında olmanız gerekmektedir.', false);
}
Kodların içindeki bu tarihi (1990-01-01) ben kendim yazdım. Siz istediğiniz gibi değiştirin.