최신글 이미지 갯수라고 해야되나요? 정보
최신글 이미지 갯수라고 해야되나요?본문
요걸 사용 중인데
메인에 최신글에
이미지가 5개 나오고
그다음줄로 넘어가서 또 5개 나오고 하는데
가로로 딱 5개만 나오고 다음줄로 넘어가는게
그러니
1 번줄
2번줄
3번줄
이렇게.. 5개씩 찰떄마다 줄이 계속 바끼는데
그냥 1번줄만 5개로 있게 하고 그다음 줄이 안나왓으면합니다.. ㅠ
딱 1줄만 출력되게!! 1줄 이미지 게시글 5개..
http://bizmd001.cafe24.com/ 요사이트 보시면 작업 갤러리 부분에서
2줄로 나오는데 그냥 1줄만 나오게 .. 하려면 어떻게 해야되나요?ㅠ
++++++++++++++++++ 소스 부분 ++++++++++++++++++
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$data_path = $g4[path]."/data/file/$bo_table";
$thumb_path = $data_path.'/thumb';
/* 전체 환경설정 */
$all_width = "100%"; // 테이블 폭 정의
//섬네일 사이즈
$sum_width = "100"; //가로폭
$sum_height = "100"; //세로폭
//사진 테드리 사이즈
$ph_width = $sum_width +2;
$ph_height = $sum_height +2 ;
$cn = 5; // 이미지 가로 출력 갯수
include_once "$g4[path]/thumbEngine/dq_thumb_engine2.php";
$dqEngine['thumb_resize'] = 1;
?>
<table width="100%" border="0" cellpadding=0 cellspacing="2" align="center">
<tr align="center">
<!-- 목록 -->
<? for ($i=0; $i<count($list); $i++) {
$s = $i+1;
///////////////////////////////////dq//////////////////////////////////////////
$thumb_width =$sum_width;
$thumb_height =$sum_height;
$image = urlencode($list[$i][file][0][file]); // 첫번째 파일이 이미지라면
if (preg_match("/\.(gif|jpg|png)$/i", $image))
{
//DQ엔진 인클루드 2005-03-22 석훈
//// 이 스킨에서 DQ 가 작동하기 위해서는 입력하는 이미지보다는 작게 설정해야 됨
//// $thumbimg,img src 이미지 디렉토리를 변경해야 함
$dqEngine['using_usm'] = 1;
// 1또는 0 사용, 썸네일 이미지에 언샵마스크 필터를 적용한다. (샤픈필터의 한 종류)
// GD2.0 이상, PHP 4.3.2 이외의 버전일때 기본값 1, 그외 상황에서는 기본값 0 자동선택
// 1로 지정 하더라도 GD2.0이 아니거나 PHP 4.3.2 환경이면 자동으로 0으로 재설정 된다.
$dqEngine['usm_option1'] = 60; // USM 필터의 amount(강도) 수치, 기본값 : 60
$dqEngine['usm_option2'] = 0.5; // USM 필터의 radius(반경) 수치, 기본값 : 0.5
$dqEngine['usm_option3'] = 1; // USM 필터의 threshold(제외픽셀) 수치, 기본값 : 1
// USM 필터의 세부 설정은 포토샵의 그것과 사용법이 동일합니다.
$dqEngine['thumb_resize'] = "2";
// 0, 1, 2 사용
// 0: 원본 비율 대칭 리사이즈, 1: 비율유지 안함(찌그러짐), 2: 원본비율 리사이즈 + Center Crop
$thumbsource="$g4[path]/data/file/{$bo_table}/" . $image;
$thumb_path ="$g4[path]/data/file/{$bo_table}/" . 'dq_thumb_latest_dfsssfs';
if (!is_dir($thumb_path))
{
@mkdir($thumb_path, 0707);
@chmod($thumb_path, 0707);
}
$thumbimg="$thumb_path/thumb_onlyphotosY_latest_dssffff" . $image;
make_thumb($thumb_width,$thumb_height,$thumbsource,$thumbimg);
@chmod($thumbimg, 0707);
$thumbimg2 = "<img src='{$thumbimg}' width='".$thumb_width."' height='".$thumb_height."' style='border:1 #c1c1c1 solid'>";
}
else {
$thumbimg2 = "<img src='$latest_skin_path/img/no_image.gif' width='".$thumb_width."' height='".$thumb_height."' style='border:1 #c1c1c1 solid'>";
}
///////////////////////////////////dq//////////////////////////////////////////
//제목
$view_subject = "<span style='font-family:Tahoma;font-size:9pt;color:#555555;'>[{$list[$i]['subject']}]</span></a>";
//내용길이조정
$view_content = $list[$i]['wr_content'];
$view_content = conv_subject($view_content, "20", "");
//내용길이조정
$view_content = $list[$i]['wr_content'];
$view_content = conv_subject($view_content, "20", "");
if($list[$i][wr_link1]){
$href = $list[$i][wr_link1];
$target = "_blank";
}else{
$href = $list[$i][href];
$target = "_self";
}
$q++;
echo <<<HEREDOC
<td align="center">
<table border="0" >
<tr><td align="center" cellspacing="1" onmouseover="this.style.backgroundColor='#ff6f42'" onmouseout="this.style.backgroundColor='transparent'" bordercolor="#CCCCCC" bordercolordark="white" bordercolorlight="#CCCCCC"><a href="{$href}" target="{$target}">{$thumbimg2}</a></td></tr>
<tr><td height="5"></td></tr>
<tr><td align="center"><a href="{$list[$i][href]}">{$view_subject}</a></td></tr>
</table>
</td>
HEREDOC;
if($s%$cn==0 ) echo"</tr><tr><td colspan='$colspan' align=center height=5></tr><tr>";
}
?>
<? if (count($list) == 0) { ?><tr><td colspan=4 align=center height=50><font color=#6A6A6A>게시물이 없습니다.</font></a></td></tr><? } ?>
</table>
댓글 전체
인덱스에는 어떻게 추가하셧나요
추가 하실때 세로 값 정하는 부분없나요
추가 하실때 세로 값 정하는 부분없나요
<?=latest("dada_gallery", "gallery", 10, 30)?> 요렇게 되어있는데 ㅠ ㅠ
<?=latest("dada_gallery", "gallery", 갯수입니다., 30)?> 요렇게 되어있는데 ㅠ ㅠ
1 또는 5로 해보세요
1 또는 5로 해보세요