모바일 섬네일 > 그누4 질문답변

그누4 질문답변

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

모바일 섬네일 정보

모바일 섬네일

본문

<?
for($i=0;$i<count($list);$i++){

$list_selected=$nbsp=$wr_comment=$icon_secret=$icon_new="";

if($detail=="cmt") $list[$i]['subject'] = cut_str(conv_content($list[$i]['wr_content'], 1) , 40); //댓글이면 내용가져오기 , 자르기 100자
else $list[$i]['subject'] = conv_subject($list[$i]["wr_subject"], $subject_len*2, "…");
// 가변 파일 - 첨부파일 가져오기
$list[$i]['file'] = get_file($bo_table, $list[$i]['wr_id'],"");

// 썸네일 생성
$image=makeThumb($list[$i],$i,$list[$i][wr_content]);

if($wr_id==$list[$i][wr_id]) $list_selected="class='list_selected'";

$reply = $list[$i]['wr_reply'];

if($list[$i][wr_reply]){
for ($k=0; $k<strlen($reply); $k++) $nbsp.= '&nbsp;&nbsp;';
$list[$i]['subject']=$nbsp."[re]".$list[$i]['subject'];
}

//일반 글인 경우
if($list[$i][wr_comment] && $detail!="cmt"){

$cmt=sql_fetch("select wr_datetime from ".$g4[write_prefix].$list[$i][bo_table]." where wr_is_comment=1 and wr_parent='{$list[$i][wr_id]}' order by wr_datetime desc");

if ($cmt['wr_datetime'] >= date("Y-m-d H:i:s", $g4['server_time'] - 86400))
$wr_comment="<span class='list_cmt_cnt_new'>({$list[$i][wr_comment]})</span>";
else $wr_comment="<span class='list_cmt_cnt'>({$list[$i][wr_comment]})</span>";
}

//원본 글 옵션
$origin=sql_fetch("select wr_option from ".$g4[write_prefix].$list[$i][bo_table]." where wr_is_comment=0 and wr_id='{$list[$i][wr_parent]}'");

//댓글이면 원본 글 wr_id 링크
if($detail=="cmt") $list[$i][wr_id]=$list[$i][wr_parent];


if ($list[$i][mb_id] != $member[mb_id] && !$is_admin && (strstr($list[$i]['wr_option'], "secret") || strstr($origin['wr_option'], "secret"))){
$icon_secret = "<img src='$g4[path]/images/icon_secret.gif' align='absmiddle'>";

if($detail=="cmt") $list[$i][subject]="비밀글의 댓글입니다.";
}

if ($list[$i]['wr_datetime'] >= date("Y-m-d H:i:s", $g4['server_time'] - ($board['bo_new'] * 3600)))
$icon_new = "<img src='$g4[path]/images/icon_new.gif' align='absmiddle'>";


?>

모바일용 최신글 보기 스킨입니다

pc에서 에디터로 등록된 내용은 섬네일로 문제없는데

pc든 모바일이든 첨부파일에 대해서는 문제가 있는데요 ㅠㅠ

이 소스에서 어떻게 수정을 해야할지 ㅠㅠ
  • 복사

댓글 전체

© SIRSOFT
현재 페이지 제일 처음으로