갤러리 게시판 채택완료

list.skijn.php

에서        <ul class="gall_con">

                <li class="gall_href">

                    <a href="<?php echo $list[$i]['href'] ?>">

                    <?php

                    if ($list[$i]['is_notice']) { // 公告  ?>

                        <strong style="width:<?php echo $board['bo_gallery_width'] ?>px;height:<?php echo $board['bo_gallery_height'] ?>px">公告</strong>

                    <?php } else {

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

                        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;

                    }

                     ?>

                    </a>

                </li>

이쪽부분이 리스트 이미지를 클릭하면 view페이지로 넘어가서 게시글을 볼수있는거죠?..?

그런다음에 view.skin.php

    <?php

        // 显示附件

        $v_img_count = count($view['file']);

        if($v_img_count) {

            echo "<div id=\"bo_v_img\">\n";

            for ($i=0; $i<=count($view['file']); $i++) {

                if ($view['file'][$i]['view']) {

                    //echo $view['file'][$i]['view'];

                    echo get_view_thumbnail($view['file'][$i]['view']);

                }

            }

            echo "</div>\n";

        }

         ?>

<script>

$(function() {

    $("a.view_image").click(function() {

        window.open(this.href, "large_image", "location=yes,links=no,toolbar=no,top=10,left=10,width=10,height=10,resizable=yes,scrollbars=no,status=no");

        return false;

    });

    // 推荐, 反对

    $("#good_button, #nogood_button").click(function() {

        var $tx;

        if(this.id == "good_button")

            $tx = $("#bo_v_act_good");

        else

            $tx = $("#bo_v_act_nogood");

        excute_good(this.href, $(this), $tx);

        return false;

    });

    // 图片尺寸调整

    $("#bo_v_atc").viewimageresize();

});

</script>

이부분이 게시글 이미지를 클릭하게 되면 원본사이즈를 볼수있게 만들어진거잔아요?

질문은.. list에서 이미지를 클릭헀을때 view 페이지 게시글을 불러오는게 아니라

게시글에 등록된 원본이미지를 볼수있게 만들고 싶습니다..

어떻게 해야할지 감을 못잡아서 그럽니다 ㅠㅠ 도와주세요

답변 1개

DB 에보면 요 파일만 저장하는 table 가 있습니다 거기서 게시판 talble 와 게시글 의 번호검색 하시면 원본

이미지 경로 가나와요 

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

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

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

로그인
🐛 버그신고