불당님 이 소스좀 봐주세요.

http://sir.co.kr/bbs/tb.php/g4_skin/84273/a46dff6e6ce557fad7485aa10486c491
청춘불안정님이 올리신 스킨인데요.

make_thumbnail 썸네일을 이런식으로 뽑으셨더군요.


latest.skin.php 11번째줄
include_once($latest_skin_path . '/latest.lib.php');
이런식으로 인쿠르트 시켜서 썸네일을 읽어오는데여 굳이 인쿠르트 시키지 않고..
불당썸이 설치되어져 있으니 바로 뽑는 방법없을까 해서 질문드립니다?
소스도 함께 올렸습니다.

첨부파일

latest.lib.php (1.4 KB) 2회 2009-07-15 01:27
latest.skin.php (2.5 KB) 0회 2009-07-15 01:27
|

댓글 3개

<?php

if(defined('_GNUBOARD_') == false)
exit();
?>

<table border="0" cellspacing="0" cellpadding="0">
<tr height="26">
<td><img src="<?php echo $latest_skin_path; ?>/img/i_subject.gif" align="absmiddle"> <strong><?php echo $board['bo_subject']; ?></strong></td>
<td align="right" class="small" style="padding:7px 0 0 0;"><a href="<?php echo $g4['bbs_path']; ?>/board.php?bo_table=<?php echo $bo_table; ?>" onfocus="this.blur();" style="color:#969696;">더보기</a></td>
</tr>
<tr><td background="<?php echo $latest_skin_path; ?>/img/g_dot.gif" colspan="2"></td></tr>
<tr><td height="10" colspan="2"></td></tr>
<tr><td colspan="2">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top">
<div style="width:<?php echo $width; ?>px; border:3px solid #EBEBEB;">
<?php for($i = 0; $i < count($list); $i++){ ?><div id="<?php echo "{$bo_table}_{$i}"; ?>" style="<?php if($i == 0) echo 'display:block;'; else echo 'display:none;'; ?>"><a href="<?php echo $list[$i]['href']; ?>" onfocus="this.blur();"><img src="<?=thumbnail("{$list[$i]['file']['0']['path']}/{$list[$i]['file']['0']['file']}", $width, $height)?>"></a></div><?php } ?>
</div>
</td>
<td width="12"></td>
<td width="" valign="top" style="padding:3px 0 0 0;">
<table border="0" cellspacing="0" cellpadding="0">
<?php for($i = 0; $i < count($list); $i++){ ?>
<tr><td height="20"><img src="<?php echo $latest_skin_path; ?>/img/i_bullet.gif" align="absmiddle"> <a href="<?php echo $list[$i]['href']; ?>" onmouseover="layer('<?php echo $bo_table; ?>', '<?php echo $i; ?>');" onfocus="this.blur();" style="color:#222222;"><?php echo str_replace('…', '..', $list[$i]['subject']) . $list[$i]['comment_cnt']; ?></a></td></tr>
<?php } ?>
</table>
</td>
</tr>
</table>
</td></tr>
</table>

기본적인 style만 나오게 하고, 썸네일 관련 부분은 싹 지운후에 적용하면 됩니다.

예제를 참조해서 수정하면 될꺼에요.
http://sir.co.kr/bbs/board.php?bo_table=g4_pi_thumb&wr_id=129
불당님 안녕하세요^^

바쁘신데 빠른 답변 주셔서 고맙습니다.

찬찬히 봐야 하겠네요~ 어렵습니다. ㅎㅎ
코드가 틀릴 수도 있으니까 찬찬히 보구 수정하시면 될꺼에요.
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 플러그인

그누보드에는 여러가지 기능 추가가 쉽도록 제작 되었습니다. 플러그인의 저작권은 해당 플러그인 제작자님께 있으며, 그누보드의 저작권과 다를 수 있습니다. 플러그인 다운로드시 좋아요와 감사의 코멘트를 남기시면 제작자에게 큰 힘이됩니다. ^^y

+
제목 글쓴이 날짜 조회
16년 전 조회 990
16년 전 조회 1,020
16년 전 조회 874
16년 전 조회 948
16년 전 조회 1,401
16년 전 조회 1,652
16년 전 조회 2,578
16년 전 조회 1,022
16년 전 조회 1,546
16년 전 조회 2,055
16년 전 조회 1,007
16년 전 조회 2,738
16년 전 조회 3,398
16년 전 조회 832
16년 전 조회 2,604
🐛 버그신고