모바일 웹진 사진클릭에 대해서...

모바일 웹진 사진클릭에 대해서...

QA

모바일 웹진 사진클릭에 대해서...

본문

https://sir.kr/g5_skin/27003

 

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

 

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

 

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

 

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

 

 

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

 

 

<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="">

    <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>


            <?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 = "<img src='{$thumb['src']}' data-id='{$list[$i]['wr_id']}' />";
                    } else {
                        $img_content = "<div class='notice' style='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 = '<img src="'.$thumb['src'].'" alt="'.$thumb['alt'].'" width="'.$board['bo_mobile_gallery_width'].'" height="'.$board['bo_mobile_gallery_height'].'">';
                    } else {
                        $img_content = "<div class='notice' style='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>";
                        //}

                       // 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>'; } ?>

        </ul>

 

 

 

이 질문에 댓글 쓰기 :

답변 4

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

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

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

 

list.skin.php 파일을 열어 아래의 코드를 찾으세요. 
<div class="bo_subj"> 
아래의 코드로 변경해주시면 됩니다. 
<div class="bo_subj" onclick="location.href='<?php echo $list[$i]['href'] ?>';">

 

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

 <div class="list_img">를 아래처럼 바꾸시면됩니다.

<div class="list_img" onclick="location.href='<?php echo $list[$i]['href'] ?>'">

 


<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="">
    <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>

            <?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>";
                        //}
                       // 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>'; } ?>
        </ul>

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

 


<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="">
    <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>

            <?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>";
                        //}
                       // 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>'; } ?>
        </ul>

<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="">

    <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>


            <?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>";
                        //}

                       // 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>'; } ?>

        </ul>

답변을 작성하시기 전에 로그인 해주세요.
전체 123,162 | RSS
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT