일반 최신글을 전체 게시판 최신글로 바꾸려고 합니다.. > 그누4 질문답변

그누4 질문답변

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

일반 최신글을 전체 게시판 최신글로 바꾸려고 합니다.. 정보

일반 최신글을 전체 게시판 최신글로 바꾸려고 합니다..

본문

특정 게시판 최신글만 불러 오는 최신글 스킨을 전체 게시판 글을 불러오는 스킨으로 바꾸려고 하는데 잘 안되네요 ㅜㅜ 혹시 팁이나 아시는분들 제발 답변 부탁드립니다.

불러오는 소스는 <?=latest("basic_4", "society", 1, 60); ?> 입니다.


게시판 본문 소스는

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


  $is_crop = 1;
// $is_crop    : 세로 높이가 $height를 넘을 때 crop 할 것인지를 결정
//                0 : crop 하지 않습니다
//                1 : 기본 crop
//                2 : 중간을 기준으로 crop


//불당썸---------------------------------------------------------------//
$img_width = 220; //표시할 이미지의 가로사이즈
$img_height = 170; //표시할 이미지의 세로사이즈
$row = 5; //넓이 갯수

//언샾마스트 퀄리티(썸 노이즈바지)
$filter[type] = 99;
$filter[arg1] = 100;
$filter[arg2] = 1;
$filter[arg3] = 2;


$data_path = $g4[path]."/data/file/$bo_table";
$thumb_path = $data_path.'/thumb';
$no_img = $latest_skin_path."/img/no_img.gif";


// 불당썸을 include
include_once("$g4[path]/lib/thumb.lib.php");
//불당썸---------------------------------------------------------------//

//$list_content = "450"; //내용길이
$cols  = 2;

$magin = 0;
$width = $img_width * $row;
$table_width = $width + ($row * $magin);
?>




<link type="text/css" rel="stylesheet" href="<?=$latest_skin_path?>/css/jquery.capty.css"/>

<script type="text/javascript" src="<?=$latest_skin_path?>/js/jquery.js"></script>
<script type="text/javascript" src="<?=$latest_skin_path?>/js/jquery.capty.min.js"></script>



<?php /*?><table width="<?=$table_width - 10?>" border="0" cellspacing="0" cellpadding="5" style="border-bottom:0px solid #CCC; border-top:0px solid #CCC; font-family:나눔고딕;">
  <tr>
    <td><strong><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><?=$board[bo_subject]?></a></strong></td>
  </tr>
</table>
<br /><?php */?>


<table width="1080" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><div style=" width:<?=$table_width?>">
      <? for ($i=0; $i<count($list); $i++) { ?>
      <? //리스트 페이지 이미지 출력 

//썸네일 생성
$thumfile = "";
$thumb = $thumb_path.'/'.$list[$i][wr_id];

$file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];

// 업로드된 파일이 이미지라면
if (preg_match("/\.(jpg|gif|png|bmp)$/i", $file) && file_exists($file)) {
$thumb = thumbnail($file, $img_width, $img_height, 0, 1, 90, 0, "",  $filter, $noimg); //첨부파일 언샾마스크추가

} else { //에디터에서 삽입한 이미지
$edit_img = $list[$i]['wr_content'];
if (eregi("data/cheditor4[^<>]*\.(gif|jp[e]?g|png|bmp)", $edit_img, $tmp)) { // data/cheditor------
$file = $g4[path].'/' . $tmp[0]; // 파일명

$thumb=thumbnail($file, $img_width, $img_height, 0, $is_crop, 90, 0, "",  $filter, $noimg); //언샾마스크추가

}
}




$wr_content = preg_replace("/<(.*?)\>/"," ",$list[$i][wr_content]);
$wr_content = preg_replace("/&nbsp;/"," ",$wr_content);
$wr_content = str_replace("//##", " ", $wr_content);
$wr_content1 = cut_str(get_text($wr_content), 20, '…');



if (preg_match("/\.(jpg|gif|png|bmp)$/i", $thumb) && file_exists($thumb)) {

//echo "<a href='{$list[$i]['href']}' class='item' title='{$list[$i]['subject']}'>";
//echo "<img src='$thumb' border='0'>";
//echo "</a>";

?>
      <a href='<?=$list[$i]['href']?>'><img src="<?=$thumb?>" border="0" alt="<?=$list[$i]['subject']?>" class="fix" width="<?=$img_width?>" height="<?=$img_height?>"/></a>
      <?

}
 
} ?>
      <? if (count($list) == 0) { echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'><tr><td colspan=3 align=center height=100>자료가 없습니다.</td></tr></table>"; } ?>
    </div>
    <script type="text/javascript">
$(function() {

$('#default').capty();

$('#animation').capty({
animation: 'fade',
speed: 400
});

$('#fixed').capty({
animation: 'fixed'
});

$('#content').capty({
height: 46,
opacity: .6
});

$('.fix').capty({
cWrapper: 'capty-tile',
prefix: '<span style="color: #35BB87;"></span>',
sufix: ''
});

});
  </script></td>
  </tr>
</table>

댓글 전체

전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

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