채택완료

뷰게시판 이미지 클릭

lib/thumbnail.lib.php 파일 내용

 

            if ($width) {

                $thumb_tag = '<img src="'.G5_URL.str_replace($filename, $thumb_file, $data_path).'" alt="'.$alt.'" width="'.$width.'" height="'.$height.'"/>';

            } else {

                $thumb_tag = '<img src="'.G5_URL.str_replace($filename, $thumb_file, $data_path).'" alt="'.$alt.'"/><br><img src="돋보기이미지.gif"/>';

            }

 

이렇게 수정해서 봤는데....

전체게시판에적용이 되더라구요....

 

혹시 특정게시판에만 돋보기 이미지만 적용했으면 하는데...혹시팁좀 알려주세요...

 

ㅜ.ㅜ

 

|

답변 2개 / 댓글 2개

채택된 답변
+20 포인트

올려주신 부분 함수 내용 첫 부분에서 global 에 $bo_table​ 을 추가하고..

 

// 게시글보기 썸네일 생성

function get_view_thumbnail($contents, $thumb_width=0)

{

    global $board, $config, $bo_table

 

 

$thumb_tag = '<img src="'.G5_URL.str_replace($filename, $thumb_file, $data_path).'" alt="'.$alt.'"/><br><img src="돋보기이미지.gif"/>';

 

이 줄만 이렇게 수정해보세요.

 

if ($bo_table == '게시판ID') {

    $thumb_tag = '<img src="'.G5_URL.str_replace($filename, $thumb_file, $data_path).'" alt="'.$alt.'"/><br><img src="돋보기이미지.gif"/>';

} else {

    $thumb_tag = '<img src="'.G5_URL.str_replace($filename, $thumb_file, $data_path).'" alt="'.$alt.'"/>';

}

답변에 대한 댓글 1개

자세하게 알려주셔서 해결했네요 감사합니다^^
스킨을 복사해서 다른 이름으로 바꾸고

그 스킨에만 위와 같이 수정하고 연결하면 되겠지요.

답변에 대한 댓글 1개

댓글 남겨주셔서 감사합니다.

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