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

G5 DB image 출력 설정? 채택완료

레몬파이 8년 전 조회 3,167

g4 에서는 썸네일을 값을 이렇게 불렀는데

G5에서는 어떻게 고쳐야 DB image를 출력할 수있나요 ?

 

G5 복잡하네요 ~!

 

</p><p><? php</p><p>if ($list[$i][file][0][file]) 
   {
    $file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
    if($page_mode == "printdaerew"){
      echo "<link rel='stylesheet' type='text/css' href='$board_skin_path/style.css' />\n";
      $img = "<img src='" .$file. "' style='border:1px solid #eaeaea;' width=$thum_width height=$thum_height>";
    } else {
      $img = "<a href=\"$file\" class=\"lightbox-image\" rel=\"prettyPhoto[group1]\" title=\"{$list[$i][wr_content]}\" onfocus=\"blur()\"><img src='" .$file. "' style='border:1px solid #eaeaea;' width=$thum_width height=$thum_height></a>";
       }
   }
   else
   {
    $img = "<a href=\"{$list[$i][href]}\"><img src='$board_skin_path/img/noimage.gif' style='border:1px solid #eaeaea;' width=$thum_width height=$thum_height></a>";
   }</p><p>?></p><p>
 

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

답변 1개

채택된 답변
+20 포인트
8년 전

$thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $board['bo_gallery_width'], $board['bo_gallery_height']);

 

                        if($thumb['src']) {

                            $img_content = ''.$thumb['alt'].'';

                        } else {

                            $img_content = 'no image';

                        }

 

                        echo $img_content;

기본적으로 그누5에서 썸네일을 출력하는 방식입니다. 참고하세요

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

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

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

로그인