테스트 사이트 - 개발 중인 베타 버전입니다

겔러리 스킨 리스트 섬네일 출력 방법

2대1 11년 전 조회 4,129

겔러리 스킨에서 리스트에 섬네일이 출력되잖아요.

 

그런데 첨부파일 첫번째 이미지 말고 두번째 첨부파일이 출력되게 하고 싶은데 어디를 어떻게 수정해야 하는거죠.

 

방법이 없나요?

댓글을 작성하려면 로그인이 필요합니다.

답변 1개

v
11년 전

그누보드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 ";

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인