q

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

· 2013-02-12 (화) 11:16:06 · 726 · 1
특정 게시판 최신글만 불러 오는 최신글 스킨을 전체 게시판 글을 불러오는 스킨으로 바꾸려고 하는데 잘 안되네요 ㅜㅜ 혹시 팁이나 아시는분들 제발 답변 부탁드립니다.

불러오는 소스는 <?=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("/ /"," ",$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>
|

댓글 1개

무슨 말인지 해독이 안되네요
최신글 스킨 형태로 일반게시판 스킨을 바꾸려한다 이것인가요?
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

66,531건

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

+
제목 글쓴이 날짜 조회
13-02-12 조회 954
13-02-12 조회 1,046
13-02-12 조회 1,808
13-02-12 조회 1,305
13-02-12 조회 1,661
13-02-12 조회 727
13-02-12 조회 854
13-02-12 조회 867
13-02-12 조회 820
13-02-12 조회 851
13-02-12 조회 1,055
13-02-12 조회 2,391
13-02-12 조회 882
13-02-12 조회 919
13-02-11 조회 707
13-02-11 조회 1,530
13-02-11 조회 1,870
13-02-11 조회 598
13-02-11 조회 1,126
13-02-11 조회 1,054