Xpert писал(а):А у вас стиль точно внешний, а не в overall_header.tpl?
я правила и в overall_header.tpl и в subSilver.css
Xpert писал(а):А у вас стиль точно внешний, а не в overall_header.tpl?
viewtopic.php
в чистом 2.0.18 это начинается с 422 строки:
- Код: Выделить всё
$resync = FALSE;
if ($forum_topic_data['topic_replies'] + 1 < $start + count($postrow))
{
$resync = TRUE;
}
добавил одну строчку:
- Код: Выделить всё
$resync = FALSE;
if ($forum_topic_data['topic_replies'] + 1 < $start + count($postrow))
{
if (!$forum_topic_data['topic_show_first_post'])
$resync = TRUE;
}
всё встало на место
//
// Go ahead and pull all data for this topic
//
//-- mod start : Garage ----------------------------------------------------------------------------------------------------
//-- modify
$sql = "SELECT u.username, u.user_id, u.user_posts, u.user_from, u.user_from_flag, u.user_website, u.user_email, u.user_icq, u.user_aim, u.user_yim, u.user_regdate, u.user_msnm, u.user_viewemail, u.user_rank, u.user_sig, u.user_sig_bbcode_uid, u.user_avatar, u.user_avatar_type, u.user_allowavatar, u.user_allowsmile, u.user_birthday, u.user_next_birthday_greeting, p.*, pt.post_text, pt.post_subject, pt.bbcode_uid, g.made_year, makes.make, models.model, g.id as garage_id
FROM ( " . POSTS_TABLE . " p, " . USERS_TABLE . " u, " . POSTS_TEXT_TABLE . " pt )
LEFT JOIN " . GARAGE_TABLE ." g ON ( g.member_id = p.poster_id and g.main_vehicle = 1)
LEFT JOIN " . GARAGE_MAKES_TABLE . " makes ON (g.make_id = makes.id)
LEFT JOIN " . GARAGE_MODELS_TABLE . " models ON (g.model_id = models.id)
WHERE p.topic_id = $topic_id
$limit_posts_time
AND pt.post_id = p.post_id
AND u.user_id = p.poster_id
ORDER BY p.post_time $post_time_order
LIMIT $start, ".$board_config['posts_per_page'];
//-- mod finish : Garage ---------------------------------------------------------------------------------------------------
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Could not obtain post/user information.", '', __LINE__, __FILE__, $sql);
}
$postrow = array();
// [begin] First Post On Every Page Mod
if ( $forum_topic_data['topic_show_first_post'] && ( $start != 0) )
{
$sql = "SELECT u.username, u.user_id, u.user_posts, u.user_from, u.user_from_flag, u.user_website, u.user_email, u.user_icq, u.user_aim, u.user_yim, u.user_regdate, u.user_msnm, u.user_viewemail, u.user_rank, u.user_sig, u.user_sig_bbcode_uid, u.user_avatar, u.user_avatar_type, u.user_allowavatar, u.user_allowsmile, u.user_birthday, u.user_next_birthday_greeting, p.*, pt.post_text, pt.post_subject, pt.bbcode_uid, g.made_year, makes.make, models.model, g.id as garage_id
FROM ( " . POSTS_TABLE . " p, " . USERS_TABLE . " u, " . POSTS_TEXT_TABLE . " pt )
LEFT JOIN " . GARAGE_TABLE ." g ON ( g.member_id = p.poster_id and g.main_vehicle = 1)
LEFT JOIN " . GARAGE_MAKES_TABLE . " makes ON (g.make_id = makes.id)
LEFT JOIN " . GARAGE_MODELS_TABLE . " models ON (g.model_id = models.id)
WHERE p.post_id = " . $forum_topic_data['topic_first_post_id'] . "
AND pt.post_id = p.post_id
AND u.user_id = p.poster_id";
if ( !($first_post_result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Could not obtain first post/user information.", '', __LINE__, __FILE__, $sql);
}
$postrow[] = $db->sql_fetchrow($first_post_result);
$db->sql_freeresult($first_post_result);
}
// [end] First Post On Every Page Mod//
// [begin] First Post On Every Page Mod
if ( $forum_topic_data['topic_show_first_post'] && ( $start != 0) )
{
$sql = "SELECT u.username, u.user_id, u.user_posts, u.user_from, u.user_from_flag, u.user_website, u.user_email, u.user_icq, u.user_aim, u.user_yim, u.user_regdate, u.user_msnm, u.user_viewemail, u.user_rank, u.user_sig, u.user_sig_bbcode_uid, u.user_avatar, u.user_avatar_type, u.user_allowavatar, u.user_allowsmile, u.user_birthday, u.user_next_birthday_greeting, p.*, pt.post_text, pt.post_subject, pt.bbcode_uid, ft.flag_name, g.made_year, makes.make, models.model, g.id as garage_id
FROM ( " . POSTS_TABLE . " p, " . USERS_TABLE . " u, " . POSTS_TEXT_TABLE . " pt, " . FLAG_TABLE . " ft )
LEFT JOIN " . GARAGE_TABLE ." g ON ( g.member_id = p.poster_id and g.main_vehicle = 1)
LEFT JOIN " . GARAGE_MAKES_TABLE . " makes ON (g.make_id = makes.id)
LEFT JOIN " . GARAGE_MODELS_TABLE . " models ON (g.model_id = models.id)
WHERE p.post_id = " . $forum_topic_data['topic_first_post_id'] . "
AND pt.post_id = p.post_id
AND u.user_id = p.poster_id
AND ft.flag_image = u.user_from_flag";
if ( !($first_post_result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Could not obtain first post/user information.", '', __LINE__, __FILE__, $sql);
}
$postrow[] = $db->sql_fetchrow($first_post_result);
$db->sql_freeresult($first_post_result);
}
// [end] First Post On Every Page Mod//
// Go ahead and pull all data for this topic
//
//-- mod start : Garage ----------------------------------------------------------------------------------------------------
//-- modify
$sql = "SELECT u.username, u.user_id, u.user_posts, u.user_from, u.user_from_flag, u.user_website, u.user_email, u.user_icq, u.user_aim, u.user_yim, u.user_regdate, u.user_msnm, u.user_viewemail, u.user_rank, u.user_sig, u.user_sig_bbcode_uid, u.user_avatar, u.user_avatar_type, u.user_allowavatar, u.user_allowsmile, u.user_birthday, u.user_next_birthday_greeting, p.*, pt.post_text, pt.post_subject, pt.bbcode_uid, ft.flag_name, g.made_year, makes.make, models.model, g.id as garage_id
FROM ( " . POSTS_TABLE . " p, " . USERS_TABLE . " u, " . POSTS_TEXT_TABLE . " pt )
LEFT JOIN " . FLAG_TABLE . " ft ON (ft.flag_image = u.user_from_flag)
LEFT JOIN " . GARAGE_TABLE . " g ON (g.member_id = p.poster_id and g.main_vehicle = 1)
LEFT JOIN " . GARAGE_MAKES_TABLE . " makes ON (g.make_id = makes.id)
LEFT JOIN " . GARAGE_MODELS_TABLE . " models ON (g.model_id = models.id)
WHERE p.topic_id = $topic_id
$limit_posts_time
AND pt.post_id = p.post_id
AND u.user_id = p.poster_id
ORDER BY p.post_time $post_time_order
LIMIT $start, ".$board_config['posts_per_page'];
//-- mod finish : Garage ---------------------------------------------------------------------------------------------------
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Could not obtain post/user information.", '', __LINE__, __FILE__, $sql);
}
$postrow = array();
// [begin] First Post On Every Page Mod
if ( $forum_topic_data['topic_show_first_post'] && ( $start != 0) )
{
$sql = "SELECT u.username, u.user_id, u.user_posts, u.user_from, u.user_from_flag, u.user_website, u.user_email, u.user_icq, u.user_aim, u.user_yim, u.user_regdate, u.user_msnm, u.user_viewemail, u.user_rank, u.user_sig, u.user_sig_bbcode_uid, u.user_avatar, u.user_avatar_type, u.user_allowavatar, u.user_allowsmile, u.user_birthday, u.user_next_birthday_greeting, p.*, pt.post_text, pt.post_subject, pt.bbcode_uid, ft.flag_name, g.made_year, makes.make, models.model, g.id as garage_id
FROM ( " . POSTS_TABLE . " p, " . USERS_TABLE . " u, " . POSTS_TEXT_TABLE . " pt )
LEFT JOIN " . FLAG_TABLE . " ft ON (ft.flag_image = u.user_from_flag)
LEFT JOIN " . GARAGE_TABLE ." g ON ( g.member_id = p.poster_id and g.main_vehicle = 1)
LEFT JOIN " . GARAGE_MAKES_TABLE . " makes ON (g.make_id = makes.id)
LEFT JOIN " . GARAGE_MODELS_TABLE . " models ON (g.model_id = models.id)
WHERE p.post_id = " . $forum_topic_data['topic_first_post_id'] . "
AND pt.post_id = p.post_id
AND u.user_id = p.poster_id";
if ( !($first_post_result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Could not obtain first post/user information.", '', __LINE__, __FILE__, $sql);
}
$postrow[] = $db->sql_fetchrow($first_post_result);
$db->sql_freeresult($first_post_result);
}
// [end] First Post On Every Page Mod#-----[ FIND ]------------------------------------------
#
$sql = "SELECT t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_time, t.topic_type, t.topic_vote, t.topic_last_post_id, f.forum_name, f.forum_status, f.forum_id, f.auth_view, f.auth_read, f.auth_post, f.auth_reply, f.auth_edit, f.auth_delete, f.auth_sticky, f.auth_announce, f.auth_pollcreate, f.auth_vote, f.auth_attachments" . $count_sql . "
#
#-----[ IN-LINE FIND ]------------------------------------------
#
, t.topic_last_post_id
#
#-----[ IN-LINE BEFORE, ADD ]------------------------------------------
#
, t.topic_show_first_post, t.topic_first_post_idALTER TABLE `phpbb_topics` ADD `topic_show_first_post` TINYINT( 1 ) UNSIGNED DEFAULT '1' NOT NULL ; ## Files To Edit: posting.php
## privmsg.php
## language/lang_russian/lang_main.php
## language/lang_english/lang_main.php
## templates/subSilver/posting_body.tpl
Xpert писал(а):Какая ошибка?
go писал(а):На форуме установлены моды:
1.color_groups
2.junior_admin
3.last_forum_topic_on_index
4.quick_reply_3.0.3
5.glance
6.translit_mod
7.Recycle Bin
8.addon k korzine-MOD_Post_move_to_a_bin_forum-
9.jumpbox
в базу данных послан запрос
ALTER TABLE `phpbb_topics` ADD `topic_show_first_post` TINYINT( 1 ) UNSIGNED DEFAULT '1' NOT NULL ;
все проделано тщательно,но когда начинаешь просматривать viewtopic.php ..на последней странице имено ,на последней странице многостраничной темы
для админов и тех кто имеет вход в админ панель
выдается ошибка
Fatal error: Cannot redeclare make_forum_select() (previously declared in /home/.../public_html/.../includes/functions_admin.php:27) in /home/.../public_html/.../includes/functions_admin.php on line 27
#-----[ OPEN ]------------------------------------------
#
includes/functions_post.php
#
#-----[ FIND ]------------------------------------------
#
if (!defined('IN_PHPBB'))
{
die('Hacking attempt');
}
#
#-----[ BEFORE, ADD ]------------------------------------------
#
include($phpbb_root_path . 'includes/functions_admin.'.$phpEx);
Nau, 12.02.2007 21:56:19:
Error in posting
DEBUG MODE
SQL Error : 1136 Column count doesn't match value count at row 1
INSERT INTO phpbb_topics (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_vote, topic_show_first_post) VALUES ('название темы', 6, 1171306569, 1, 0, 2, 0)
Line : 270
File : functions_post.php2, 0)Error in posting
DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1
INSERT INTO phpbb_topics (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_vote, topic_show_first_post) VALUES ('ё12', 2436, 1171566561, 70, 0, 0, 0, )
Line : 270
File : functions_post.php$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";Вернуться в Анонсы и поддержка модов для phpBB 2.0.x
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 0