겔러리 스킨 리스트 섬네일 출력 방법
본문
겔러리 스킨에서 리스트에 섬네일이 출력되잖아요.
그런데 첨부파일 첫번째 이미지 말고 두번째 첨부파일이 출력되게 하고 싶은데 어디를 어떻게 수정해야 하는거죠.
방법이 없나요?
답변 1
그누보드5인 경우 아래 처럼 해보세요.
/lib/thumbnail.lib.php 파일을 수정합니다.
$sql = " select bf_file, bf_content from {$g5['board_file_table']}
where bo_table = '$bo_table' and wr_id = '$wr_id' and bf_type between '1' and '3' order by bf_no limit 0, 1 ";
위의 소스 부분을 찾아서 아래 처럼 수정하세요.
if($bo_table=="freeboard") // 2번째 첨부파일 이미지가 보여지게 할 게시판명 입력
$sql = " select bf_file, bf_content from {$g5['board_file_table']}
where bo_table = '$bo_table' and wr_id = '$wr_id' and bf_type between '1' and '3' order by bf_no limit 1, 1 ";
else
$sql = " select bf_file, bf_content from {$g5['board_file_table']}
where bo_table = '$bo_table' and wr_id = '$wr_id' and bf_type between '1' and '3' order by bf_no limit 0, 1 ";