묻고답하기

아래는 블루게이트님의 상담글을 지정된 한사람만 볼수있도록 하신 기능입니다.
그런데 제가
1.4.4.4버전을 사용중인데 버전이 틀려서그런지
수정하면 에러가
Warning
: Cannot modify header information - headers already sent by (output started at /home/hosting_users/incline2010/www/main/modules/board/board.view.php:1) in /home/hosting_users/incline2010/www/main/classes/display/DisplayHandler.class.php on line 67

Warning
: Cannot modify header information - headers already sent by (output started at /home/hosting_users/incline2010/www/main/modules/board/board.view.php:1) in /home/hosting_users/incline2010/www/main/classes/display/DisplayHandler.class.php on line
253

Warning
: Cannot modify header information - headers already sent by (output started at /home/hosting_users/incline2010/www/main/modules/board/board.view.php:1) in /home/hosting_users/incline2010/www/main/classes/display/DisplayHandler.class.php on line
254

Warning
: Cannot modify header information - headers already sent by (output started at /home/hosting_users/incline2010/www/main/modules/board/board.view.php:1) in /home/hosting_users/incline2010/www/main/classes/display/DisplayHandler.class.php on line
255

Warning
: Cannot modify header information - headers already sent by (output started at /home/hosting_users/incline2010/www/main/modules/board/board.view.php:1) in /home/hosting_users/incline2010/www/main/classes/display/DisplayHandler.class.php on line
256

Warning
: Cannot modify header information - headers already sent by (output started at /home/hosting_users/incline2010/www/main/modules/board/board.view.php:1) in /home/hosting_users/incline2010/www/main/classes/display/DisplayHandler.class.php on line
257

Warning
: Cannot modify header information - headers already sent by (output started at /home/hosting_users/incline2010/www/main/modules/board/board.view.php:1) in /home/hosting_users/incline2010/www/main/classes/display/DisplayHandler.class.php on line
258

Warning
: Cannot modify header information - headers already sent by (output started at /home/hosting_users/incline2010/www/main/modules/board/board.view.php:1) in /home/hosting_users/incline2010/www/main/classes/display/DisplayHandler.class.php on line
77

Warning
: Cannot modify header information - headers already sent by (output started at /home/hosting_users/incline2010/www/main/modules/board/board.view.php:1) in /home/hosting_users/incline2010/www/main/classes/display/DisplayHandler.class.php on line
77
나타납니다.
혹시 1.4.4.4버전으로 수정해주실분안계신가요??
꼭좀 부탁드립니다.

========================================================================
블루게이트님의 기능설명부분입니다.

상담기능에서 내용을 보여주고 싶은 1인 등록하기

상담기능은 작성자와 관리자 이외에는 볼수없게 하는 기능이다. 
좋은 기능이긴 하나 관리자가 작성한 글을 다른이에게 보여줄수 없다는 불편함이 있다.

이문제를 해결하기 위해 확장변수를 이용하여
추가로 보여주고자 하는 1인의 아이디를 등록하는 방법이다.

수정대상 : ./ modules / board / board.view.php
수정전 :
                // 상담기능이 사용되고 공지사항이 아니고 사용자의 글도 아니면 무시
                if($oDocument->isExists() && $this->consultation && !$oDocument->isNotice()) {
                    $logged_info = Context::get('logged_info');
                    if($oDocument->get('member_srl')!=$logged_info->member_srl) $oDocument = new DocumentItem();
                }
                .
                .
                .
               // 상담 기능이 on되어 있으면 현재 로그인 사용자의 글만 나타나도록 옵션 변경
            if($this->consultation) {
                $logged_info = Context::get('logged_info');
                $args->member_srl = $logged_info->member_srl;
            }

