게시판 검색할때 댓글은 제외하고 싶습니다.
본문
그누보드 게시판을 사용중인데
내용을 검색할때 댓글의 내용까지 검색되어서 검색이 불편합니다.
검색할때 댓글 내용은 제외시키는 방법이 궁금합니다.
답변 1
<select name="sfl" id="sfl">
<option value="wr_subject"<?php echo get_selected($sfl, 'wr_subject', true); ?>>제목</option>
<option value="wr_content"<?php echo get_selected($sfl, 'wr_content'); ?>>내용</option>
<option value="wr_subject||wr_content,1"<?php echo get_selected($sfl, 'wr_subject||wr_content'); ?>>제목+내용</option>
<option value="mb_id,1"<?php echo get_selected($sfl, 'mb_id,1'); ?>>회원아이디</option>
<option value="mb_id,0"<?php echo get_selected($sfl, 'mb_id,0'); ?>>회원아이디(코)</option>
<option value="wr_name,1"<?php echo get_selected($sfl, 'wr_name,1'); ?>>글쓴이</option>
<option value="wr_name,0"<?php echo get_selected($sfl, 'wr_name,0'); ?>>글쓴이(코)</option>
</select>
옵션 값 뒤에 ',1'을 붙여주세요.
요게 코멘트는 제외한다는 옵션입니다.