묻고답하기


소시랑 한줄 메모게시판에 비밀글기능을 추가하고,

로그인한사람대상으로 비밀글을 읽을수있게 만들었습니다.


잘 작동은 되는데 문제는  비밀글에, 로그인한 다른 사람들이 쓴 댓글들은  제작의도처럼 로그인한사람이 다볼수있는게 아닌,

작성자와 관리자만볼수있네요...


어드민에서 댓글을 살펴보니 비밀댓글상태는아닌데  ...


비밀글인 글의 댓글도 로그인하면 다볼수있게 해주려면 어디를 고쳐야 할까요?? 


<!--@if($oDocument->isSecret() && !$is_logged)-->


소시랑 게시판은 이런형태로 고쳤습니다.









module-board-skin -소시메모장 에서  write_form.html 


 <button type="submit" title="{$lang->cmd_registration}" class="sm-btn ">{$lang->cmd_registration}</button>

여기 밑에  추가


<!--@if($module_info->secret=="Y")-->
  <span style="display:inline-block">	
            <label for="is_secret">
<input type="checkbox" style="width:15px;height:15px;position:relative;top:3px;" name="is_secret" value="Y" checked="checked"|cond="$oDocument->isSecret()" id="is_secret" />
{$lang->secret}</label>
</span>
        <!--@end-->



그다음    view_document.html에 


80번줄 쯔음 


<div class="sm_text">
<!--@if(!$oDocument->isNotice())-->
                <!--@if($module_info->use_category == "Y" && $oDocument->get('category_srl'))--><a href="{getUrl('category',$oDocument->get('category_srl'), 'document_srl', '')}" class="sm_category" style="color:{$category_list[$oDocument->get('category_srl')]->color};"|cond="$category_list[$oDocument->get('category_srl')]->color != transparent" style="color:#000;"|cond="$category_list[$oDocument->get('category_srl')]->color == 'transparent'">{$c


메모내용표시해주는 이부분에  삽입


  <div class="sm_text">	
<!--// Secret -->
<!--@if($oDocument->isSecret() && !$oDocument->isGranted())-->
<div  class="sm_text xe_content" >
<span class="document<!--@if($oDocument->document_srl)-->_{$oDocument->document_srl}<!--@end--><!--@if($oDocument->getMemberSrl())-->_{$oDocument->getMemberSrl()}<!--@end--> xe_content">
비밀글입니다.
</span>
</div>
<!--@else-->	
                <!--@if(!$oDocument->isNotice())-->
                <!--@if($module_info->use_category == "Y" && $oDocument->get('category_srl'))--><a href="{getUrl('category',$oDocument->get('category_srl'), 'document_srl', '')}" class="sm_category" style="color:{$category_list[$oDocument->get('category_srl')]->color};"|cond="$category_list[$oDocument->get('category_srl')]->color != transparent" style="color:#000;"|cond="$category_list[$oDocument->get('category_srl')]->color == 'transparent'">{$category_list[$oDocument->get('category_srl')]->title}</a><!--@end-->
~중략~
<span class="sm_count" cond="$oDocument->getCommentcount() && !$oDocument->isNotice()"><a href="#" onclick="toggle_object('list_reply_{$oDocument->document_srl}'); return false;" >{$oDocument->getCommentcount()}</a></span>
<!--@end-->
             	</div>
</div> 




이때 회원은 무조건 읽게 가능하게하려면


<!--@if($oDocument->isSecret() && !$is_logged)-->

<div  class="sm_text xe_content" >

<span class="document<!--@if($oDocument->document_srl)-->_{$oDocument->document_srl}<!--@end--><!--@if($oDocument->getMemberSrl())-->_{$oDocument->getMemberSrl()}<!--@end--> xe_content">

비밀 글입니다.

</span>

</div>

<!--@else-->



모바일버전도 모바일도 비슷하게고쳐주면끝







글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
가을풍경 카카오톡 보내기처럼 텔레그램 보내기 애드온 만들수 있나요?  
레몬도리 게시판 연결 [2] file 2014.11.19 by 레몬도리
리키한 게시판 분류 오류 문제 문의 드립니다. 급합니다 부탁 드립니다. [2] 2014.11.19 by 리키한
지인유 유명 패션sns 게시판 스킨 이거 뭔가요??? [5] file 2014.11.19 by Podongi
namhys 이런 형태의 레이아웃 좀 알수 있을까요?? [2] 2014.11.19 by namhys
오작교뉴스 게시판 조회수 올리는 법 좀 알려주세요 [3] 2014.11.19 by 마야
로양 선택게시물 메인에 노출시키기 [2] 2014.11.19 by 로양
오늘은삽질왕 글쓰기에서 확장 컴포넌트 질문입니다. [1] file 2014.11.19 by imagineshop
디쟈이너 업뎃후에 게시판에 플로피디스크? [1] file 2014.11.19 by sejin7940
메이크디아이와이 정말 어처구니 없는 노가다...해결방법 아시는분 부탁드려요 [5] file 2014.11.19 by Happyphp
똑디 운영하는 서버에 특정사이트만 메일이 전달됩니다. [2] 2014.11.19 by putty
까르 게시판 파일첨부권한, HTML 편집 권한을 선택 할수 없습니다. [2] file 2014.11.19 by 브라보
xe_마니 스케치뷱 게시판 목록에 댓글수 표시 [2] 2014.11.19 by xe_마니
yjb0714 아파치 설치 관련 입니다  
가을풍경 일반회원 로그인한후 글등록 이동 안됩니다? [3] 2014.11.19 by 가을풍경
imim script bye script 글을 남기거나 댓글을 남길 때 오류  
최윤한 모바일에서 로그인에 계속 풀립니다. [2] 2014.11.18 by 최윤한
라디오스테이션 XE알림센터 LITE의 @닉네임 호출기능 질문입니다.. [10] 2014.11.18 by BJ람보
Pirate 가입인증메일관련 [1] 2014.11.18 by sejin7940
dubu \n으로 구분 처리 하는게 뭔가요? [2] 2014.11.18 by dubu