최신글 스킨 가로개수 질문 > 그누4 질문답변

그누4 질문답변

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

최신글 스킨 가로개수 질문 정보

최신글 스킨 가로개수 질문

본문

$mod 값을 아무리 바꾸어봐도 한줄당 가로개수가 줄어드는건되는데 늘어나질 않네요
인덱스에 5를 3이나 2로 하면 줄어드는데 4개이상은 늘어나질 않더군요;;;
뭔가 빠져있는듯한데요 좀 도와주세요 ㅠㅠ 급해서.....
index.php에
<? echo latest("sir.auto.slide1","lure_storm", 5,6); ?> 추가하였습니다



latest.skin.php 내용입니다.

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$latest_skin_path/skin.lib.php");

$img_width = 100; // 이미지 가로 사이즈
$img_height = 100; // 이미지 세로 사이즈

$mod = 3; // 한줄 출력개수

$data_path = $g4[path]."/data/file/$bo_table";
$thumb_path = $data_path.'/latest_thumb';

@mkdir($thumb_path, 0707);
@chmod($thumb_path, 0707);
?>
<style type="text/css">

/* -------------------------------------------------- */

/* -------------------------------------------------- */

.mod-left UL {
PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}

.mod-left LI {
PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}
H1 {
PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}
.mod-left H2 {
PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}

.mod-left PRE {
PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}


.mod-left {
BORDER-RIGHT: #d8d8d8 1px solid; BORDER-TOP: #d8d8d8 1px solid; MARGIN-BOTTOM: 8px; BORDER-LEFT: #d8d8d8 1px solid; WIDTH: 650px; BORDER-BOTTOM: #d8d8d8 1px solid
}
.mod-left H2 {
COLOR: #1c2c58
}
.mod-left H2 A:visited {
COLOR: #0b3b8c
}


.bottom-Article-QQ .hdLa {
BACKGROUND: #fafafa; WIDTH: 100%; LINE-HEIGHT: 28px; BORDER-BOTTOM: #d8d8d8 1px solid; HEIGHT: 28px
}
.bottom-Article-QQ H2 {
FONT-SIZE: 14px; TEXT-INDENT: 17px
}
.bottom-Article-QQ .bdLa {
PADDING-LEFT: 22px; PADDING-BOTTOM: 10px; WIDTH: 626px; PADDING-TOP: 10px
}
.bottom-Article-QQ LI {
FLOAT: left; WIDTH: 156px; LINE-HEIGHT: 21px; TEXT-ALIGN: left
}


.sildPic-Article-QQ H2 {
FLOAT: left
}
.sildPic-Article-QQ .hdLa {
BACKGROUND: #fafcff
}
.sildPic-Article-QQ .bdLa {
BACKGROUND: #fafcff
}

#Niv-sildpcbar {BACKGROUND:#fafcff; WIDTH: 649px;
}
.sildPic-Article-QQ .sildPicBar {
DISPLAY: inline; FLOAT: right; OVERFLOW: hidden; WIDTH: 90px; MARGIN-RIGHT: 18px; PADDING-TOP: 8px; ZOOM: 1; HEIGHT: 15px;
}
.sildPic-Article-QQ .pre {
DISPLAY: inline; BACKGROUND: url(<?=$latest_skin_path?>/img/xixi.png) no-repeat -151px -60px; FLOAT: left; WIDTH: 20px; CURSOR: pointer; MARGIN-RIGHT: 8px; HEIGHT: 15px
}
.sildPic-Article-QQ .next {
BACKGROUND: url(<?=$latest_skin_path?>/img/xixi.png) no-repeat -151px -131px; FLOAT: right; WIDTH: 20px; CURSOR: pointer; HEIGHT: 15px
}
.sildPic-Article-QQ .sildPicBar LI {
MARGIN-TOP: 5px; DISPLAY: inline; BACKGROUND: url(<?=$latest_skin_path?>/img/xixi.png) no-repeat -165px -112px; FLOAT: left; MARGIN-LEFT: 3px; WIDTH: 6px; CURSOR: pointer; HEIGHT: 6px
}
.sildPic-Article-QQ .sildPicBar LI.select {
BACKGROUND: url(<?=$latest_skin_path?>/img/xixi.png) no-repeat -165px -86px
}


