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

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

열공대신 9년 전 조회 4,490

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

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



----------------아래 최신글 스킨 소스 입니다 (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개

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

mw_get_thumb_path() 함수내에서 찾아서 수정하세요. 

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

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

함수가 어디에 있는지요^^ } 문자 추가되는 이유를 모르겠네요..

스킨 그냥 수정없이 업로드해서 적용했는데..

 

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

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

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

로그인