인덱스 페이지 문제..ㅠㅠ 정보
인덱스 페이지 문제..ㅠㅠ
관련링크
본문
이렇게 나타내고자 합니다..
우선 사진의 제가쓰는 스킨을 링크 시켜두었습니다.
이 스킨으로 도무지..소스를 어떻게 바꿔야 할지 모르겠네요 ㅠㅠ
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
$g4['title'] = "";
include_once("./_head.php");
?>
<!-- 메인화면 최신글 시작 -->
<table width="100%" cellpadding=0 cellspacing=0>
<tr>
<td valign=top>
<?
include_once("$g4[path]/lib/latest.group.lib.php");
// 최신글
$sql = " select * from $g4[group_table] order by gr_order_search, gr_id ";
$result = sql_query($sql);
$col_width = 100 / 2 . "%"; // 2개씩 채워서 넣기 위해서
$ja = 0;
echo "<table width='100%'><tr valign=top>";
// 전체 최근글 출력
// function latest_group($skin_dir="", $gr_id="", $rows=10, $subject_len=40, $content_len="", $skin_title="", $skin_title_link="")
echo "<td width='" . $col_width ."' valign=top>";
echo latest_group("simple", "", 12, 40, "", "전체최근글", "$g4[bbs_path]/new.php");
$ja++;
echo "</td>";
// 최근에 답글이나 코멘트가 달린 글
// function latest_group($skin_dir="", $gr_id="", $rows=10, $subject_len=40, $content_len="", $skin_title="", $skin_title_link="")
echo "<td width='" . $col_width ."' valign=top>";
echo latest_group("simple", "", 12, 40, "", "전체 내글의반응", "$g4[bbs_path]/new.php","my_datetime");
$ja++;
echo "</td>";
for ($i=0; $row=sql_fetch_array($result); $i++) {
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
// 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.
// 사용방법
// latest(스킨, 게시판아이디, 출력라인, 글자수);
if ($ja == 2) { // 줄바꿈
echo "</tr><tr valign=top>";
$ja = 0;
}
echo "<td width='" . $col_width ."' valign=top>";
echo latest_group("simple", $row['gr_id'], 12, 40);
$ja++;
echo "</td>";
}
echo "</tr>";
// 최근글
echo "</tr><tr valign=top>";
echo "<td>" . latest('simple', notice) . "</td>";
echo "<td>" . latest('simple', kin) . "</td>";
echo "</td>";
echo "</table>";
?>
</td>
</tr>
</table>
<!-- 메인화면 최신글 끝 -->
<?
include_once("./_tail.php");
?>
무위님께서 알려주신 소스는 최신글불러오는건 되지만..일반 게시판은 또 불러오는것이 안되더라구요 ㅠㅠ
제가 초보라서 어떻게 하는지 몰라서 그러는데요..누가 소스자체를 바꿔주실분 없으신가요??
게시판의 스킨아뒤는 simple 입니다.
댓글 전체

html 기본 구성의 문제입니다.
즉 테그를 공부하시면 빠릅니다.
누가 모든걸 대신해 주지 않습니다.
