전체게시판 검색을 하면 화면이 깨집니다. > 질문과 답변

본문 바로가기

질문과답변

[해결중] 전체게시판 검색을 하면 화면이 깨집니다.

총 채택 포인트
50 포인트
채택된 회원에게 주는 후원 포인트
25 포인트
채택 후 작성자(내아를낳아도) 회수 포인트
25 포인트

본문

안녕하세요. 현재 제가 쓰고 있는 **eb4\_comm\_003 테마를 사용하고 있습니다.** 가운데 부분의 전체 게시판 검색에 검색어를 입력하고 엔터를 치면 화면이 깨집니다. ![!\[image\]](https://eyoom.net/data/editor/2507/2042365131_1753060538.56404.jpg) 어느 부분을 손을 봐야 하는지요? 무더운 여름 잘 보내시고, 건강하세요.

댓글목록7

이윰EGG님의 댓글

profile_image
해당 사이트에서 전체 검색을 하면 문의한 내용처럼 화면이 깨지는 것을 확인할 수 있습니다.
스크립트 에러등의 충돌로 파일을 다 불러오지 못해 화면이 깨지는 것으로 보이는데 frameset을 사용한 것인지 페이지 소스보기등이 어렵습니다.
자체 데모 사이트에서는 전체검색시 문제가 없는 것을 확인했으며 사이트 작업을 하면서 수정 및 추가한 사항들을 확인해 보기 바라고
전체 검색의 경우 /theme/eb4_comm_003/skin/search 폴더에 위치하니 참고 바랍니다.

고맙습니다.

내아를낳아도님의 댓글의 댓글

profile_image
프레임 제거했습니다.

이윰누비님의 댓글

profile_image
php 태그를 열고 닫지 않거나 두번 닫거나...
include나 require 사용 시 에러 파일에서 에러 공백 bom이 있으면 레이아웃 깨짐..
깨지는 이유가 많아서..
소스를 공유하시던지 해야.. 능력자분들이 봐주실겁니다.

내아를낳아도님의 댓글의 댓글

profile_image
답변 감사드립니다.
혹시 소스라 함은 search.skin.html.php 이 파일 말씀이신가요?

이윰누비님의 댓글의 댓글

profile_image
네.. 그렇죠 전체는 길수도 있으니, 수정하신 부분에 대해서만 공유해주심.. 잡히지 않을까 생각됩니다.
간혹 위에서 열려있는데 밑에서 닫지 않아서 그런 경우도 발생하긴하는데..
이런 부분들 때문에 저도 고생을 많이 했었습니다..
수정하신 부분에 대해서만 공유해주심 능력자분들이 바로 알아차리지 않을까 생각됩니다.

내아를낳아도님의 댓글

profile_image
- 첨부파일 : search.skin.html.php (13.2K) - 다운로드

<?php
/**
 * skin file : /theme/THEME_NAME/skin/search/basic/search.skin.html.php
 */
if (!defined('_EYOOM_')) exit;

add_stylesheet('<link rel="stylesheet" href="'.EYOOM_THEME_URL.'/plugins/scroll-tabs/scrolltabs.min.css" type="text/css" media="screen">',0);
add_stylesheet('<link rel="stylesheet" href="'.EYOOM_THEME_URL.'/plugins/sweetalert2/sweetalert2.min.css" type="text/css" media="screen">',0);
?>

<style>
.search-result .search-box {position:relative;padding:15px;margin-bottom:30px;border:1px solid #b5b5b5;background:#fff;border-radius:3px !important}
.search-result .search-box .search-input {margin-bottom:0}
.search-result .search-box .search-input input {height:42px;background:#f8f8f8;font-size:.9375rem;font-weight:700;border-radius:3px !important}
.search-result .search-box .search-input .icon-prepend {background-color:transparent;width:42px;height:40px;line-height:40px;border:0;color:#959595;font-size:14px}
.search-result .search-box .input-button .button {height:40px;line-height:40px;background:#fff;padding:0 30px;font-size:13px;border-radius:0 3px 3px 0 !important}
.search-result .search-tab {background-color:#D6D6D6;height:50px}
.search-result .search-tab #tab-search-result {display:none}
.search-result .search-tab .scroll_tabs_container {text-align:center;margin-bottom:0;height:50px}
.search-result .search-tab .scroll_tabs_container div.scroll_tab_inner {top:5px !important}
.search-result .search-tab .scroll_tabs_container div.scroll_tab_inner li {padding-left:10px;padding-right:10px}
.search-result .search-tab .scroll_tabs_container div.scroll_tab_inner li a {font-size:.9375rem}
.search-result .search-tab .scroll_tabs_container div.scroll_tab_inner li a strong {font-weight:400}
.search-result .search-tab .scroll_tabs_container div.scroll_tab_inner li.active a {font-weight:700}
.search-result .search-tab .scroll_tabs_container div.scroll_tab_inner span {padding-left:5px;padding-right:0}
.search-result .search-tab .scroll_tabs_container .scroll_tab_left_button, .search-result .search-tab .scroll_tabs_container .scroll_tab_right_button {top:5px !important}
.search-result-list .result-list > li {padding:15px 0;border-bottom:1px solid #dadada}
.search-result-list .result-list > li:hover {background:#fbfbfb}
.search-result-list .result-list > li:first-child {border-top:1px solid #dadada}
.search-result-list .result-list > li h6 {font-size:1.125rem;line-height:1.4;margin-bottom:10px}
.search-result-list .result-list > li h6 a {color:#1E88E5}
.search-result-list .result-list > li h6 a:hover {color:#0068c1;text-decoration:underline}
.search-result-list .result-list > li h6 i {color:#959595}
.search-result-list .result-list .result-list-box {position:relative}
.search-result-list .result-list .result-list-image {position:absolute;overflow:hidden;top:0;left:0;width:100px;height:64px}
.search-result-list .result-list .result-list-text {position:relative;overflow:hidden;height:62px;margin-bottom:15px}
.search-result-list .result-list .result-list-text.result-list-text-margin {margin-left:115px}
.search-result-list .result-list .search-result-image img {display:block;max-width:100%;height:auto}
.search-result-list .result-list .result-list-info {color:#959595;margin-bottom:0}
.search-result-list .result-list .result-list-info .info-photo img {width:18px;height:18px;margin-right:2px;display:inline-block}
.search-result-list .result-list .result-list-info .info-icon {color:#959595;margin-right:2px}
.search-result-list .result-list .result-list-info .info-name {color:#353535}
.search-result-list .result-list .result-list-info .info-name:hover a {color:#353535}
.search-result-list .result-list .result-list-info .info-name .open a {color:#353535}
.search-result-list .sch_word {color:#3949ab;font-weight:700}
</style>

<div class="search-result">
    <form name="fsearch" onsubmit="return fsearch_submit(this);" method="get" class="eyoom-form">
    <input type="hidden" name="srows" value="<?php echo $srows; ?>">
    <div class="search-box">
        <div class="row">
            <div class="col-lg-3">
                <label class="select">
                    <select name="gr_id" id="gr_id">
                        <option value="">전체그룹</option>
                        <?php for ($i=0; $i<count((array)$sel_group); $i++) { ?>
                        <option value='<?php echo $sel_group[$i]['gr_id']; ?>'><?php echo $sel_group[$i]['gr_subject']; ?></option>
                        <?php } ?>
                    </select>
                    <i></i>
                </label>
            </div>
            <div class="col-lg-3">
                <label for="sfl" class="sound_only">검색조건</label>
                <label class="select">
                    <select name="sfl" id="sfl">
                        <option value="wr_subject||wr_content" <?php echo get_selected($_GET['sfl'], "wr_subject||wr_content"); ?>>제목+내용</option>
                        <option value="wr_subject" <?php echo get_selected($_GET['sfl'], "wr_subject"); ?>>제목</option>
                        <option value="wr_content" <?php echo get_selected($_GET['sfl'], "wr_content"); ?>>내용</option>
                        <option value="mb_id" <?php echo get_selected($_GET['sfl'], "mb_id"); ?>>회원아이디</option>
                        <option value="wr_name" <?php echo get_selected($_GET['sfl'], "wr_name"); ?>>이름</option>
                    </select>
                    <i></i>
                </label>
            </div>
            <div class="col-lg-3 inline-group m-b-15">
                <label for="sop_or" class="radio"><input type="radio" value="or" <?php if ($sop == 'or') { ?>checked<?php } ?> id="sop_or" name="sop"><i class="rounded-x"></i>OR</label>
                <label for="sop_and" class="radio"><input type="radio" value="and" <?php if ($sop == 'and') { ?>checked<?php } ?> id="sop_and" name="sop"><i class="rounded-x"></i>AND</label>
            </div>
            <div class="clearfix"></div>
            <div class="col-lg-12 m-b-0">
                <label for="stx" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>
                <div class="input input-button search-input">
                    <i class="icon-prepend fas fa-search"></i>
                    <input type="text" name="stx" value="<?php echo $text_stx; ?>" id="stx" required maxlength="20">
                    <div class="button"><input type="submit" value="검색">검색</div>
                </div>
            </div>
        </div>
    </div>
    </form>

    <?php if ($stx) { ?>
        <?php if ($board_count) { ?>
    <div class="cont-text-bg m-b-30">
        <h5 class="m-b-10"><strong><?php echo $stx; ?></strong> 전체검색 결과</h5>
        <p class="bg-primary">
            게시판 -<strong> <?php echo $board_count; ?></strong> 개
            <span class="m-l-5 m-r-5">/</span>
            게시물 -<strong> <?php echo number_format($total_count); ?></strong> 개
            <span class="pull-right"><?php echo number_format($page); ?> / <?php echo number_format($total_page); ?> 페이지 열람 중</span>
        </p>
    </div>
        <?php } ?>
    <?php } ?>

    <?php if ($stx) { ?>
        <?php if ($board_count) { //#2 ?>
    <div class="search-tab">
        <ul id="tab-search-result">
            <li><a href="?<?php echo $search_query; ?>&amp;gr_id=<?php echo $gr_id; ?>" <?php echo $sch_all; ?>>전체게시판</a></li>
            <?php echo $str_board_list; ?>
        </ul>
    </div>
        <?php } else { ?>
    <div class="text-center text-gray m-t-30"><i class="fas fa-exclamation-circle"></i> 검색된 자료가 없습니다.</div>
        <?php } ?>
    <?php } ?>
    <div class="m-b-30"></div>

    <?php if ($stx && $board_count) { ?><section class="search-result-list"><?php } ?>
    <?php for ($idx=$table_index, $k=0; $idx<count((array)$search_table) && $k<$rows; $idx++) { ?>
        <h5 class="m-b-20">
            <a href="<?php echo get_eyoom_pretty_url($search_table[$idx], '', $search_query); ?>">
                <strong><i class="fas fa-search"></i> '<u><?php echo $bo_subject[$idx] ?></u>' 게시판 내 결과</strong>
            </a>
        </h5>
        <ul class="list-unstyled result-list">
        <?php
        for ($i=0; $i<count((array)$list[$idx]) && $k<$rows; $i++, $k++) {
            if ($list[$idx][$i]['wr_is_comment']) {
                $comment_def = '<span class="cmt_def">댓글 | </span>';
                $comment_href = '#c_'.$list[$idx][$i]['wr_id'];
            } else {
                $comment_def = '';
                $comment_href = '';
            }

            if ($list[$idx][$i]['wr_anonymous'] || in_array($search_table[$idx],$anonymous_table)) {
                $data['mb_id'] = 'anonymous';
                $data['name'] = $eyoom['anonymous_title'];
            } else {
                $data['name'] = eb_nameview($list[$idx][$i]['mb_id'], $list[$idx][$i]['wr_name'], $list[$idx][$i]['wr_email'], $list[$idx][$i]['homepage']);
            }

            /**
             * 이미지 사용일 경우
             */
            if ($eyoom['use_search_image'] == 'y') {
                unset($data['img_content'], $data['img_src']);
                $thumb = get_list_thumbnail($search_table[$idx], $list[$idx][$i]['wr_id'],$eyoom['search_image_width'], $eyoom['search_image_height']);
                if ($tpl_name == 'bs') {
                    if ($thumb['src']) {
                        $data['img_content'] = '<img class="img-responsive" src="'.$thumb['src'].'" alt="'.$thumb['alt'].'">';
                        $data['img_src'] = $thumb['src'];
                    }
                } else {
                    if ($thumb['src']) {
                        $data['img_content'] = '<img src="'.$thumb['src'].'" alt="'.$thumb['alt'].'" width="'.$board['bo_gallery_width'].'" height="'.$board['bo_gallery_height'].'">';
                        $data['img_src'] = $thumb['src'];
                    }
                }
            }
        ?>
            <li>
                <h6>
                    <a href="<?php echo $list[

이윰누비님의 댓글의 댓글

profile_image
<li>
    <h6>
        <a href="<?php echo $list[
열렸는데 안닫혔네요... 이러면 깨집니다..레이아웃




<?php if ($stx && $board_count) { ?><section class="search-result-list"><?php } ?>
<?php for ($idx = $table_index, $k = 0; $idx < count((array)$search_table) && $k < $rows; $idx++) { ?>
    <h5 class="m-b-20">
        <a href="<?php echo get_eyoom_pretty_url($search_table[$idx], '', $search_query); ?>">
            <strong><i class="fas fa-search"></i> '<u><?php echo $bo_subject[$idx]; ?></u>' 게시판 내 결과</strong>
        </a>
    </h5>

    <ul class="list-unstyled result-list">
    <?php for ($i = 0; $i < count((array)$list[$idx]) && $k < $rows; $i++, $k++) {
        if ($list[$idx][$i]['wr_is_comment']) {
            $comment_def = '<span class="cmt_def">댓글 | </span>';
            $comment_href = '#c_' . $list[$idx][$i]['wr_id'];
        } else {
            $comment_def = '';
            $comment_href = '';
        }

        if ($list[$idx][$i]['wr_anonymous'] || in_array($search_table[$idx], $anonymous_table)) {
            $data['mb_id'] = 'anonymous';
            $data['name'] = $eyoom['anonymous_title'];
        } else {
            $data['name'] = eb_nameview(
                $list[$idx][$i]['mb_id'],
                $list[$idx][$i]['wr_name'],
                $list[$idx][$i]['wr_email'],
                $list[$idx][$i]['homepage']
            );
        }

        /**
        * 이미지 처리
        */
        if ($eyoom['use_search_image'] == 'y') {
            unset($data['img_content'], $data['img_src']);
            $thumb = get_list_thumbnail($search_table[$idx], $list[$idx][$i]['wr_id'], $eyoom['search_image_width'], $eyoom['search_image_height']);
            if ($tpl_name == 'bs') {
                if ($thumb['src']) {
                    $data['img_content'] = '<img class="img-responsive" src="' . $thumb['src'] . '" alt="' . $thumb['alt'] . '">';
                    $data['img_src'] = $thumb['src'];
                }
            } else {
                if ($thumb['src']) {
                    $data['img_content'] = '<img src="' . $thumb['src'] . '" alt="' . $thumb['alt'] . '" width="' . $board['bo_gallery_width'] . '" height="' . $board['bo_gallery_height'] . '">';
                    $data['img_src'] = $thumb['src'];
                }
            }
        }
    ?>
        <li>
            <div class="result-list-box">
                <?php if ($data['img_src']) { ?>
                <div class="result-list-image search-result-image">
                    <?php echo $data['img_content']; ?>
                </div>
                <?php } ?>
                <h6>
                    <a href="<?php echo $list[$idx][$i]['href'] . $comment_href; ?>">
                        <?php echo $comment_def . $list[$idx][$i]['subject']; ?>
                    </a>
                </h6>
                <div class="result-list-text<?php if ($data['img_src']) echo ' result-list-text-margin'; ?>">
                    <?php echo cut_str(strip_tags($list[$idx][$i]['wr_content']), 100); ?>
                </div>
                <div class="result-list-info">
                    <span class="info-name"><?php echo $data['name']; ?></span>
                </div>
            </div>
        </li>
    <?php } // for list ?>
    </ul>
<?php } // for board loop ?>
<?php if ($stx && $board_count) { ?></section><?php } ?>
이윰빌더 시즌4 질문과 답변 게시판입니다.

질문과 답변 게시판에는 가능한 이윰 관리자가 답변을 드리지 않습니다. 회원간 활성화 될수 있도록 도움 부탁드리며, 질문자는 원하는 답변이 달릴경우 꼭 채택하여 주시기 바랍니다.

상품구매 및 유료상품 문의는 1:1문의 게시판을 이용해 주시기 바랍니다.

1:1문의 바로가기 : https://eyoom.net/bbs/qalist.php

전체 13 건 - 1 페이지
번호
제목
글쓴이
채택포인트
사이트 내 전체검색