전체최신글 불러오는방법 정보
전체최신글 불러오는방법본문
메인화면에 전체최신글을 불러올려고하는데요..
bbs/new.php 페이지에 전체최신글이 출력이되네요..
내가 원하는 위치에 전체최신글불러오는 방법좀알려주세요...;;
아무리 찾아봐도 없네요...
bbs/new.php 페이지에 전체최신글이 출력이되네요..
내가 원하는 위치에 전체최신글불러오는 방법좀알려주세요...;;
아무리 찾아봐도 없네요...
댓글 전체

상단에
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
원하는 곳에
<?=latest("basic", "notice", 3, 15)?>
<?=latest("스킨이름", "게시판제목", 갯수, 글의수)?>
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
원하는 곳에
<?=latest("basic", "notice", 3, 15)?>
<?=latest("스킨이름", "게시판제목", 갯수, 글의수)?>
답변감사합니다 그런데... 답변주신 내용은 한군데 게시판만 불러오는거에요 ~~ㅜㅜ
모든게시판의 최신글출력이 되는게 궁금합니다..;;
모든게시판의 최신글출력이 되는게 궁금합니다..;;

그누보드 기본 index.php 를 보시면 편하실듯 합니다.
index.php에 전체 최신글을 불러오는 게 잇습니당.
index.php에 전체 최신글을 불러오는 게 잇습니당.
네 거기도 확인했봤었구요..
거기도 모든게시물이 나오긴한데 카테고리별루 나눠져서 각각나오네요
제가 원하는건..
/bbs/new.php 여기처럼 나오는 방식요 ^^;;
거기도 모든게시물이 나오긴한데 카테고리별루 나눠져서 각각나오네요
제가 원하는건..
/bbs/new.php 여기처럼 나오는 방식요 ^^;;
아래처럼하면 모든게시판의 최신글이 출력됩니다.
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
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"); ?>
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
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"); ?>
답변감사합니다.. 그런데 이렇게하면 모든게시물의 최근글이뜨긴한데... 카테고리별로 나눠지면서 뜨네요
제가 원하는거... /bbs/new.php 처럼 하나의 최근게시물에 모든게시물의 글이 나오는 방식말하는거에요 ^^;;
제가 원하는거... /bbs/new.php 처럼 하나의 최근게시물에 모든게시물의 글이 나오는 방식말하는거에요 ^^;;

그룹 최신글 스킨을 다운 받으셔서 응용 해보시면 될듯 합니다.
1 첫번째 방법
new.php를 복사해서 index.php를 다시 만들면 됩니다
메인에 사용되는 head, tail 메뉴 등을 붙여넣으세요
2. 두번째 방법
new.php를 복사하여 새로운 화일로 만들고 common, head, tail 등 삭제
하단의 스킨 경로조절
index.php 에서 include
new.php를 복사해서 index.php를 다시 만들면 됩니다
메인에 사용되는 head, tail 메뉴 등을 붙여넣으세요
2. 두번째 방법
new.php를 복사하여 새로운 화일로 만들고 common, head, tail 등 삭제
하단의 스킨 경로조절
index.php 에서 include

new.php의 디자인(?) 스타일을 좀 수정하셔서
<? include "/bbs/new.php"; ?> 해보세요.
<? include "/bbs/new.php"; ?> 해보세요.