수정후 :
                // 상담기능이 사용되고 공지사항이 아니고 사용자의 글도 아니면 무시
                if($oDocument->isExists() && $this->consultation && !$oDocument->isNotice()) {
                    $logged_info = Context::get('logged_info');
                    if($oDocument->get('member_srl')!=$logged_info->member_srl && $oDocument->get('extra_vars1')!=$logged_info->user_id) $oDocument = new DocumentItem();
                }
                .
                .
                .
            // 상담 기능이 on되어 있으면 현재 로그인 사용자의 글만 나타나도록 옵션 변경
            if($this->consultation) {
                $logged_info = Context::get('logged_info');
                $args->member_srl = $logged_info->member_srl;
                $args->user_id_extra_vars1 = $logged_info->user_id;
            }


수정대상 : ./ modules / document / document.model.php
수정전 :
            $args->member_srl = $obj->member_srl;
  

수정후 :
            $args->member_srl = $obj->member_srl;
            $args->user_id_extra_vars1 = $obj->user_id_extra_vars1;


수정대상 : ./ modules / document / queries / getDocumentList.xml
수정전 :
   <condition operation="equal" column="member_srl" var="member_srl" filter="number" pipe="and" />
        

수정후 :
   <group pipe="and">
       <condition operation="equal" column="member_srl" var="member_srl" filter="number" pipe="or" />
       <condition operation="equal" column="extra_vars1" var="user_id_extra_vars1" pipe="or" />
   </group>

동일한 방법으로 getDocumentListWithinComment.xml, getDocumentListWithinTag.xml 두개 파일도 수정해준다.

이것으로 수정끝  케시재생성해주는 것 잊지 마시기 바랍니다. 


자 이제 사용을 해야겠죠.

게시판을 하나 만듭니다. 설정에 상담기능 사용으로 체크하시구요
확장변수1번을 "text"로 설정하고, 제목은 "받을 사람 ID" 로 해서 저장합니다.

이제 게시판에서 글을 작성해 봅니다. 이때 따로 보여주고자 하는 사람이 있으면 아이디를 등록해 줍니다.
이것으로 긑...

글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
본체 모바일 주소. [1] 2013.01.17 by 샤로우
초보관심 XE 게시판 만들기 연습 결과에 대해 문의드립니다. [1] file 2013.01.17 by 송동우
빅송 Contact US 모듈이 이상합니다. [1] 2013.01.17 by CM(OEZ)
양희종1 datepicker 레이어 겹침 현상 [1] file 2013.01.17 by CM(OEZ)
이동일636 파일 업로드를 하고 다운을 받으면 싸이트가 다운 됩니다. 서버 수정 가능 [1] 2013.01.17 by CM(OEZ)
짼이짼 게시판에 적용한 확장변수 관리자만 볼 수 있게.... [1] 2013.01.16 by 송동우
코코낫33000 동영상 첨부 게시판... [1] 2013.01.16 by 송동우
코코낫33000 업로드 시에.. [1] 2013.01.16 by 송동우
코코낫33000 호스팅에 대해... [1] 2013.01.16 by 원조바다새
모모아이 포인트같은 변수 추가하는 방법 알려주세요. [1] 2013.01.16 by sejin7940
ludi 특정 모듈에서만 최소 글자수 제한하기 [1] 2013.01.16 by 송동우
죽방망이 jwplayer 질문드립니다.  
쿠드반지루엣 서버에 XE홈페이지 만들때마다 데이터베이스를 새롭게 만들어야되나요? [2] 2013.01.16 by 퍼니엑스이
Spes 로그인 위젯 좀 도움 부탁드립니다. [1] 2013.01.16 by Spes
kaycho xe 패스워드 함수 [1] 2013.01.16 by 푸시아
늘같이 Content 위젯 rss 추출이 안되네요 ㅜㅜㅜ  
Homin 게시판 내용이 안보여요 [1] 2013.01.16 by 브레인630
릭키님 xe 기업형 레이아웃..배너링크 문제..도와주세요 ;  
미니미니미니 궁굼한게 있어요  
프리뷰 홈페이지 로딩... [1] 2013.01.16 by 쿠드반지루엣