이거 썸네일로 추출하려면....2000 > 그누4 질문답변

그누4 질문답변

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

이거 썸네일로 추출하려면....2000 정보

이거 썸네일로 추출하려면....2000

본문

이거 지정된 사이즈로 나오는데.....
 
내용에 보면 썸네일이 있으면 썸네일 추출이라고 하는데,
경로에 썸네일이 있거든요....
근데 그냥 지정된 싸이즈로만 나와요.....
 
어디를 고쳐야 썸네일로 추출하는건가요....?
 
 
어거 latest.skin.php 입니다.....
 
 
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
// 연동 : http://www.sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=32524&page=4
// 이미지 가로 및 세로 정렬 기능 최신글
// 썸네일이 없을경우 원본이미지 불러옴.
$cols  = 3; //  이미지 가로갯수 //  이미지 세로 갯수는 메인에서 지정(총 이미지 수)
$image_h  = 10; // 이미지 상하 간격
$col_width = (int)(99 / $cols);
$data_path = $g4[path]."/data/file/$bo_table";
$thumb_path = $data_path.'/thumb';
?>
<style type="text/css">
<!--
.data  { font-family:돋움; font-size:8pt; color:#999999; }
-->
</style>
<table width="380" border="0" cellspacing="0" cellpadding="0">
<tr><td height='25' background='<?=$latest_skin_path?>/img/la_titie.gif' style='padding-top:2px; padding-left:40px;'><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>' onfocus='this.blur()'><strong><?=$board[bo_subject]?></strong></a></td></tr>
<tr><td height='10'></td></tr>
<tr>
<td align='center'>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
<? for ($i=0; $i<count($list); $i++) {
  if ($i>0 && $i%$cols==0) { echo "</tr><tr><td colspan='$cols' height='$image_h'></td></tr><tr>"; }
?>
<td width="<?=$col_width?>%" align="center" valign='top'>
<?
$image = $list[$i][file][0][file]; //원본
$img=$data_path. "/".$image;  //썸네일이 없을경우 원본출력
$thumb = $thumb_path. "/". $list[$i][wr_id];
  if ( file_exists($thumb) )
 $img = $thumb;
 
    $style = "font-family:돋움; font-size:9pt; color:#636363;";
    if ($list[$i][icon_new])
    $style = "style='font-family:돋움; font-size:9pt; color:#006F00;' ";
 $subject = "<span $style>".cut_str($list[$i][subject],15)."</span>"; //제목 글자수 자르기
//    if ($list[$i]['comment_cnt']) //코
//        $cmt = "({$list[$i]['comment_cnt']})";
 $bg = "";  //새글?
    if ($list[$i][icon_new])
        $bg="la_top_2.gif";
     else
        $bg="la_top_1.gif";
     echo $list[$i][icon_reply] . " ";
  echo "<table width='116' cellpadding='0' cellspacing='0' border='0'>";
  echo "  <tr><td height='22' background='{$latest_skin_path}/img/$bg' style='padding-top:2px; padding-left:30px;'>{$subject}</td></tr>";
  echo "  <tr><td background='{$latest_skin_path}/img/la_bg.gif' valign='top' align='center'><a href=\"javascript:;\" OnClick=\"popupImage('$g4[path]/data/file/$bo_table/$image')\" onFocus=\"this.blur();\" title=\"{$list[$i][subject]}\"><img src='$img' width='100' height='70' border='0'></a></td></tr>";
  echo "  <tr><td height='21' background='{$latest_skin_path}/img/la_bot.gif' style='padding-left:25px; padding-top:7px;' class='data'>{$list[$i][datetime2]} {$cmt}</td></tr></table>";
?>
</td>
<? } ?>
<?
$cnt = ($i%$cols);
for ($k=$cnt; $k<$cols && $cnt; $k++) {
    echo "<td width=$col_width%> </td>";
}
?>
  <? if (count($list) == 0) { echo "<td height=80 align=center>게시물이 없습니다.</td>"; } ?>
  </tr>
</table></td>
</tr>
</table>
<script language="javascript">
function popupImage(imageURL){
imageHandle=open("","popupForImage","toolbar=no,location=no,status=no,manubar=no,scrollbars=no,resizable=no,width=100,height=100,top=0,left=0");
  imageHandle.document.write("<title>   </title>");
  imageHandle.document.write("<style>");
  imageHandle.document.write("*{margin:0;padding:0;border:0;}");
  imageHandle.document.write("</style>");
  imageHandle.document.write("<img src=\""+imageURL+"\" onload=\"window.resizeTo(this.width+6,this.height+55);\" onclick=\"self.close();\" style=\"cursor:hand;\" title=\"클릭하면 닫힙니다.\">");
}
</script>

댓글 전체

이거 지정된 사이즈로 나오는데.....
 
내용에 보면 썸네일이 있으면 썸네일 추출이라고 하는데,
경로에 썸네일이 있거든요....
근데 그냥 지정된 싸이즈로만 나와요.....
겔러리 게시판 제작자와 최근겔러리 제작자가 달라서 문제가 있는 듯해요....
해결 방법좀.......

썸네일경로에 가면 썸네일 파일명이 아주 복잡하고 길게 되어 있습니다....
아마도 겔러리 게시판으로 생성이 된것같아요....

그런데, 최근겔러리가 쓰려는  썸네일 경로의 파일명이 달라서 생기는 문제인데....
어떻하면 이것을 바로 잡을 수 있을까요...?
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

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