최신이미지그룹나열공백없애는방법 정보
최신이미지그룹나열공백없애는방법본문
오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.
오류 주소 : http://shopinshop1.com/
전에 한번 올렸었는데 안되네요....
최신그룹 이미지를 나열한건데
이렇게 공백이 생겨버리네요
이미지랑 그아래 제목( 큰글씨) 만 보이게 하고 작은 내용은 안나오게 하고싶은데 어떻게 해야 하는지
도움좀 부탁드려요~
<?
if (!defined('_GNUBOARD_')) exit;
// 함수 정의 시작
// 최신글 추출 - 선택한 그룹별로 원하는 게시판을 제외하고 원하는 수만큼 보여줌
function new_icon($bo_table) {
global $g4;
$temp = sql_fetch("select bo_new from `$g4[board_table]` where bo_table = '$bo_table'");
$timefrom = date("Y-m-d H:i:s", time() - $temp[bo_new] * 60 * 60);
if(sql_fetch("select wr_datetime from `$g4[write_prefix]$bo_table` where !wr_is_comment AND wr_datetime > '$timefrom'")) echo " <img src=\"$g4[path]/skin/board/basic/img/icon_new.gif\" width='9' height='9'/>";
}
function latest_group($skin_dir="", $gr_id, $rows=10, $subject_len=40, $no_table="", $category="", $orderby="")
{
global $config;
global $g4;
$list = array(); $limitrows = $rows;
$sqlgroup = " select bo_table, bo_subject from $g4[board_table] where gr_id = '$gr_id' ";
// 제거할 테이블들
if ($no_table) {
$t_flag = serialize($no_table);
if ($t_flag[0] == "a") { //Array이면
for ($ic=0; $ic<count($no_table); $ic++) {
$sqlgroup .= " and bo_table != '$no_table[$ic]' ";
}
} else if ($t_flag[0] == "s") { //String이면
$sqlgroup .= " and bo_table != '$no_table' ";
}
}
$sqlgroup .= " and bo_use_search=1 order by bo_order_search ";
$rsgroup = sql_query($sqlgroup);
if ($skin_dir)
$latest_skin_path = "$g4[path]/skin/latest/$skin_dir";
else
$latest_skin_path = "$g4[path]/skin/latest/$config[cf_latest_skin]";
for ($j=0, $k=0; $rowgroup=sql_fetch_array($rsgroup); $j++) {
$bo_table = $rowgroup[bo_table];
// 테이블 이름구함
$sql = " select * from {$g4[board_table]} where bo_table = '$bo_table'";
$board = sql_fetch($sql);
$tmp_write_table = $g4[write_prefix] . $bo_table; // 게시판 테이블 실제이름
// 옵션에 따라 정렬
$sql = "select * from $tmp_write_table where wr_is_comment = 0 ";
$sql .= (!$category) ? "" : " and ca_name = '$category' ";
$sql .= (!$orderby) ? " order by wr_id desc " : " order by $orderby desc, wr_id desc ";
$sql .= " limit $limitrows";
$result = sql_query($sql);
for ($i=0; $row = sql_fetch_array($result); $i++, $k++) {
if(!$orderby) $op_list[$k] = $row[wr_datetime];
else {
$op_list[$k] = is_string($row[$orderby]) ? sprintf("%-256s", $row[$orderby]) : sprintf("%016d", $row[$orderby]);
$op_list[$k] .= $row[wr_datetime];
}
$list[$k] = get_list($row, $board, $latest_skin_path, $subject_len);
$list[$k][bo_table] = $board[bo_table];
$list[$k][bo_subject] = $board[bo_subject];
$list[$k][bo_wr_subject] = cut_str($board[bo_subject] . $list[$k][wr_subject], $subject_len);
}
}
if($k>0) array_multisort($op_list, SORT_DESC, $list);
if($k>$rows) array_splice($list, $rows);
ob_start();
include "$latest_skin_path/latest.skin.php";
$content = ob_get_contents();
ob_end_clean();
return $content;
}
/// 함수 정의 끝
?>
오류 주소 : http://shopinshop1.com/
전에 한번 올렸었는데 안되네요....
최신그룹 이미지를 나열한건데
이렇게 공백이 생겨버리네요
이미지랑 그아래 제목( 큰글씨) 만 보이게 하고 작은 내용은 안나오게 하고싶은데 어떻게 해야 하는지
도움좀 부탁드려요~
<?
if (!defined('_GNUBOARD_')) exit;
// 함수 정의 시작
// 최신글 추출 - 선택한 그룹별로 원하는 게시판을 제외하고 원하는 수만큼 보여줌
function new_icon($bo_table) {
global $g4;
$temp = sql_fetch("select bo_new from `$g4[board_table]` where bo_table = '$bo_table'");
$timefrom = date("Y-m-d H:i:s", time() - $temp[bo_new] * 60 * 60);
if(sql_fetch("select wr_datetime from `$g4[write_prefix]$bo_table` where !wr_is_comment AND wr_datetime > '$timefrom'")) echo " <img src=\"$g4[path]/skin/board/basic/img/icon_new.gif\" width='9' height='9'/>";
}
function latest_group($skin_dir="", $gr_id, $rows=10, $subject_len=40, $no_table="", $category="", $orderby="")
{
global $config;
global $g4;
$list = array(); $limitrows = $rows;
$sqlgroup = " select bo_table, bo_subject from $g4[board_table] where gr_id = '$gr_id' ";
// 제거할 테이블들
if ($no_table) {
$t_flag = serialize($no_table);
if ($t_flag[0] == "a") { //Array이면
for ($ic=0; $ic<count($no_table); $ic++) {
$sqlgroup .= " and bo_table != '$no_table[$ic]' ";
}
} else if ($t_flag[0] == "s") { //String이면
$sqlgroup .= " and bo_table != '$no_table' ";
}
}
$sqlgroup .= " and bo_use_search=1 order by bo_order_search ";
$rsgroup = sql_query($sqlgroup);
if ($skin_dir)
$latest_skin_path = "$g4[path]/skin/latest/$skin_dir";
else
$latest_skin_path = "$g4[path]/skin/latest/$config[cf_latest_skin]";
for ($j=0, $k=0; $rowgroup=sql_fetch_array($rsgroup); $j++) {
$bo_table = $rowgroup[bo_table];
// 테이블 이름구함
$sql = " select * from {$g4[board_table]} where bo_table = '$bo_table'";
$board = sql_fetch($sql);
$tmp_write_table = $g4[write_prefix] . $bo_table; // 게시판 테이블 실제이름
// 옵션에 따라 정렬
$sql = "select * from $tmp_write_table where wr_is_comment = 0 ";
$sql .= (!$category) ? "" : " and ca_name = '$category' ";
$sql .= (!$orderby) ? " order by wr_id desc " : " order by $orderby desc, wr_id desc ";
$sql .= " limit $limitrows";
$result = sql_query($sql);
for ($i=0; $row = sql_fetch_array($result); $i++, $k++) {
if(!$orderby) $op_list[$k] = $row[wr_datetime];
else {
$op_list[$k] = is_string($row[$orderby]) ? sprintf("%-256s", $row[$orderby]) : sprintf("%016d", $row[$orderby]);
$op_list[$k] .= $row[wr_datetime];
}
$list[$k] = get_list($row, $board, $latest_skin_path, $subject_len);
$list[$k][bo_table] = $board[bo_table];
$list[$k][bo_subject] = $board[bo_subject];
$list[$k][bo_wr_subject] = cut_str($board[bo_subject] . $list[$k][wr_subject], $subject_len);
}
}
if($k>0) array_multisort($op_list, SORT_DESC, $list);
if($k>$rows) array_splice($list, $rows);
ob_start();
include "$latest_skin_path/latest.skin.php";
$content = ob_get_contents();
ob_end_clean();
return $content;
}
/// 함수 정의 끝
?>
댓글 전체
스킨부분을 수정하셔야될듯 보이네요
여기 어디일까요??
다 조금씩 수정해봤는데 도통 모르겠어요ㅠㅠ
.hd-lt-celebrate100-gallery {margin-bottom:30px; border:1px solid #eee; background:#fff url(../img/bg_shadow.gif) repeat-x left bottom;}
.hd-lt-celebrate100-gallery h2 {height:30px; line-height:30px; padding-left:30px; color:#444; font-size:14px; font-family:'맑은 고딕','Malgun Gothic'; background:#fff url(../img/bg_h2.gif) repeat-x left bottom;}
.hd-lt-celebrate100-gallery h2 a {color:#444;}
.hd-lt-celebrate100-gallery h2 a:hover {color:#eee; text-decoration:underline;}
.hd-lt-celebrate100-gallery ul {padding:20px 10px; font-size:12px; line-height:100%; zoom:1;}
.hd-lt-celebrate100-gallery ul:after {content:""; display:block; clear:both;}
.hd-lt-celebrate100-gallery ul li {float:left; width:145px; padding:0 12px;vertical-align:top; display:inline;}
.hd-lt-celebrate100-gallery ul li a:hover {text-decoration:;}
.hd-lt-celebrate100-gallery ul li span.thumb {display:block; margin-bottom:10px;}
.hd-lt-celebrate100-gallery ul li span.thumb img {width:160px; height:160px; border:8px solid #fff;}
.hd-lt-celebrate100-gallery ul li span.subject {display:block; margin-bottom:12px; font-weight:bold; color:#444;}
.hd-lt-celebrate100-gallery ul li span.text {display:block; margin-bottom:10px; font-size:12px; color:#999;}
.hd-lt-celebrate100-gallery ul li span.date {display:block; font-size:10px; color:#fff;}
다 조금씩 수정해봤는데 도통 모르겠어요ㅠㅠ
.hd-lt-celebrate100-gallery {margin-bottom:30px; border:1px solid #eee; background:#fff url(../img/bg_shadow.gif) repeat-x left bottom;}
.hd-lt-celebrate100-gallery h2 {height:30px; line-height:30px; padding-left:30px; color:#444; font-size:14px; font-family:'맑은 고딕','Malgun Gothic'; background:#fff url(../img/bg_h2.gif) repeat-x left bottom;}
.hd-lt-celebrate100-gallery h2 a {color:#444;}
.hd-lt-celebrate100-gallery h2 a:hover {color:#eee; text-decoration:underline;}
.hd-lt-celebrate100-gallery ul {padding:20px 10px; font-size:12px; line-height:100%; zoom:1;}
.hd-lt-celebrate100-gallery ul:after {content:""; display:block; clear:both;}
.hd-lt-celebrate100-gallery ul li {float:left; width:145px; padding:0 12px;vertical-align:top; display:inline;}
.hd-lt-celebrate100-gallery ul li a:hover {text-decoration:;}
.hd-lt-celebrate100-gallery ul li span.thumb {display:block; margin-bottom:10px;}
.hd-lt-celebrate100-gallery ul li span.thumb img {width:160px; height:160px; border:8px solid #fff;}
.hd-lt-celebrate100-gallery ul li span.subject {display:block; margin-bottom:12px; font-weight:bold; color:#444;}
.hd-lt-celebrate100-gallery ul li span.text {display:block; margin-bottom:10px; font-size:12px; color:#999;}
.hd-lt-celebrate100-gallery ul li span.date {display:block; font-size:10px; color:#fff;}
.hd-lt-celebrate100-gallery ul li span.subject {display:block; height:20px; margin-bottom:12px; font-weight:bold; color:#444;}
위에처럼 높이값 넣어보세요~
파이어폭스에서 테스트했습니다.
위에처럼 높이값 넣어보세요~
파이어폭스에서 테스트했습니다.
정말정말정말 감사합니다.^---^ 해결했어요 후우~ 속이 시원해집니다^^