답변 2개
채택된 답변
+20 포인트
아마 그누보드4를 새로 설치하면 아래와 같은 index.php가 생성됩니다.
Copy
<?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><?// 최신글$sql = " select bo_table, bo_subject from $g4[board_table] order by gr_id, bo_table ";$result = sql_query($sql);for ($i=0; $row=sql_fetch_array($result); $i++) { // 이 함수가 바로 최신글을 추출하는 역할을 합니다. // 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다. // 사용방법 // latest(스킨, 게시판아이디, 출력라인, 글자수); echo latest("basic", $row['bo_table'], 10, 70); echo "<p>\n";}?></td></tr></table><!-- 메인화면 최신글 끝 --> <?include_once("./_tail.php");?>
이부분은 결국은 주요한부분을 보여주는겉데요
<!-- 메인화면 최신글 시작 -->
<table width="100%" cellpadding=0 cellspacing=0><tr><td valign=top>
<?
// 최신글
$sql = " select bo_table, bo_subject from $g4[board_table] order by gr_id, bo_table ";
이부분은 삭제하시고 해당 인트로를 만들어서 include하시면될듯합니다.
아마 말씀하시는게 이걸 원하시는거 같지 않아 생각됩니다.
좀더 구제적인 도움이 필요하시면 쪽지 주세요 ^^
답변을 작성하려면 로그인이 필요합니다.