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

모바일 웹진 사진클릭에 대해서... 채택완료

초보엄마 6년 전 조회 2,649

https://sir.kr/g5_skin/27003

 

모바일 웹진 위에 있는 스킨을 사용하고 있는데요....

 

글제목은 클릭하면 클릭되어서 글을 볼수있는데 

 

사진은 클릭이 되지않아서요....

 

사진클릭으로 글을 보게 하려면 어떡해해야하는지 알려주시면 감사하겠습니다....

 

 

----list.skin.php----

 

 

                               

   

               
                               
               

 

 

 

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

답변 4개

채택된 답변
+20 포인트
루미집사

아. 이거 스킨 제작자인데요.. 

제가 답변 달아 드렸는데...

제목 및 내용 DIV가 이미지를 덥고 있어서 안되는것입니다.

 

list.skin.php 파일을 열어 아래의 코드를 찾으세요. 

  아래의 코드로 변경해주시면 됩니다. 

 

이렇게 하면 이미지 제목 본문글등 어느것을 터치하더라도 뷰페이지로 이동됩니다.

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

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

어퍼스트로피가 에러 나네요;; 죄송합니다. 다시 올렸어요.

 

</p>

<p><form name="fboardlist" id="fboardlist" action="./board_list_update.php" onsubmit="return fboardlist_submit(this);" method="post">

    <input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">

    <input type="hidden" name="sfl" value="<?php echo $sfl ?>">

    <input type="hidden" name="stx" value="<?php echo $stx ?>">

    <input type="hidden" name="spt" value="<?php echo $spt ?>">

    <input type="hidden" name="sst" value="<?php echo $sst ?>">

    <input type="hidden" name="sod" value="<?php echo $sod ?>">

    <input type="hidden" name="page" value="<?php echo $page ?>">

    <input type="hidden" name="sw" value=""></p>

<p>    <div class="rumi_list_01">

        <?php if ($is_checkbox) { ?>

        <div class="all_chk" scope="col">

            <input type="checkbox" id="chkall" onclick="if (this.checked) all_checked(true); else all_checked(false);">

            <label for="chkall"><span class="sound_only">현재 페이지 게시물 </span>전체선택</label>

        </div>

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

        <ul></p>

<p>

            <?php 

            for ($i=0; $i<count($list); $i++) {

                

                if($list[$i]['is_notice']) { // 공지사항

                    

                    $thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $board['bo_mobile_gallery_width'], $board['bo_mobile_gallery_height'], false, true);

                    if($thumb['src']) {

                        $img_content = "<a href='{$list[$i]['href']}'><img src='{$thumb['src']}' data-id='{$list[$i]['wr_id']}' /></a>";

                    } else {

                        $img_content = "<div class='notice' onclick=\"location.href='{$list[$i]['href']}'\" style='cursor:pointer;line-height:".($board['bo_mobile_gallery_height'] - 30)."px;width:{$board['bo_mobile_gallery_width']}px;height:{$board['bo_mobile_gallery_height']}px'><i class='fa fa-volume-up' aria-hidden='true'></i></div>";

                    }

                } else {

                    $thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $board['bo_mobile_gallery_width'], $board['bo_mobile_gallery_height'], false, true);

                    if($thumb['src']) {

                        $img_content = '<a href="{$list[$i][href]}"><img src="'.$thumb['src'].'" alt="'.$thumb['alt'].'" width="'.$board['bo_mobile_gallery_width'].'" height="'.$board['bo_mobile_gallery_height'].'"></a>';

                    } else {

                        $img_content = "<div class='notice' onclick=\"location.href='{$list[$i]['href']}'\" style='cursor:pointer;line-height:".($board['bo_mobile_gallery_height'] - 30)."px;width:{$board['bo_mobile_gallery_width']}px;height:{$board['bo_mobile_gallery_height']}px'><i class='fa fa-image' aria-hidden='true'></i></div>";

                    }

                }

            ?>    </a>    

            <li class="<?php if ($list[$i]['is_notice']) echo "bo_notice"; ?>">

                <div class="list_box">

                    <div class="list_img">

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

                        <?php echo $img_content; ?>

                        

                        <?php 

                        //$img_cnt = img_count($list[$i]['wr_id'], $list[$i]['wr_content']);

                        //if($img_cnt>0) {

                       // echo "<div class='img_cnt'>+{$img_cnt}</div>";

                        //}</p>

<p>                       // echo "<div class='comment_cnt'>";

                       // echo "<span class='sound_only'>댓글</span><i class='fa fa-comments-o' aria-hidden='true'></i> ";

                       // echo ($list[$i]['comment_cnt'])? $list[$i]['comment_cnt']:"0";

                       // echo "<span class='sound_only'>개</span>";

                       // echo "</div>";

                        ?></a>

                    </div>

                     <div class="bo_subj">

                        <span class="list_subject">

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

                            <?php echo $list[$i]['icon_reply']; ?>                            

                            <?php echo $list[$i]['subject'] ?>

                            </a>

                        </span>

                        <span class="list_content">

                            <?php

                            $wr_content = preg_replace("/<(.*?)\>/","",$list[$i][wr_content]); 

                            $wr_content = preg_replace("/ /","",$wr_content); 

                            $wr_content = cut_str(get_text($wr_content),250, '...');

                            echo $wr_content; 

                            ?>

                        </span>

                    </div>

                </div>

            </li>

            <?php } ?>

            <?php if (count($list) == 0) { echo '<li class="empty_table">게시물이 없습니다.</li>'; } ?></p>