/* 상, 하, 좌, 우 여백 */
.sildPic-Article-QQ .bdLa {
PADDING-LEFT: 19px; PADDING-RIGHT: 5px; BACKGROUND: #fafcff; PADDING-BOTTOM: 0px; WIDTH: 625px; PADDING-TOP: 5px
}
/* 슬라이더 포지션 가로, 세로 범위 */
.sildPic-Article-QQ .cnt-wrap {
OVERFLOW: hidden; WIDTH: 624px; ZOOM: 1; HEIGHT: 162px
}
/* 슬라이더 전체 길이 지정 */
.sildPic-Article-QQ .cnt {
WIDTH: 3872px
}
.sildPic-Article-QQ LI {
FLOAT: left; WIDTH: 156px
}
.sildPic-Article-QQ .cnt SPAN {
WIDTH: 100%; COLOR: #7e7e7e; TEXT-ALIGN: left
}
.sildPic-Article-QQ .cnt IMG {
BORDER-RIGHT: #ccc 1px solid; BORDER-TOP: #ccc 1px solid; BORDER-LEFT: #ccc 1px solid; BORDER-BOTTOM: #ccc 1px solid
}
.sildPic-Article-QQ .cnt .link {
DISPLAY: block; MARGIN-LEFT: 0px; WIDTH: 140px; TEXT-ALIGN: center
}
.sildPic-Article-QQ .cnt SPAN A {
COLOR: #7e7e7e
}
.sildPic-Article-QQ .cnt SPAN A:visited {
COLOR: #7e7e7e
}
</style>

<SCRIPT src="<?=$latest_skin_path?>/js/dicengComm_pack_v1.0.1.js" type=text/javascript></SCRIPT>

<SCRIPT type=text/javascript>
TencentArticl.onload();
</SCRIPT>

<!--최신글, 이미지, 내용 시작-->

<DIV class="mod-left bottom-Article-QQ sildPic-Article-QQ">

<DIV class=hdLa>
&nbsp;&nbsp;<a href="<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>"><?=$board[bo_subject]?></a>
</DIV>
<DIV id=Niv-sildpcbar>
<DIV class=sildPicBar id=sildPicBar>
<SPAN class=pre></SPAN>
<UL id=dot></UL>
  <SPAN class=next></SPAN>
</DIV>
</DIV>
<DIV class=bdLa>
<DIV class=cnt-wrap id=cnt-wrap>
<DIV class=cnt id=cnt>
<UL>
<br />
<? for ($i=0; $i<count($list); $i++) { ?>
<LI>
<?
if($list[$i][file][0][view]){
$src = $list[$i][file][0][path]."/".$list[$i][file][0][file];
$get_img = getimagesize($src); // 파일정보를 가져옴
// 관리자가 이미지 사이즈를 바꾸었을때를 대비하여 리사이징 크기를 이름에 포함과 이미지 재 첨부시 바뀜
$img_step1 = explode("_",$list[$i][file][0][file]);
$img_step2 = explode(".",$img_step1[1]);
$new_imgname = $img_step2[0];
$thumb_file_list = "{$thumb_path}/{$re_img_width}x{$re_img_height}_{$new_imgname}_{$list[$i][wr_id]}_list";
if(!file_exists($thumb_file_list)){
// gd lib 체크
$gd = gd_info();
$gdversion = substr(preg_replace("/[^0-9]/", "", $gd['GD Version']), 0, 2); // gd 버전이 2.0 이상인지 체크
if(!$gdversion){
$thumb_file_view = $src; // gd 2.0 이하면 강제적으로 줄임
}else{
if($img_width > $get_img[0] || $img_height > $get_img[1]){
$thumb_file_list = $src;
}else{
createThumb_list($img_width,$img_height,$src, $thumb_file_list, $get_img); // list 페이지 썸네일
}
}
}
$img = "<a href='{$list[$i]['href']}'><img src=\"$thumb_file_list\" border=\"0\" width=\"$img_width\" height=\"$img_height\"/><BR><span style=\"font-size:9pt;\"><font face=\"돋움\" color=\"#333333\">{$list[$i]['subject']}</span></a>";
}else{
// no 이미지를 비율적으로 만들어났음
$img = "<a href='{$list[$i]['href']}'><img src=\"$latest_skin_path/img/no_image.gif\" border=\"0\" height=\"{$img_height}\" width=\"{$img_width}\"/><BR><span style=\"font-size:9pt;\"><font face=\"돋움\" color=\"#333333\">{$list[$i]['subject']}</span>*/</a>";
}
echo $img;
?>
</LI>

<? } ?>
<? if (count($list) == 0) { ?><li>게시물이 없습니다.</li><? } ?>
</UL>
 </DIV></DIV>
  </DIV>
</DIV>

댓글 전체

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

회원로그인

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