글쓰기에서 비밀글 체크하면 목록에서 사라져버립니다. 정보
글쓰기에서 비밀글 체크하면 목록에서 사라져버립니다.첨부파일
본문
안녕하세요 ^^
글쓰기에서 비밀글 체크하면 게스트 상태에서는 목록에서 사라져버립니다.
그누보드에서 글을 작성시 비밀글을 체크하여 글을 작성하면
회원로그인 상태에서는 목록상태에서 비밀글을 쓴 게시물이 보입니다.
다만, 로그인하지 않은 상태에서는 비밀글이 목록에서 아예 안보여지더군요.
비밀글로 체크하고 작성하여도 로그인하지 않은상태에서
비밀글이 목록에 나와있고 좌물쇠 표시되어있도록 하려면 어떻게 해야될지 여쪄봅니다.
의견 부탁드리겠습니다.
글쓰기에서 비밀글 체크하면 게스트 상태에서는 목록에서 사라져버립니다.
그누보드에서 글을 작성시 비밀글을 체크하여 글을 작성하면
회원로그인 상태에서는 목록상태에서 비밀글을 쓴 게시물이 보입니다.
다만, 로그인하지 않은 상태에서는 비밀글이 목록에서 아예 안보여지더군요.
비밀글로 체크하고 작성하여도 로그인하지 않은상태에서
비밀글이 목록에 나와있고 좌물쇠 표시되어있도록 하려면 어떻게 해야될지 여쪄봅니다.
의견 부탁드리겠습니다.
댓글 전체
현재 그누보드 기본 스킨을 사용한다면 말씀하신 기능이 구현되어 있습니다.
게시판 관리자 화면에서 비밀글 사용을 선택하면
비밀글로 작성된 것은 비회원이더라도 리스트에서는 보입니다.
한번 확인해 보세요.
게시판 관리자 화면에서 비밀글 사용을 선택하면
비밀글로 작성된 것은 비회원이더라도 리스트에서는 보입니다.
한번 확인해 보세요.
기본스킨이 아닌 스킨자료실에서 받은 스킨으로 사용하고 있거든요.
혹시 어느부분을 수정하면 되는지 알수있을까요?
혹시 어느부분을 수정하면 되는지 알수있을까요?
기본스킨과 비교해 보고 해당 부분의 다른 것이 있는지 확인하시거나
사용한 스킨 링크나 소스를 올려 주셔야 도움을 드릴 수 있습니다.
사용한 스킨 링크나 소스를 올려 주셔야 도움을 드릴 수 있습니다.
ohora님 list 스킨파일올렸거든요. 도움을 간곡히 요청드립니다. ('')(..)('')
32행정도에 보시면 아래 소스가 있습니다.
// 해당 사용자가 쓴 글의 번호 + 비밀글이 아닌글의 번호 + 해당사용자에게 지정된 글번호(wr_5)
if ($is_member)
$bb_query1 = "select * from `{$write_table}` where $sql_search and (( mb_id = '{$member[mb_id]}' or wr_5 = '{$member[mb_id]}' ) or wr_option not like '%secret%' ) and not find_in_set(wr_id,'{$noticeNumS}') and wr_is_comment != 1 ";
else
$bb_query1 = "select * from `{$write_table}` where $sql_search and (mb_id = '{$member[mb_id]}'or wr_option not like '%secret%') and not find_in_set(wr_id,'{$noticeNumS}') and wr_is_comment != 1 ";
여기에서 보면 비밀글이 아닌글의 번호만을 불러오네요.
아래와 같이 소스를 변경해서 해 보세요.
// 해당 사용자가 쓴 글의 번호 + 비밀글이 아닌글의 번호 + 해당사용자에게 지정된 글번호(wr_5)
if ($is_member)
$bb_query1 = "select * from `{$write_table}` where $sql_search and ( mb_id = '{$member[mb_id]}' or wr_5 = '{$member[mb_id]}' ) and not find_in_set(wr_id,'{$noticeNumS}') and wr_is_comment != 1 ";
else
$bb_query1 = "select * from `{$write_table}` where $sql_search and (mb_id = '{$member[mb_id]}) and not find_in_set(wr_id,'{$noticeNumS}') and wr_is_comment != 1 ";
// 해당 사용자가 쓴 글의 번호 + 비밀글이 아닌글의 번호 + 해당사용자에게 지정된 글번호(wr_5)
if ($is_member)
$bb_query1 = "select * from `{$write_table}` where $sql_search and (( mb_id = '{$member[mb_id]}' or wr_5 = '{$member[mb_id]}' ) or wr_option not like '%secret%' ) and not find_in_set(wr_id,'{$noticeNumS}') and wr_is_comment != 1 ";
else
$bb_query1 = "select * from `{$write_table}` where $sql_search and (mb_id = '{$member[mb_id]}'or wr_option not like '%secret%') and not find_in_set(wr_id,'{$noticeNumS}') and wr_is_comment != 1 ";
여기에서 보면 비밀글이 아닌글의 번호만을 불러오네요.
아래와 같이 소스를 변경해서 해 보세요.
// 해당 사용자가 쓴 글의 번호 + 비밀글이 아닌글의 번호 + 해당사용자에게 지정된 글번호(wr_5)
if ($is_member)
$bb_query1 = "select * from `{$write_table}` where $sql_search and ( mb_id = '{$member[mb_id]}' or wr_5 = '{$member[mb_id]}' ) and not find_in_set(wr_id,'{$noticeNumS}') and wr_is_comment != 1 ";
else
$bb_query1 = "select * from `{$write_table}` where $sql_search and (mb_id = '{$member[mb_id]}) and not find_in_set(wr_id,'{$noticeNumS}') and wr_is_comment != 1 ";