<p>        </ul></p>

<p>

                               

   

               
                               
               

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

답변에 대한 댓글 1개

초보엄마
6년 전
죄송한데 게시판은 뜨는데 사진이 클릭이 되지않아요...ㅜㅜ 자꾸 질문해서 죄송해요...ㅠㅠ

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

</p>

<p><form name="fboardlist" id="fboardlist" action="./board_list_update.php" onsubmit="return fboardlist_submit(this);" method="post">

    <input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">

    <input type="hidden" name="sfl" value="<?php echo $sfl ?>">

    <input type="hidden" name="stx" value="<?php echo $stx ?>">

    <input type="hidden" name="spt" value="<?php echo $spt ?>">

    <input type="hidden" name="sst" value="<?php echo $sst ?>">

    <input type="hidden" name="sod" value="<?php echo $sod ?>">

    <input type="hidden" name="page" value="<?php echo $page ?>">

    <input type="hidden" name="sw" value=""></p>

<p>    <div class="rumi_list_01">

        <?php if ($is_checkbox) { ?>

        <div class="all_chk" scope="col">

            <input type="checkbox" id="chkall" onclick="if (this.checked) all_checked(true); else all_checked(false);">

            <label for="chkall"><span class="sound_only">현재 페이지 게시물 </span>전체선택</label>

        </div>

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

        <ul></p>

<p>

            <?php 

            for ($i=0; $i<count($list); $i++) {

                

                if($list[$i]['is_notice']) { // 공지사항

                    

                    $thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $board['bo_mobile_gallery_width'], $board['bo_mobile_gallery_height'], false, true);

                    if($thumb['src']) {

                        $img_content = "<a href='{$list[$i]['href']}'><img src='{$thumb['src']}' data-id='{$list[$i]['wr_id']}' /></a>";

                    } else {

                        $img_content = "<div class='notice' onclick=\"location.href='{$list[$i]['href']}'\" style='cursor:pointer;line-height:".($board['bo_mobile_gallery_height'] - 30)."px;width:{$board['bo_mobile_gallery_width']}px;height:{$board['bo_mobile_gallery_height']}px'><i class='fa fa-volume-up' aria-hidden='true'></i></div>";

                    }

                } else {

                    $thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $board['bo_mobile_gallery_width'], $board['bo_mobile_gallery_height'], false, true);

                    if($thumb['src']) {

                        $img_content = '<a href='{$list[$i]['href']}'><img src="'.$thumb['src'].'" alt="'.$thumb['alt'].'" width="'.$board['bo_mobile_gallery_width'].'" height="'.$board['bo_mobile_gallery_height'].'"></a>';

                    } else {

                        $img_content = "<div class='notice' onclick=\"location.href='{$list[$i]['href']}'\" style='cursor:pointer;line-height:".($board['bo_mobile_gallery_height'] - 30)."px;width:{$board['bo_mobile_gallery_width']}px;height:{$board['bo_mobile_gallery_height']}px'><i class='fa fa-image' aria-hidden='true'></i></div>";

                    }

                }

            ?>    </a>    

            <li class="<?php if ($list[$i]['is_notice']) echo "bo_notice"; ?>">

                <div class="list_box">

                    <div class="list_img">

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

                        <?php echo $img_content; ?>

                        

                        <?php 

                        //$img_cnt = img_count($list[$i]['wr_id'], $list[$i]['wr_content']);

                        //if($img_cnt>0) {

                       // echo "<div class='img_cnt'>+{$img_cnt}</div>";

                        //}</p>

<p>                       // echo "<div class='comment_cnt'>";

                       // echo "<span class='sound_only'>댓글</span><i class='fa fa-comments-o' aria-hidden='true'></i> ";

                       // echo ($list[$i]['comment_cnt'])? $list[$i]['comment_cnt']:"0";

                       // echo "<span class='sound_only'>개</span>";

                       // echo "</div>";

                        ?></a>

                    </div>

                     <div class="bo_subj">

                        <span class="list_subject">

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

                            <?php echo $list[$i]['icon_reply']; ?>                            

                            <?php echo $list[$i]['subject'] ?>

                            </a>

                        </span>

                        <span class="list_content">

                            <?php

                            $wr_content = preg_replace("/<(.*?)\>/","",$list[$i][wr_content]); 

                            $wr_content = preg_replace("/ /","",$wr_content); 

                            $wr_content = cut_str(get_text($wr_content),250, '...');

                            echo $wr_content; 

                            ?>

                        </span>

                    </div>

                </div>

            </li>

            <?php } ?>

            <?php if (count($list) == 0) { echo '<li class="empty_table">게시물이 없습니다.</li>'; } ?></p>

<p>        </ul></p>

<p>

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

답변에 대한 댓글 1개

초보엄마
6년 전
FullstackCreative님 답변 감사드려요..알려주신대로 하니 게시판이 아예안뜨는데요...ㅜㅜ

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

세크티
6년 전

 

를 아래처럼 바꾸시면됩니다.

 

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

답변에 대한 댓글 1개

초보엄마
6년 전
세크티님 답변감사드려요...근데 알려주신데로 했는데도 클릭이 안되네요....ㅜㅜ

다른방법은 없을까요?

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

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

로그인