최신글에서요~~T.T 정보
그누보드 최신글에서요~~T.T본문
최신글을 사용하려고 하는데염....글이 안떠요...도와주세요...
-- main.php --
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
define("_DOCTYPE_", "DESIGN");
$html_title = "2bit > main 페이지";
?>
<table width=600 cellpadding=0 cellspacing=0>
<colgroup width=''>
<colgroup width=5>
<colgroup width=170>
<tr>
<td valign=top>최신글
<?
// 최신글 시작
$sql = " select bo_table, bo_subject from $cfg[table_board] order by gr_id, bo_table ";
$result = sql_query($sql);
for ($i=0; $row=mysql_fetch_array($result); $i++) {
// echo "<table width=100%><tr><td height=25 bgcolor=#F0F0F0> <img src='image/icon_01.gif' align=absmiddle> <a href='./?doc=bbs/gnuboard.php&bo_table=$row[bo_table]'><b>$row[bo_subject]</b></a></td></tr></table>";
# 이 함수가 바로 최신글을 추출하는 역할을 합니다.
# 사용방법
# latest(스킨, 게시판아이디, 출력라인, 글자수);
# 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.
// latest('', $row[bo_table], 5, 70);
echo "<p>";
}
// 최신글 끝
?>
</td>
<br>
<table align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="394" rowspan="2">
<p align=center><? latest('', notice, 1, 33); ?></p>
</td>
<td width="20" rowspan="2">
<p align="center"></p>
</td>
<td width="186">
<p align="center"><a href="?doc=bbs/gnuboard.php&bo_table=Web_Surfing"><img src="web_surfing.gif" width="145" height="34" border="0"></a></p>
</td>
</tr>
<tr>
<td width="186">
<p align="center"><? latest('', bbs, 5, 26); ?></p>
</td>
</tr>
</table>
<br>
-------------------------------------------------------------------------
이렇게 했는데..막상 띄어보니깐...아무것도 안뜨네요...
파일 위치주소는 : http://210.125.112.244/~bedding/main.php
고수님의 빠른 답변 부탁드립니다.
-- main.php --
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
define("_DOCTYPE_", "DESIGN");
$html_title = "2bit > main 페이지";
?>
<table width=600 cellpadding=0 cellspacing=0>
<colgroup width=''>
<colgroup width=5>
<colgroup width=170>
<tr>
<td valign=top>최신글
<?
// 최신글 시작
$sql = " select bo_table, bo_subject from $cfg[table_board] order by gr_id, bo_table ";
$result = sql_query($sql);
for ($i=0; $row=mysql_fetch_array($result); $i++) {
// echo "<table width=100%><tr><td height=25 bgcolor=#F0F0F0> <img src='image/icon_01.gif' align=absmiddle> <a href='./?doc=bbs/gnuboard.php&bo_table=$row[bo_table]'><b>$row[bo_subject]</b></a></td></tr></table>";
# 이 함수가 바로 최신글을 추출하는 역할을 합니다.
# 사용방법
# latest(스킨, 게시판아이디, 출력라인, 글자수);
# 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.
// latest('', $row[bo_table], 5, 70);
echo "<p>";
}
// 최신글 끝
?>
</td>
<br>
<table align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="394" rowspan="2">
<p align=center><? latest('', notice, 1, 33); ?></p>
</td>
<td width="20" rowspan="2">
<p align="center"></p>
</td>
<td width="186">
<p align="center"><a href="?doc=bbs/gnuboard.php&bo_table=Web_Surfing"><img src="web_surfing.gif" width="145" height="34" border="0"></a></p>
</td>
</tr>
<tr>
<td width="186">
<p align="center"><? latest('', bbs, 5, 26); ?></p>
</td>
</tr>
</table>
<br>
-------------------------------------------------------------------------
이렇게 했는데..막상 띄어보니깐...아무것도 안뜨네요...
파일 위치주소는 : http://210.125.112.244/~bedding/main.php
고수님의 빠른 답변 부탁드립니다.
댓글 전체
파일을 불러 오실때는
http://210.125.112.244/~bedding/?doc=main.php 이렇게 불러오셔야 합니다...
그누보드는 ?doc= 이부분을 꼭 넣으셔야 합니다.
그리고요...
<? latest('', bbs, 5, 26); ?> 에서 '' 부분에 'basic' 이렇게 해보세요...(단 bbs 라는 게시판이 생성이 되있어야 합니다.) basic 는 스킨폴더의 latest 폴더에 biasc 을 말합니다...
급하게 설명하느라 이해가 가실런지..^^;;
=======================
<?
// 최신글 시작
$sql = " select bo_table, bo_subject from $cfg[table_board] order by gr_id, bo_table ";
$result = sql_query($sql);
for ($i=0; $row=mysql_fetch_array($result); $i++) {
// echo "<table width=100%><tr><td height=25 bgcolor=#F0F0F0> <img src='image/icon_01.gif' align=absmiddle> <a href='./?doc=bbs/gnuboard.php&bo_table=$row[bo_table]'><b>$row[bo_subject]</b></a></td></tr></table>";
# 이 함수가 바로 최신글을 추출하는 역할을 합니다.
# 사용방법
# latest(스킨, 게시판아이디, 출력라인, 글자수);
# 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.
// latest('', $row[bo_table], 5, 70);
echo "<p>";
}
// 최신글 끝
?>
위부분은 지우셔도 됩니다... 위소스는 모든게시판의 최신글을 불러오는 소스입니다..
http://210.125.112.244/~bedding/?doc=main.php 이렇게 불러오셔야 합니다...
그누보드는 ?doc= 이부분을 꼭 넣으셔야 합니다.
그리고요...
<? latest('', bbs, 5, 26); ?> 에서 '' 부분에 'basic' 이렇게 해보세요...(단 bbs 라는 게시판이 생성이 되있어야 합니다.) basic 는 스킨폴더의 latest 폴더에 biasc 을 말합니다...
급하게 설명하느라 이해가 가실런지..^^;;
=======================
<?
// 최신글 시작
$sql = " select bo_table, bo_subject from $cfg[table_board] order by gr_id, bo_table ";
$result = sql_query($sql);
for ($i=0; $row=mysql_fetch_array($result); $i++) {
// echo "<table width=100%><tr><td height=25 bgcolor=#F0F0F0> <img src='image/icon_01.gif' align=absmiddle> <a href='./?doc=bbs/gnuboard.php&bo_table=$row[bo_table]'><b>$row[bo_subject]</b></a></td></tr></table>";
# 이 함수가 바로 최신글을 추출하는 역할을 합니다.
# 사용방법
# latest(스킨, 게시판아이디, 출력라인, 글자수);
# 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.
// latest('', $row[bo_table], 5, 70);
echo "<p>";
}
// 최신글 끝
?>
위부분은 지우셔도 됩니다... 위소스는 모든게시판의 최신글을 불러오는 소스입니다..