채택완료

질문좀 드릴게요

2016-12-14 (수) 17:53:50 4,791

인기 게시물 최신글 아래 링크 스킨을 사용중인데요

http://sir.kr/g5_skin/6948?sca=%EC%B5%9C%EC%8B%A0%EA%B8%80&sfl=wr_subject%7C%7Cwr_content&stx=%EB%B2%A0%EC%8A%A4%ED%8A%B8 

해당 스킨을 사용하면서 썸네일 노출을 하기위하여 

꾸며보았지만 썸네일 노출이 되지않는데요 혹시 

어디를 수정해야 나올수있을까요..!

제가 초보라 자세히부탁드릴게요..!

스킨 함수예용

Copy
<?if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 include_once(G5_LIB_PATH.'/thumbnail.lib.php'); if ($izen_sort == 'wr_hit') { $sub_title = ""; } $thumb_width = 165;  //썸네일 가로 크기$thumb_height = 165; //썸네일 세로 크기?> <style type="text/css">	.subject {width:212px;padding:2px 0 0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block}	.subject img {vertical-align:bottom;}</style>   <div class="pan-best-sb"><div class="pan-web-lst"><table width="212" cellpadding="0" cellspacing="0" style="padding:2px 0 0;"><? for ($i=0; $i<count($list); $i++) { ?><tr>     <td colspan="4">        <table width="100%" border="0" cellpadding="0" cellspacing="0">        <tr>		<a class="thumb" href="<?=$list[$i]['href']?>">		<?php$list_tb = $list[$i]['bo_table']; $list_id = $list[$i]['wr_id'];  $thumb = get_list_thumbnail($list_tb, $list_id, $thumb_width, $thumb_height);								// 스넵이미지 생성하고 뷰어 시킨다.							$noimg = "$latest_skin_url/img/no-img.png";								// 이미지가 없을경우의 이미지 위치					if($thumb['src']) {							$img_content = '<img src="'.$thumb['src'].'" width="'.$thumb_width.'" height="'.$thumb_height.'" alt="'.$list[$i]['subject'].'" title="" />';					} else {							$img_content = '<img src="'.$noimg.'" width="'.$thumb_width.'" height="'.$thumb_height.'" alt="이미지없음" title="" />';					}							echo $img_content;?>             <td height="22" valign="bottom" class="subject"><img src="../skin/latest/best10/img/btn<?=$titles?>_<?=$i+1?>.gif" align="top">             <?            echo $list[$i]['icon_reply'] . " ";            echo "<a href='{$list[$i]['href']}' target=_parent>";            if ($list[$i]['is_notice'])                echo $list[$i]['subject'];            else                echo $list[$i]['subject'];            echo "</a>";             //if ($list[$i]['comment_cnt']) //                //echo " <a href=\"{$list[$i]['comment_href']}\"><span style='font-family:돋움; font-size:8pt; '>{$list[$i]['comment_cnt']}</span></a>";//             // if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }            // if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }             ?></td></tr>                </table>	</td></tr> <? } ?> <? if (count($list) == 0) { ?><tr><td colspan=4 align=center height=50>게시물이 없습니다.</a></td></tr><? } ?></table></div></div>
|

답변 1개

채택된 답변
+20 포인트
2016-12-14 (수) 18:35:24

$thumb = get_list_thumbnail($list_tb, $list_id, $thumb_width, $thumb_height); 

밑이나 위에 

echo "$list_tb, $list_id, $thumb_width, $thumb_height"; 이렇게 찍어서 값이 나오는지 확인 해주세요.

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