Alexander.3 0 03/20/2014 06:57 AM Хочу выполнить SQL запрос при отправке сообщения/создании топика или голосования.Где выполняются эти функции? Share this post Link to post
siv1987 2,629 03/20/2014 08:38 AM Если не ошибаюсь admin\applications\forums\sources\classes\post\classPost.php Share this post Link to post
siv1987 2,629 03/20/2014 09:58 AM Или хук dataHooks postAddReplyhttp://ipbskins.ru/forum/topic10049.html/page__view__findpost__p__65536 Share this post Link to post
Alexander.3 0 03/20/2014 10:29 AM Примерно на 1100 строчке нашел//-----------------------------------------//UPDATE TOPIC//-----------------------------------------Добавил после свой запрос. Протестировал все возможные варианты кроме голосования, вроде работает как нужно. Делает запрос только при сообщениях. Теперь нужно найти как отнимать при удалении =)) Share this post Link to post
Alexander.3 0 03/20/2014 03:51 PM (edited) В moderate нашелprotected function _deletePost() Изменил:$post = $this->DB->buildAndFetch( array( 'select' => 'pid, author_id, post_date, new_topic', 'from' => 'posts', 'where' => "topic_id={$this->topic['tid']} and pid=" . $this->request['p'] ) );на$post = $this->DB->buildAndFetch( array( 'select' => 'pid, author_id, post_date, new_topic, author_name', 'from' => 'posts', 'where' => "topic_id={$this->topic['tid']} and pid=" . $this->request['p'] ) ); Реакции никакой, пустота.$post['author_name'] Edited March 20, 2014 by Alexander.3 Share this post Link to post
Alexander.3 0 03/21/2014 06:41 PM а нет, все работает. Виновата - невнимательность. Share this post Link to post