채택완료

G5 DB image 출력 설정?

2017-06-06 (화) 14:49:01 3,296

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

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

G5 복잡하네요 ~!

Copy
<? phpif ($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>";   }?>
 
|

답변 1개

채택된 답변
+20 포인트
2017-06-06 (화) 15:34:13

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

                        if($thumb['src']) {

                            $img_content = '<img src="'.$thumb['src'].'" alt="'.$thumb['alt'].'" width="'.$board['bo_gallery_width'].'" height="'.$board['bo_gallery_height'].'">';

                        } else {

                            $img_content = '<span style="width:'.$board['bo_gallery_width'].'px;height:'.$board['bo_gallery_height'].'px">no image</span>';

                        }

                        echo $img_content;

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

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