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

웹진 게시판을 좀 수정하고 싶은데.. 채택완료

다조아해 7년 전 조회 2,128

https://sir.kr/g5_skin/10066?sfl=wr_subject%7C%7Cwr_content&stx=%EC%9B%B9%EC%A7%84&page=2">https://sir.kr/g5_skin/10066?sfl=wr_subject%7C%7Cwr_content&stx=%EC%9B%B9%EC%A7%84&page=2

 

위에 웹진 게시판을 다운 받아서 사용할려고 수정을 좀 하고 있습니다.

 

 

기본으로 첨부파일에 이미지가 없으면 공지사항처럼 나오고 (no image 표시 없이)

이미지가 있으면 공지사항 형식으로 왼쪽으로 이미지가 보이게 할려면 어찌 수정을 해야 할까요?

 

지금은 이미지가 기본 폭을 차지하고 있어서 별로 이쁘지 않아서 좀 수정 좀 하고 싶습니다.

 

 

</strong></p>

<p>            <td class="td_subject">

                <div class="sb_vimg">

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

                    <?php

                    if (!$list[$i]['is_notice']) {

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

<p>                        if($thumb['src']) {

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

                        } else {

                            $img_content = '<img src="'.$board_skin_url.'/img/noimage.gif" width="'.$board['bo_gallery_width'].'" height="'.$board['bo_gallery_height'].'" class="list_img">';

                        }

                        echo $img_content;

                    }

                    ?>

                    </a>

                </div>

                <div class="sb_content"<?php if(!$list[$i]['is_notice']) { ?> style="margin-left:<?php echo $board['bo_gallery_width']+12; ?>px;height:<?php echo $board['bo_gallery_height'] ?>px"<?php } ?>>

                    <p class="">

                    <?php

                    echo $list[$i]['icon_reply'];

                    if ($is_category && $list[$i]['ca_name']) {

                     ?>

                    <a href="<?php echo $list[$i]['ca_name_href'] ?>" class="bo_cate_link"><?php echo $list[$i]['ca_name'] ?></a>

                    <?php } ?>

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

                        <span class=" sub1"><?php echo $list[$i]['subject'] ?></span>

                        <?php if ($list[$i]['comment_cnt']) { ?><span class="sound_only">댓글</span><?php echo $list[$i]['comment_cnt']; ?><span class="sound_only">개</span><?php } ?>

                    </a>

                    <?php

                    // if ($list[$i]['link']['count']) { echo '['.$list[$i]['link']['count']}.']'; }

                    // if ($list[$i]['file']['count']) { echo '<'.$list[$i]['file']['count'].'>'; }</p>

<p>                    if (isset($list[$i]['icon_new'])) echo $list[$i]['icon_new'];

                    if (isset($list[$i]['icon_hot'])) echo $list[$i]['icon_hot'];

                    if (isset($list[$i]['icon_file'])) echo $list[$i]['icon_file'];

                    if (isset($list[$i]['icon_link'])) echo $list[$i]['icon_link'];

                    if (isset($list[$i]['icon_secret'])) echo $list[$i]['icon_secret'];

                    ?>

     


     <span class=" sub">

     <?php echo cut_str(strip_tags($list[$i]['wr_content']),85);?>

     </span>

        </p>

                </div>

            </td></p>

<p><strong>

 

 

 

 

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

답변 1개

채택된 답변
+20 포인트
7년 전

else {

$img_content = '<img src="'.$board_skin_url.'/img/noimage.gif" width="'.$board['bo_gallery_width'].'" height="'.$board['bo_gallery_height'].'" class="list_img">';

}

 

이부분을 삭제하면 될거같습니다.

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

답변에 대한 댓글 1개

다조아해
7년 전
답변 감사합니다.
그런데 위에 소스를 지우니 no image 부분이 위에 이미지로 해서 쭉~~ 나오는 현상이 발생해 버리네요

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

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

로그인