Leo_Skywalker Опубликовано 28 Июля 2008 Жалоба Поделиться Опубликовано 28 Июля 2008 Подскажите плиз! Хотел посмотреть, что это за мод на форуме версии 2.3.5, но нашёл отличия в коде. В инструкции говорится, что в файле func_msg.php после следующего места: $sent_count = $this->_get_dir_count( $this->from_member['vdirs'], 'sent' ); $this->rebuild_dir_count( $this->from_member['id'], "", 'sent', $sent_count + 1, 'save', "msg_total=msg_total+1" ); $this->ipsclass->DB->do_insert( 'message_topics', array( 'mt_msg_id' => $msg_id, 'mt_date' => time(), 'mt_title' => $this->msg_title, 'mt_from_id' => $this->from_member['id'], 'mt_to_id' => $this->send_to_member['id'], 'mt_vid_folder' => 'sent', 'mt_tracking' => 0, 'mt_addtosent' => 0, 'mt_hasattach' => intval($no_attachments), 'mt_owner_id' => $this->from_member['id'], Нужно вставить это: //----------------------------------------- // D22-PM Logs //----------------------------------------- $this->ipsclass->DB->do_update('pm_logs', array('pm_sent_copy' => $this->ipsclass->DB->get_insert_id()), 'pm_id='.$pmlogid); Но на моей версии форума файл func_msg.php выглядет несколько иначе, а именно указанное место (см. последнюю строчку): $sent_count = $this->_get_dir_count( $this->from_member['vdirs'], 'sent' ); $this->rebuild_dir_count( $this->from_member['id'], "", 'sent', $sent_count + 1, 'save', "msg_total=msg_total+1" ); $this->ipsclass->DB->do_insert( 'message_topics', array( 'mt_msg_id' => $msg_id, 'mt_date' => time(), 'mt_title' => $this->msg_title, 'mt_from_id' => $this->from_member['id'], 'mt_to_id' => $this->send_to_member['id'], 'mt_vid_folder' => 'sent', 'mt_tracking' => 0, 'mt_addtosent' => 0, 'mt_hasattach' => intval($no_attachments), 'mt_owner_id' => $this->from_member['id'], 'mt_hide_cc' => $this->hide_cc,В итоге выдает ошибку БД при использовании ЛС! Подскажите! Цитата Ссылка на комментарий Поделиться на других сайтах Прочее
rusbest Опубликовано 23 Сентября 2008 Жалоба Поделиться Опубликовано 23 Сентября 2008 open source/lib/func_msg.php find:: if ( $this->add_sent ) { $sent_count = $this->_get_dir_count( $this->from_member['vdirs'], 'sent' ); $this->rebuild_dir_count( $this->from_member['id'], "", 'sent', $sent_count + 1, 'save', "msg_total=msg_total+1" ); $this->ipsclass->DB->do_insert( 'message_topics', array( 'mt_msg_id' => $msg_id, 'mt_date' => time(), 'mt_title' => $this->msg_title, 'mt_from_id' => $this->from_member['id'], 'mt_to_id' => $this->send_to_member['id'], 'mt_vid_folder' => 'sent', 'mt_tracking' => 0, 'mt_addtosent' => 0, 'mt_hasattach' => intval($no_attachments), 'mt_owner_id' => $this->from_member['id'], 'mt_hide_cc' => $this->hide_cc, ) ); add after ::: //----------------------------------------- // D22-PM Logs //----------------------------------------- $this->ipsclass->DB->do_update('pm_logs', array('pm_sent_copy' => $this->ipsclass->DB->get_insert_id()), 'pm_id='.$pmlogid); Цитата Ссылка на комментарий Поделиться на других сайтах Прочее
Рекомендуемые сообщения
Присоединиться к обсуждению
Вы можете ответить сейчас, а зарегистрироваться позже. Если у вас уже есть аккаунт, войдите, чтобы ответить от своего имени.