Спасибо за фикс
// [begin] First Post On Every Page Mod
$s_show_first_post = '<input type="checkbox" name="topic_show_first_post"';
if ( ( $mode == 'newtopic' || ( $mode == 'editpost' && $post_data['first_post'] ) ) && $is_auth['auth_mod'] )
{
$template->assign_block_vars('switch_show_first_post', array());
if ( $post_data['topic_show_first_post'] )
{
$s_show_first_post .= ' checked="checked"';
}
$s_show_first_post .= ' />';
}
// [end] First Post On Every Page Modif ( ( $mode == 'newtopic' || ( $mode == 'editpost' && $post_data['first_post'] ) ) && $is_auth['auth_mod'] )if ( $mode == 'newtopic' || ( $mode == 'editpost' && $post_data['first_post'] ) )
VVVas писал(а):, закрыто.
MDN1984 писал(а):Это как?
Siava писал(а):Это можно было бы не копировать, а то как бот

UPDATE phpbb_topics SET topic_show_first_post = '1';
Xpert писал(а):Визуальное отделение первого сообщения от остальных:
- Код: Выделить всё
[open]
viewtopic.php
[find]
$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
[after, add]
if ( ( $start != 0) && ($postrow[$i]['post_id'] == $forum_topic_data['topic_first_post_id']) )
{
$row_color = 'F5F5F5';
$row_class = 'rowfp';
}
[open]
subSilver.css
[find]
/* General font families for common tags */
[before, add]
td.rowfp {
background-color: #EFEFEF;
padding: 4px;
border-bottom: solid #D1D7DC 8px; }
Стиль меняем по своему усмотрению. Если у вас не внешняя таблица стилей - редактируйте overall_header.tpl.
Yara писал(а):закреплять посты могли все зарегистрированные пользователи?
Мастер Федя писал(а):и ещё: в файле posting.php нижеследующие изменения нужно проделать ДВА раза! иначе выдаёт ошибку. А в моде написано что добавить только один раз.
Xpert писал(а):Если у вас установлен Log Actions MOD, также дважды надо добавлять следующую строку:
Warning: Missing argument 22 for submit_post() in z:\home\172.28.0.77\www\forum\includes\functions_post.php on line 224
Warning: Cannot modify header information - headers already sent by (output started at z:\home\172.28.0.77\www\forum\includes\functions_post.php:224) in z:\home\172.28.0.77\www\forum\includes\page_header.php on line 483
Warning: Cannot modify header information - headers already sent by (output started at z:\home\172.28.0.77\www\forum\includes\functions_post.php:224) in z:\home\172.28.0.77\www\forum\includes\page_header.php on line 485
Warning: Cannot modify header information - headers already sent by (output started at z:\home\172.28.0.77\www\forum\includes\functions_post.php:224) in z:\home\172.28.0.77\www\forum\includes\page_header.php on line 486
submit_post($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id, $poll_id, $topic_type, $bbcode_on, $html_on, $smilies_on, $attach_sig, $bbcode_uid, str_replace("\'", "''", $username), str_replace("\'", "''", $subject), str_replace("\'", "''", $message), str_replace("\'", "''", $poll_title), $poll_options, $poll_length, $topic_show_first_post);submit_post($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id, $poll_id, $topic_type, $bbcode_on, $html_on, $smilies_on, $attach_sig, $bbcode_uid, str_replace("\'", "''", $username), str_replace("\'", "''", $subject), str_replace("\'", "''", $message), str_replace("\'", "''", $poll_title), $poll_options, $poll_length, $topic_show_first_post, $poll_choice); // [begin] First Post On Every Page Mod
$topic_show_first_post = ( ($topic_show_first_post != $post_data['topic_show_first_post']) && $is_auth['auth_mod'] ) ? $topic_show_first_post : $post_data['topic_show_first_post'];
// [end] First Post On Every Page Mod && $is_auth['auth_mod']Вернуться в Анонсы и поддержка модов для phpBB 2.0.x
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 0