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";nazar писал(а):У меня стоит мод
- Код: Выделить всё
##############################################################
## 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.
как сделать чтоб первое сообщение всегда оставалось под номером 1, а не под 16,31 итд?
$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);
}Вернуться в Анонсы и поддержка модов для phpBB 2.0.x
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 0