외부메인에 최근게시물걸기 도와주세요 정보
외부메인에 최근게시물걸기 도와주세요관련링크
본문
그누보드메인이 아닌 외부메인에서 최근게시물만 뽑아내려고 합니다.
공지사항,보도자료 2개의 최근게시물입니다.
외부메인은 테이블로 아래와 같은 소스입니다.
해더,푸터 인클루드 되어있습니다.(외부메인루트안에)
그런데 공지사항,보도자료 td안에 최근게시물을 어떻게 인클루드 시켜야할지 모르겠어요.-.-;
소스찾아보면서 해봤는데 링크에서 자꾸 오류문이 뜨네요.
td안에
<? include "http://www.dbpaper.net/gnuboard4/bbs/board.php?bo_table=free" ?>
이렇게 넣어보니 안뜨더라구요.
도와주세요~~
ftp 경로는 루트에 index2.php 가 젤 앞이고 그다음에 그누보드 폴더순입니다.
http://www.dbpaper.net/index2.php
index2.php 소스입니다
<head>
<script type="text/javascript" src="swf.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr" />
<title>BRAND CREATING COMMUNICATION IDIUS </title>
<link href="css/db.css" rel="stylesheet" type="text/css">
</head>
<? include "inc/function.php" ?>
<? explorerTitle() ?>
<body leftmargin="0" topmargin="0">
<!-------------------------------------------flah navigation section sta----------------------------------------------------->
<table width="100%" border="1" cellpadding="0" cellspacing="0">
<tr>
<td valign="bottom"><? include "inc/header.php" ?> </td>
</tr>
</table>
<!-------------------------------------------flah navigation section fin----------------------------------------------------->
<table width="980" border="1" cellpadding="0" cellspacing="0">
<tr>
<td width="680" rowspan="5"><img src="images/img_main2.jpg">
<!--
<script>insertSWF("intro.swf","top",733,400,"transparent","#000000")</script>-->
</td>
<td>사이트맵</td>
</tr>
<tr>
<td height="100">공지사항(최근게시물1)</td>
</tr>
<tr>
<td height="100">보도자료(최근게시물2)</td>
</tr>
<tr>
<td height="200">제품소개</td>
</tr>
<tr>
<td>고객센터</td>
</tr>
</table>
<!---------------------------------------------------------copyright section sta----------------------------------->
<table width="100%" border="1" cellpadding="0" cellspacing="0">
<tr>
<td height='2' bgcolor='c2c2c2'></td>
</tr>
</table>
<table>
<tr><td align="center"> <? bottom()?> </td></tr></table>
<!---------------------------------------------------------copyright section fin----------------------------------->
</body>
</html>
공지사항,보도자료 2개의 최근게시물입니다.
외부메인은 테이블로 아래와 같은 소스입니다.
해더,푸터 인클루드 되어있습니다.(외부메인루트안에)
그런데 공지사항,보도자료 td안에 최근게시물을 어떻게 인클루드 시켜야할지 모르겠어요.-.-;
소스찾아보면서 해봤는데 링크에서 자꾸 오류문이 뜨네요.
td안에
<? include "http://www.dbpaper.net/gnuboard4/bbs/board.php?bo_table=free" ?>
이렇게 넣어보니 안뜨더라구요.
도와주세요~~
ftp 경로는 루트에 index2.php 가 젤 앞이고 그다음에 그누보드 폴더순입니다.
http://www.dbpaper.net/index2.php
index2.php 소스입니다
<head>
<script type="text/javascript" src="swf.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr" />
<title>BRAND CREATING COMMUNICATION IDIUS </title>
<link href="css/db.css" rel="stylesheet" type="text/css">
</head>
<? include "inc/function.php" ?>
<? explorerTitle() ?>
<body leftmargin="0" topmargin="0">
<!-------------------------------------------flah navigation section sta----------------------------------------------------->
<table width="100%" border="1" cellpadding="0" cellspacing="0">
<tr>
<td valign="bottom"><? include "inc/header.php" ?> </td>
</tr>
</table>
<!-------------------------------------------flah navigation section fin----------------------------------------------------->
<table width="980" border="1" cellpadding="0" cellspacing="0">
<tr>
<td width="680" rowspan="5"><img src="images/img_main2.jpg">
<!--
<script>insertSWF("intro.swf","top",733,400,"transparent","#000000")</script>-->
</td>
<td>사이트맵</td>
</tr>
<tr>
<td height="100">공지사항(최근게시물1)</td>
</tr>
<tr>
<td height="100">보도자료(최근게시물2)</td>
</tr>
<tr>
<td height="200">제품소개</td>
</tr>
<tr>
<td>고객센터</td>
</tr>
</table>
<!---------------------------------------------------------copyright section sta----------------------------------->
<table width="100%" border="1" cellpadding="0" cellspacing="0">
<tr>
<td height='2' bgcolor='c2c2c2'></td>
</tr>
</table>
<table>
<tr><td align="center"> <? bottom()?> </td></tr></table>
<!---------------------------------------------------------copyright section fin----------------------------------->
</body>
</html>
댓글 전체
include는 동일 계정에서 될거구요..
완전 외부 페이지면 iframe 파서 넣으세요...
완전 외부 페이지면 iframe 파서 넣으세요...
동일계정이구요.아이프레임이면 같은창에서만 게시판이 보이게되지 않나요? 다음페이지로 넘어가야되거든요.^^;;
동일 계정인데, 게시판 전체를 include 하시는 이유가 따로 있으신가요?
최근게시물을 불러오는 방법은 메뉴얼에 나와있듯, 상단에
include_once("$g4[path]/lib/latest.lib.php");
를 해주고,
td 안에
<?=latest(basic, free, 5, 70);?>
를 해주면 되지 않나요?
최근게시물을 불러오는 방법은 메뉴얼에 나와있듯, 상단에
include_once("$g4[path]/lib/latest.lib.php");
를 해주고,
td 안에
<?=latest(basic, free, 5, 70);?>
를 해주면 되지 않나요?