메인 겔러리 최신글 보이게 하고싶은데^^

메인 겔러리 최신글 보이게 하고싶은데^^

QA

메인 겔러리 최신글 보이게 하고싶은데^^

본문

이미지 경로에  } 문자가 뒤에 붙어나옵니다 ㅠㅠ 어디서 붙는지 찾기가 힘드네요..

아시는분 좀알려주세요^^

4afc8f2319d05a0b705bea96720c4c4e_1460026853_4209.png
4afc8f2319d05a0b705bea96720c4c4e_1460026868_3153.png
----------------아래 최신글 스킨 소스 입니다 (mw5-gallery)

<?php

if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

 

$css_name = "gallery-{$bo_table}-{$rows}-{$subject_len}";

 

$css = "{$latest_skin_url}/style.php?bo_table={$bo_table}&rows={$rows}&subject_len={$subject_len}";

add_stylesheet("<link rel=\"stylesheet\" href=\"{$css}\">");

 

if (function_exists("mw_seo_url"))

    $bo_url = mw_seo_url($bo_table);

else 

    $bo_url = G5_BBS_URL."/board.php?bo_table=".$bo_table;

 

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

// mw_get_thumb_path

// function mw_get_thumb_path($bo_table, $wr_id, $file=null, $thumb_number=null)

 

global $g4;

?>

<div class="<?php echo $css_name?>">

    <h2><a href="<?php echo $bo_url?>"><?php echo $bo_subject?></a></h2>

    <?php

    echo "<ul>";

 

    for ($i=0; $i<$rows; $i++) {

 

        $thumb = mw_get_thumb_path($bo_table, $list[$i]['wr_id']);

        $img = '<img src="'.$thumb.'">';

 

        if ($member['mb_id']) {

            $list[$i]['subject'] = str_replace("{닉네임}", $member['mb_nick'], $list[$i]['subject']);

            $list[$i]['subject'] = str_replace("{별명}", $member['mb_nick'], $list[$i]['subject']);

        }

        else {

            $list[$i]['subject'] = str_replace("{닉네임}", "회원", $list[$i]['subject']);

            $list[$i]['subject'] = str_replace("{별명}", "회원", $list[$i]['subject']);

        }

 

        $class = '';

        if ($list[$i]['icon_secret'])

            $class.= "secret";

 

        if ($list[$i]['icon_new'])

            $class.= "new";

 

        if (function_exists("mw_seo_url"))

            $href = mw_seo_url($bo_table, $list[$i]['wr_id']);

        else 

            $href = $list[$i]['href'];

 

        echo "<li class=\"$class\">";

        echo "<a href=\"$href\">";

        echo '<div class="thumb">'.$img.'</div>';

        echo '<div class="title">'.$list[$i]['subject']."";

            echo "<span class=\"comment\">{$list[$i]['comment_cnt']}</span>";

            echo '</div>';

        echo "</a>";

        echo "</li>\n";

    }

    echo "</ul>";

    ?>

</div><!--<?php echo $css_name?>-->

<div style="font-size:0; line-height:0; clear:both; height:10px;"></div>

 

이 질문에 댓글 쓰기 :

답변 2

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

회원로그인

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