최근 게시물 2줄 정렬 문제 입니다. 정보
최근 게시물 2줄 정렬 문제 입니다.본문
댓글 전체

테이블로 짜보시는게?
<table width=100%>
<th width="250"><? echo latest("basic", "1" 5, 70); ?></th>
<th width="250"><? echo latest("basic", "2" 5, 70); ?></th>
<tr>
</tr>
<th width="250"><? echo latest("basic", "3" 5, 70); ?></th>
<th width="250"><? echo latest("basic", "4" 5, 70); ?></th>
<tr>
</tr>
<th width="250"><? echo latest("basic", "5" 5, 70); ?></th>
<th width="250"><? echo latest("basic", "6" 5, 70); ?></th>
</table>
<table width=100%>
<th width="250"><? echo latest("basic", "1" 5, 70); ?></th>
<th width="250"><? echo latest("basic", "2" 5, 70); ?></th>
<tr>
</tr>
<th width="250"><? echo latest("basic", "3" 5, 70); ?></th>
<th width="250"><? echo latest("basic", "4" 5, 70); ?></th>
<tr>
</tr>
<th width="250"><? echo latest("basic", "5" 5, 70); ?></th>
<th width="250"><? echo latest("basic", "6" 5, 70); ?></th>
</table>
제가 질문게시판 정보를 통해서 두줄로 만들었는데
원리를 잘 모르다보니 뭘 어떻게 바꿨는지가 기억이 안나요 ㅠㅠ 참고글도 뭐였는지 모르겠고..
group.php 내용인데 뭔지 보이시면 적용시켜 보심이..
<?
// 상대 경로
$g4_path = "..";
include_once("$g4_path/common.php");
include_once("$g4[path]/lib/latest.lib.php");
$g4[title] = $group[gr_subject];
include_once("./_head.php");
?>
<!-- 메인화면 최신글 시작 -->
<table width="100%" cellpadding=0 cellspacing=0 border=0>
<tr>
<?
// 최신글
//게시판 권한 설정 적용 - 전체 검색사용에 체크된 게시판만 검색순서에 따라 추출
$sql = " select bo_table, bo_subject from $g4[board_table]
where gr_id = '$gr_id'
and bo_table != 'B23'
and bo_table != 'B26'
and bo_list_level <= '$member[mb_level]'
and bo_use_search = '1' order by bo_order_search";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
$sp = $i%2 ? left : right;
if ($i>0 && $i%2==0) { echo "</tr><tr><td colspan='2' height='10'></td></tr><tr>"; }
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
// 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.
// 사용방법
// latest(스킨, 게시판아이디, 출력라인, 글자수);
echo "<td width='50%' style='padding-{$sp}:5px;' valign='top'>";
echo latest("mw.list", $row[bo_table], 5, 70);
echo "</td>";
}
?>
<?
$cnt = ($i%2);
for ($k=$cnt; $k<2 && $cnt; $k++) {
echo "<td width='50%'> </td>";
}
?>
</tr>
</table>
<!-- 메인화면 최신글 끝 -->
<?
include_once("./_tail.php");
?>
원리를 잘 모르다보니 뭘 어떻게 바꿨는지가 기억이 안나요 ㅠㅠ 참고글도 뭐였는지 모르겠고..
group.php 내용인데 뭔지 보이시면 적용시켜 보심이..
<?
// 상대 경로
$g4_path = "..";
include_once("$g4_path/common.php");
include_once("$g4[path]/lib/latest.lib.php");
$g4[title] = $group[gr_subject];
include_once("./_head.php");
?>
<!-- 메인화면 최신글 시작 -->
<table width="100%" cellpadding=0 cellspacing=0 border=0>
<tr>
<?
// 최신글
//게시판 권한 설정 적용 - 전체 검색사용에 체크된 게시판만 검색순서에 따라 추출
$sql = " select bo_table, bo_subject from $g4[board_table]
where gr_id = '$gr_id'
and bo_table != 'B23'
and bo_table != 'B26'
and bo_list_level <= '$member[mb_level]'
and bo_use_search = '1' order by bo_order_search";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
$sp = $i%2 ? left : right;
if ($i>0 && $i%2==0) { echo "</tr><tr><td colspan='2' height='10'></td></tr><tr>"; }
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
// 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.
// 사용방법
// latest(스킨, 게시판아이디, 출력라인, 글자수);
echo "<td width='50%' style='padding-{$sp}:5px;' valign='top'>";
echo latest("mw.list", $row[bo_table], 5, 70);
echo "</td>";
}
?>
<?
$cnt = ($i%2);
for ($k=$cnt; $k<2 && $cnt; $k++) {
echo "<td width='50%'> </td>";
}
?>
</tr>
</table>
<!-- 메인화면 최신글 끝 -->
<?
include_once("./_tail.php");
?>
배추빌더사용 하고 있는데 bbs/group.php 이거 수정을 해야 하나요?
제 메인은 index.main.skin.php 이거든요~
그냥 인덱스면 테이블로 짜서 하면 칸이 딱딱 잘 맞을텐데 빌더는 짜여진 테이블이라서 그런지 잘 안맞는것 같기도하고 어떻게 해야하는지 몰겠네요~
제 메인은 index.main.skin.php 이거든요~
그냥 인덱스면 테이블로 짜서 하면 칸이 딱딱 잘 맞을텐데 빌더는 짜여진 테이블이라서 그런지 잘 안맞는것 같기도하고 어떻게 해야하는지 몰겠네요~

index.main.skin.php
수정하셔야 해요.
bbs/group.php 수정하시면 아니되요~
수정하셔야 해요.
bbs/group.php 수정하시면 아니되요~
저는 그룹별 클릭했을 때 나오는 최신글이 한줄이라 두줄로 바꾼거였구요
배추빌더 라이트 최신버전 쓰는데 메인 최신글은 처음부터 두줄로 나왔거든요.
그거 파일 받아서 참고하셔도 좋을 듯 해요
배추빌더 라이트 최신버전 쓰는데 메인 최신글은 처음부터 두줄로 나왔거든요.
그거 파일 받아서 참고하셔도 좋을 듯 해요