p.s. поиск по фразе "блокировать первое сообщение" ничего вразумительного не сказал.

[-- 2 недели спустя --]



Здесьvelo писал(а): где именно может быть проблема
Код: Выделить всё
$sql = ($mode != "editpost") ? "INSERT INTO " . TOPICS_TABLE . " (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_vote, topic_show_first_post) VALUES ('$post_subject', " . $userdata['user_id'] . ", $current_time, $forum_id, " . TOPIC_UNLOCKED . ", $topic_type, $topic_vote, $topic_show_first_post)" : "UPDATE " . TOPICS_TABLE . " SET topic_title = '$post_subject', topic_type = $topic_type, topic_show_first_post = '$topic_show_first_post'" . (($post_data['edit_vote'] || !empty($poll_title)) ? ", topic_vote = " . $topic_vote : "") . " WHERE topic_id = $topic_id";
скажите пожалуйста как решается эта проблема.. для пхпбб3 решение есть, но оно не подходит для втрой версии:/nazar писал(а):У меня стоит модкак сделать чтоб первое сообщение всегда оставалось под номером 1, а не под 16,31 итд?Код: Выделить всё
############################################################## ## MOD Title: post numbers ## MOD Author: emrag < emrah987@hotmail.com > (Emrah Tьrkmen) www.canver.net ## MOD Description: with this hack all messages will have a number. ## in all topics this number will start from one (1) ## when you click this number you will see this message's direct link. ## now when you want to show any messages to your friend send this link ## He/she will go direct to your showed message.
Код: Выделить всё
$post_number = $i+$start;
$post_number = $post_number+1;
Код: Выделить всё
if ( $forum_topic_data['topic_show_first_post'] && ( $start != 0) )
{
$post_number = ($post_id == $topic_data['topic_first_post_id']) ? 1 : ($i + $start);
}
else
{
$post_number = ($i + $start + 1);
}