Kod: Tümünü seç
##############################################################
## MOD Ismi TR: Forum Kuralları
## MOD Sürümü: v.1.0
## MOD Yazarı: BeRKaY
## MOD Destek: http://www.speedmega.tr.cx
##
## Not: Forum Kurallarınızı Buraya Yazınız Bölümüne Dikkat Ederek Forum Kurallarınızı Yazınız
##
## MOD Açiklamasi: Bu modifikasyon forumunuza yeni üye olan kullanıcılara bir özel mesaj gönderir -.Bu Özel Mesajın İçinde Sitenizin Forum Kuralları Bulunur...
##
## Kurulum Seviyesi: Kolay
## Kurulum Zamanı: 5 Dakika
##
## Değiştirilecekler: 2
## includes/usercp_register.php
## language/lang_turkish/lang_main.php
##
##
###############################################################################
## Bu modifikasyonu kurmadan önce dosyalarınızın yedeğini almanızı tavsiye ederim #
###############################################################################
#
#-----[ AÇ ]------------------------------------------
#
includes/usercp_register.php
#
#-----[ BUL ]------------------------------------------
#
$sql = "INSERT INTO " . GROUPS_TABLE . " (group_name, group_description, group_single_user, group_moderator)
#
#-----[ ÖNCESINE EKLE ]------------------------------------------
#
//
// Forum Kuralları BerKaY
//
$sql = "UPDATE " . USERS_TABLE . "
SET user_new_privmsg = '1', user_last_privmsg = '7777777777'
WHERE user_id = $user_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not update users table', '', __LINE__, __FILE__, $sql);
}
$forumkural_pm_subject = $lang['forumkural_pm_subject'];
$forumkural_pm = $lang['forumkural_pm'];
$privmsgs_date = date("U");
$sql = "INSERT INTO " . PRIVMSGS_TABLE . " (privmsgs_type, privmsgs_subject, privmsgs_from_userid, privmsgs_to_userid, privmsgs_date, privmsgs_enable_html, privmsgs_enable_bbcode, privmsgs_enable_smilies, privmsgs_attach_sig) VALUES ('0', '" . str_replace("\'", "''", addslashes(sprintf($forumkural_pm_subject,$board_config['sitename']))) . "', '2', " . $user_id . ", " . $privmsgs_date . ", '0', '1', '1', '0')";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not insert private message sent info', '', __LINE__, __FILE__, $sql);
}
$privmsg_sent_id = $db->sql_nextid();
$privmsgs_text = $lang['formkural_pm_subject'];
//
$sql = "INSERT INTO " . PRIVMSGS_TEXT_TABLE . " (privmsgs_text_id, privmsgs_text) VALUES ($privmsg_sent_id, '" . str_replace("\'", "''", addslashes(sprintf($forumkural_pm,$board_config['sitename'],$board_config['sitename']))) . "')";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not insert private message sent text', '', __LINE__, __FILE__, $sql);
}
// Forum Kuralları BerKaY
#
#-----[ AÇ ]------------------------------------------
#
language/lang_turkish/lang_main.php
#
#-----[ BUL ]------------------------------------------
#
$lang['New_pm'] = '%d yeni mesajınız var'; // You have 1 new message
#
#-----[ SONRASINA EKLE ]------------------------------------------
#
// Forum Kuralları -- BerKaY
$lang['forumkural_pm_subject'] = '%s Forum Kuralları';
$lang['forumkural_pm'] = 'Sitemize Hoşgeldiniz Lütfen Forum Kurallarını Okuyunuz... (http://sizinsiteniz.com/viewtopic.php?p=)';
// Forum Kuralları -- BerKaY
#
#-----[ TÜM DOSYALARI KAPAT/KAYDET ]------------------------------------------
#
# SoN