Neonaft писал(а):В общем, ребят, советую кому-нибудь самому умному и терпеливому взять, сделать все изменения в моде, приписать к нему аддон, пофиксить все баги и выложить новую версию сюда, иначе новичку фиг два разобраться со всеми модификациями.

switch ( $mode )
{
case 'editpost':
// Log Actions Start
$username = ( !empty($HTTP_POST_VARS['username']) ) ? $HTTP_POST_VARS['username'] : '';
$subject = ( !empty($HTTP_POST_VARS['subject']) ) ? trim($HTTP_POST_VARS['subject']) : '';
$message = ( !empty($HTTP_POST_VARS['message']) ) ? $HTTP_POST_VARS['message'] : '';
$poll_title = ( isset($HTTP_POST_VARS['poll_title']) && $is_auth['auth_pollcreate'] ) ? $HTTP_POST_VARS['poll_title'] : '';
$poll_options = ( isset($HTTP_POST_VARS['poll_option_text']) && $is_auth['auth_pollcreate'] ) ? $HTTP_POST_VARS['poll_option_text'] : '';
$poll_length = ( isset($HTTP_POST_VARS['poll_length']) && $is_auth['auth_pollcreate'] ) ? $HTTP_POST_VARS['poll_length'] : '';
$bbcode_uid = '';
prepare_post($mode, $post_data, $bbcode_on, $html_on, $smilies_on, $error_msg, $username, $bbcode_uid, $subject, $message, $poll_title, $poll_options, $poll_length, $topic_show_first_post, $topic_desc, $topic_announce_duration);
if ( $error_msg == '' )
{
$topic_type = ( $topic_type != $post_data['topic_type'] && !$is_auth['auth_sticky'] && !$is_auth['auth_announce'] ) ? $post_data['topic_type'] : $topic_type;
$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'];
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, $topic_desc, $topic_announce_duration);
// Log actions MOD Start
if ( $is_auth['auth_mod'] )
{
log_action('edit', $topic_id, $userdata['user_id'], $userdata['username']);
}
// Log actions MOD EndWarning: mysql_connect(): Access denied for user 'www2'@'localhost' (using password: NO) in k:\home\www2\www\db\mysql4.php on line 48
Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in k:\home\www2\www\db\mysql4.php on line 330
Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in k:\home\www2\www\db\mysql4.php on line 331
phpBB : Критическая ошибка
Could not connect to the databaseMak_i писал(а):1) кнопки "Logs Actions" выходит сообщение: "You have not yet delete the file install_tables.php : do it before trying to see this page".
Но никаго файла с таким названием в корне форума нет. Не подскажите, где может лежать этот файл или это надо просто в базе подправить?
Mak_i писал(а):SQL Error : 1146 Table 'exp06_tour.phpbb_logs_config' doesn't exist
Не подскажите, что именно не так? Может в базе надо что-то изменить?
baldahin писал(а):однако не смог победить admin_logs_postarchive.php
вылезаетКод: Выделить всё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 3 SELECT * FROM phpbb_posts_text WHERE post_id IN() Line : 93 File : admin_logs_postarchive.php
$sql = "SELECT *
FROM " . POSTS_TEXT_TABLE . "
WHERE post_id IN($_GET[post_id])";baldahin писал(а):однако не смог победить admin_logs_postarchive.php
вылезаетКод: Выделить всё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 3 SELECT * FROM phpbb_posts_text WHERE post_id IN() Line : 93 File : admin_logs_postarchive.php
$sql = "SELECT *
FROM " . POSTS_TEXT_TABLE . "
WHERE post_id IN($_GET[post_id])";Вернуться в Поддержка модов для phpBB 2.0.x
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 0