Zainstalowałem moda i gdy chce wejść do tematu:
Kod:
Could not obtain topic information
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 'attach_setup_viewtopic_auth(GROUP BY p.post_id, t.topic_id, t.t
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, f.attached_forum_id, COUNT(p2.post_id) AS prev_posts FROM phpbb_topics t, phpbb_forums f, phpbb_posts p, phpbb_posts p2 WHERE p.post_id = 1681 AND t.topic_id = p.topic_id AND p2.topic_id = p.topic_id AND p2.post_id <= 1681 AND f.forum_id = t.forum_id attach_setup_viewtopic_auth(GROUP BY p.post_id, 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 ORDER BY p.post_id ASC, SELECT * FROM phpbb_shoutbox_config); GROUP BY p.post_id, 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 ORDER BY p.post_id ASC
Line : 311
File : viewtopic.php
Czy możliwe że gdzieś coś przeoczyłem ??
Z instrukcji:
Kod:
viewtopic.php
#
#-----[ FIND ]---------------------------------------------
# around line 146
AND f.forum_id = t.forum_id
$order_sql";
#
#-----[ AFTER, ADD ]---------------------------------------
#
attach_setup_viewtopic_auth($order_sql, $sql);
#
#-----[ FIND ]---------------------------------------------
# around line 580
$s_auth_can .= ( ( $is_auth['auth_vote'] ) ? $lang['Rules_vote_can'] : $lang['Rules_vote_cannot'] ) . '<br />';
#
#-----[ AFTER, ADD ]---------------------------------------
#
attach_build_auth_levels($is_auth, $s_auth_can);
#
#-----[ FIND ]---------------------------------------------
# around line 810
//
// Update the topic view counter
#
#-----[ BEFORE, ADD ]---------------------------------------
#
init_display_post_attachments($forum_topic_data['topic_attachment']);
#
#-----[ FIND ]---------------------------------------------
# around line 1205
'U_POST_ID' => $postrow[$i]['post_id'])
);
#
#-----[ AFTER, ADD ]---------------------------------------
# The Line have to be added AFTER the ');'
display_post_attachments($postrow[$i]['post_id'], $postrow[$i]['post_attachment']);
Zrobione. To nie wiem, gdzie może być błąd.
A przy napisaniu posta:
Kod:
Error in posting
DEBUG MODE
INSERT INTO phpbb_posts (topic_id, forum_id, poster_id, post_username, post_time, poster_ip, enable_bbcode, enable_html, enable_smilies, enable_sig, post_icon) VALUES (158, 16, 2, 'utyu', 1124461599, 'c26ad282', 1, 1, 1, fa5ae37d60, 0)
Line : 302
File : functions_post.php
Choć tego pliku się nie edytuje w tej modyfikacji.
E-chomik.eu 