Bulick Posted July 3, 2013 Share Posted July 3, 2013 Доброго дня! Столкнулся с такой проблемой, участник конференции в "Личных Сообщениях" случайно вышел из переписки.Обратно добавить его уже не могу, пишет: "Невозможно кого-либо пригласить, либо потому что вы ввели неверные имена пользователей или эти пользователи уже приглашены". Прошу помочь в данной проблеме добавления участника обратно в переписку.Заранее благодарю! Link to comment Share on other sites More sharing options...
Bot Posted July 3, 2013 Share Posted July 3, 2013 Обратите внимание По указанному вами в профиле "Board url" находится не IP.Board, либо модифицированный пиратский скрипт с удаленными копирайтами. Если вы указали неверный URL, пожауйста, поправьте его, потому что он скорее всего потребуется при диагностике вашей проблемы. Нелицензионные скрипты не приветствуются, т.к. зачастую именно некорректное "нуление" и является причиной проблем в них. Link to comment Share on other sites More sharing options...
siv1987 Posted July 3, 2013 Share Posted July 3, 2013 Выполнить SQL запрос UPDATE ibf_message_topic_user_map SET map_user_active=1 WHERE map_user_id=ид_пользователя AND map_topic_id=ид_темы_лс; UPDATE ibf_message_topics SET mt_to_count=mt_to_count+1 WHERE mt_id=ид_темы_лс; ibf_ - префикс к таблице.ид_пользователя - ид пользователя который "случайно вышел из переписки".ид_темы_лс - ид темы личного сообщения. Можно узнать посмотрев topicID в адресе личного сообщения. 2 Link to comment Share on other sites More sharing options...
Bulick Posted July 3, 2013 Author Share Posted July 3, 2013 благодарю!однако другой вопрос, только таким образом каждый необходимый раз?может можно настроить удаление/восстановление вышедших из переписки без SQL запросов вручную? Link to comment Share on other sites More sharing options...
siv1987 Posted July 3, 2013 Share Posted July 3, 2013 Наверное если подправить скрипт то можно. Пока же только так. Link to comment Share on other sites More sharing options...
siv1987 Posted July 3, 2013 Share Posted July 3, 2013 Собственно \admin\applications\members\sources\classes\messaging\messengerFunctions.php Найти unset( $invitedUsersData[ $id ] ); Заменить на if( $currentParticipants[ $id ]['map_user_active'] ) { unset( $invitedUsersData[ $id ] ); } Найти $this->DB->insert( 'message_topic_user_map', array( 'map_user_id' => $id, 'map_topic_id' => $topicID, 'map_folder_id' => 'myconvo', 'map_user_active' => 1, 'map_has_unread' => 1, 'map_user_banned' => 0, 'map_read_time' => 0, 'map_left_time' => 0, 'map_ignore_notification' => 0, 'map_last_topic_reply' => $topicData['mt_last_post_time'] ) ); Заменить на if( ! $currentParticipants[ $id ] ) { $this->DB->insert( 'message_topic_user_map', array( 'map_user_id' => $id, 'map_topic_id' => $topicID, 'map_folder_id' => 'myconvo', 'map_user_active' => 1, 'map_has_unread' => 1, 'map_user_banned' => 0, 'map_read_time' => 0, 'map_left_time' => 0, 'map_ignore_notification' => 0, 'map_last_topic_reply' => $topicData['mt_last_post_time'] ) ); } else { $this->DB->update( 'message_topic_user_map', array('map_user_active' => 1), 'map_topic_id='.$topicID.' AND map_user_id='.$id ); } 1 Link to comment Share on other sites More sharing options...
Qartvela™ Posted July 3, 2013 Share Posted July 3, 2013 @siv1987, То есть:One or more recipients are already participating in this conversation Link to comment Share on other sites More sharing options...
newbie Posted July 4, 2013 Share Posted July 4, 2013 @siv1987, То есть:One or more recipients are already participating in this conversationДа Link to comment Share on other sites More sharing options...
siv1987 Posted July 4, 2013 Share Posted July 4, 2013 One or more recipients are already participating in this conversationНо существующие пользователи в конверсации естественно добавлять уже нельзя. Только те, которые были, но вышли (удалили) тему. Просто на самом деле в бд запись о них не удаляется, и при повторном добавлении они считаются участниками беседы, поэтому и появляется "... эти пользователи уже приглашены" Link to comment Share on other sites More sharing options...
Bulick Posted July 4, 2013 Author Share Posted July 4, 2013 благодарствую! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now