Napisane na szybko,
pamiętaj o kopii zapasowej plików: [phpbb]
#
#--[ OTWÓRZ ]--
#
/posting.php
#
#--[ ZNAJDŹ ]--
#
prepare_post($mode, $post_data, $bbcode_on, $html_on, $smilies_on, $error_msg, $username, $bbcode_uid, $subject, $message, $poll_title, $poll_options, $poll_length);
#
#--[ DODAJ PO ]--
#
if ( $mode == 'newtopic' || ( $mode == 'editpost' && $post_data['first_post'] ) )
{
$sql = "SELECT topic_id FROM " . TOPICS_TABLE . "
WHERE forum_id = '$forum_id'
AND topic_title = '$subject'";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain topic title data', '', __LINE__, __FILE__, $sql);
}
$titledata = $db->sql_fetchrow($result);
if( !empty($titledata['topic_id']) )
{
$error_msg .= ( (!empty($error_msg)) ? '<br />' : '' ) . sprintf($lang['topic_title_exists'], '<a href="' . append_sid($phpbb_root_path . "viewtopic.$phpEx?" . POST_TOPIC_URL . '=' . intval($titledata['topic_id'])) . '">', '</a>');
}
}
#
#--[ OTWÓRZ ]--
#
/languages/lang_polish/lang_main.php
#
#--[ ZNAJDŹ ]--
#
?>
#
#--[ DODAJ PRZED ]--
#
$lang['topic_title_exists'] = 'Istnieje już temat o takim tytule. %sKliknij, aby przejść do tego tematu%s';
#
#--[ ZAPISZ, ZAMKNIJ ]--
#EoM[/phpbb]
Autor postu otrzymał pochwałę
+Termit
ON WIE LEPIEJ
Uwagi moderatora Termit (dodane 20 Sie 2006, 14:05):
Ostatnio edytowany przez Termit 20 Sie 2006, 14:05, edytowano w sumie 3 razy