일반 게시판에 이미지 나오게 하기

· 16년 전 · 2716

짜집기하면서
고수님들의 소스를 손봤습니다.
어똔분 소스인지 죄송스럽니요..;;

베이직게시판에


생략



    <table cellspacing="0" cellpadding="0" border='0' class="board_list"  height=110 >
    <col width="50" />
    <? if ($is_checkbox) { ?><col width="40" /><? } ?>
    <col width="110" />
    <col />
    <col width="110" />
    <col width="40" />
    <col width="50" />
    <? if ($is_good) { ?><col width="40" /><? } ?>
    <? if ($is_nogood) { ?><col width="40" /><? } ?>
    <tr>




생략


         <?      $image = urlencode($list[$i][file][0][file]); // 첫번째 파일이 이미지라면
            if (preg_match("/\.(gif|jpg|png)$/i", $image) && file_exists("$g4[path]/data/file/$bo_table/$image"))


 {
                echo "<p align=center><img src='$g4[path]/data/file/$bo_table/$image' width='100' height='100' border='0' onclick=image_window('$g4[path]/data/file/$bo_table/$image') style='cursor:pointer' align=middle></p>";
}

//    else if (file_exists($list[$i][file_image1])) { $gznews_img = "width=100 height=100 border=0)'><br>"; }

   ?>


생략







이렇게하니 이미지축소형 리스트가 나오네요...

열심히 공부하겠습니다.

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

그누4 팁자료실

그누보드4와 관련된 팁을 여러분들과 함께 공유하세요. 나누면 즐거움이 커집니다.

+
제목 글쓴이 날짜 조회
16년 전 조회 3,985
16년 전 조회 6,669
16년 전 조회 5,925
16년 전 조회 6,387
16년 전 조회 3,157
16년 전 조회 5,698
16년 전 조회 3,261
16년 전 조회 3,197
16년 전 조회 4,983
16년 전 조회 2,717
16년 전 조회 4,878
16년 전 조회 3,556
16년 전 조회 1.2만
16년 전 조회 2,992
16년 전 조회 3,200
16년 전 조회 4,723
16년 전 조회 3,542
16년 전 조회 3,233
16년 전 조회 6,655
16년 전 조회 3,120