HooLIGUN Posted January 19, 2018 Share Posted January 19, 2018 Добрый вечер.Имеется раздел, в котором пользователи могут видеть только свои темы.Можно ли как то сделать, чтобы они видели тему, которую создал админ? Мне нужно сделать некий образец создания тем. Описание форума мало кто смотрит. Link to comment Share on other sites More sharing options...
newbie Posted January 20, 2018 Share Posted January 20, 2018 1. \admin\applications\forums\sources\classes\forums\class_forums.php if( $return ) { return false; } $this->registry->getClass('output')->showError( 'forums_no_view_topic', 103137, null, null, 404 );заменить на if ($topic['tid'] != 12345) { if( $return ) { return false; } $this->registry->getClass('output')->showError( 'forums_no_view_topic', 103137, null, null, 404 ); } 2. \admin\applications\forums\modules_public\forums\topics.php $this->registry->output->showError( 'topics_not_yours2', 10360, null, null, 403 );заменить на if ($topicData['tid'] != 12345) { $this->registry->output->showError( 'topics_not_yours2', 10360, null, null, 403 ); } 3. \admin\applications\forums\modules_public\forums\forums.php $add_query_array[] = "t.starter_id='".$this->memberData['member_id']."'";заменить на $add_query_array[] = "(t.starter_id='".$this->memberData['member_id']."' OR t.tid=12345)"; 12345 - ID темы 2 Link to comment Share on other sites More sharing options...
HooLIGUN Posted January 20, 2018 Author Share Posted January 20, 2018 Ого..спасибо 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