3일째 헤메고 있습니다. 제발 부탁드립니다. T^T 링크이미지 썸네일문제 > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

3일째 헤메고 있습니다. 제발 부탁드립니다. T^T 링크이미지 썸네일문제 정보

3일째 헤메고 있습니다. 제발 부탁드립니다. T^T 링크이미지 썸네일문제

본문

최신글 스킨의 list.skin.php 파일의 소스입니다.
내용의 이미지가 썸네일이 생성되어 보이는 소스구요.
첨부파일 이미지만 썸네일이 생성되어 나오는데요.
첨부파일은 필요없고, 링크시킨 이미지를 썸네일로 생성해서
나오게 하고 싶은데요. (트래픽 문제때문에.. ㅠㅠ)
아래 소스중 무엇을 수정하거나, 추가해야 될까요 ?
고수님들 제발 부탁드립니다.
정말로 이거 하나 때문에 여기 그누보드 홈페이지 3일째 뒤지고 있습니다. ㅠㅠ
제 생각에는 [file][0][file] 요 부분을 수정하면 될듯한데.. ㅠㅠ

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

list($height, $row_cnt, $cut_len) = explode(",", $options);
$all_cnt = 0;
?>

<!-- <?=$board[bo_subject]?> (<?=$board[bo_table]?>) 최신글 -->
<table width='101%' border='0' align='left' cellpadding='0' cellspacing='0' bordercolor="#FFFFFF">
<tr><td height="30" align='center'>

<table width=100% align=center cellpadding=0 cellspacing=0 bordercolor="#FFFFFF">
<colgroup width=20>
<colgroup>
<colgroup width=37>
<tr>
    <td width="6%" height="28" bgcolor="#FFFFFF" style="padding-left:8; border-top-width:1; border-right-width:0; border-bottom-width:1; border-left-width:1; border-top-color:whiter; border-right-color:white; border-bottom-color:#FFEA08; border-left-color:white; border-style:solid;"><img src='<?=$latest_skin_path?>/img/newdoc.gif' width="11" height="12" border=0></td>
    <td width="88%" height="28" valign="top" bgcolor="#FFFFFF" style="padding-top:4; padding-left:10; border-top-width:1; border-right-width:0; border-bottom-width:1; border-left-width:0; border-top-color:white; border-right-color:white; border-bottom-color:#FFEA08; border-left-color:white; border-style:solid;"><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><font color="#000000"><?=$board[bo_subject]?></font></a></td>
    <td width="6%" height="28" align="center" bgcolor="#FFFFFF" style="padding-right:12; border-top-width:1; border-right-width:1; border-bottom-width:1; border-left-width:0; border-top-color:white; border-right-color:white; border-bottom-color:#FFEA08; border-left-color:white; border-style:solid;"><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><img src='<?=$latest_skin_path?>/img/more.gif' width="41" height="13" border=0></a></td>
</tr>
</table>

</td></tr>

<tr><td height="31" align='center'><table width='100%'>
  <? for ($k=0; $k<$row_cnt; $k++ ) { ?>
  <tr>
    <?
for ($i=0; $i<count($list)/$row_cnt; $i++)
{
    if ($i > 0)
        echo '<td width=20>&nbsp;</td>';
$title = get_text($list[$all_cnt][wr_subject]);
$img = "$g4[path]/data/file/$bo_table/".urlencode($list[$all_cnt][file][0][file]);
if (!file_exists($img) || !$list[$all_cnt][file][0][file])
{ $img = "$latest_skin_path/img/no_image.gif"; }

$href = "$g4[bbs_path]/board.php?bo_table=$bo_table";
$stitle = cut_str($list[$all_cnt][subject],$cut_len,"..");
   
    echo <<<HEREDOC
    <td width='<?=$subject_len?>' valign='top' align='center'>

        <table width='<?=$subject_len?>' border='0' cellpadding='0' cellspacing='0' align='center'>
<tr>
            <td width='<?=$subject_len?>' height='5' align='center'></td>
</tr>

        <tr>
            <td align=center style='border:0px solid #CCCCCC; padding:0px' width='<?=$subject_len?>' height='<?=$height?>'>
<a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$all_cnt][wr_id]}'><img src='{$img}' width='$subject_len' height='$height' border='0' align='absmiddle' title='$title' alt='$title'></a>
    </td>
        </tr>

<tr>
            <td width='<?=$subject_len?>' height='5' align='center'></td>
</tr>

<tr>
            <td width='<?=$subject_len?>' height='20' align='center' nowrap><nobr><a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$all_cnt][wr_id]}'>{$stitle}</a>
HEREDOC;

if ($list[$i][comment_cnt]) {
echo <<<HEREDOC
<a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}'>
<span style='font-family:돋움; font-size:8pt; color:#9A9A9A;'>{$list[$i][comment_cnt]}</span>
</a>
HEREDOC;
 }
 
echo <<<HEREDOC
            </td>
</tr>
</table>

    </td>
HEREDOC;
$all_cnt++;
   
}
?>
  </tr>
  <? } ?>
  <? if (count($list) == 0) { ?>
  <tr>
    <td colspan=2 align='center' height=25>게시물이 없습니다.</td>
  </tr>
  <? } ?>
</table></td>
</tr>
</table>
  • 복사

댓글 전체

그렇다면 list.skin.php 에서 링크이미지를 썸네일로 불러올수 있다면,
최신글 스킨에서는 자동 적용 되는 건가요 ? ㅠㅠ
문제는 게시판 내용의 링크된 이미지를, 최신 글에서 썸네일로 불러올수 있느냐 입니다.. ㅠㅠ
게시판 목록에 나오게 하는건 바라지도 않아요.. ㅠㅠ 너무 힘들어서 포기했어요.. ㅠㅠ
© SIRSOFT
현재 페이지 제일 처음으로