최신글 관련 질문입니다.

그누보드 오늘 처음 써보는 초보입니다.

설치랑 게시판 생성 등은 마쳤는데 최신글이 계속 안되네요.

우선 main.php 맨 위와 아래에

<?
$g4_path = "bbs/g4"; - 그누보드 설치 폴더 경로
include_once("$g4_path/_common.php");
$g4[title] = "제목";
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/latest.lib.php");
?>

<?
include_once("$g4[path]/tail.sub.php");
?>

이렇게 넣었고 _common.php에는

<?
$g4_path = "bbs/g4";
include_once("$g4_path/common.php");
?>

이렇게 넣었습니다.

최신글이 나오기는 하는데요

문제는 게시판관리하는 페이지에 가면 오류가 납니다.

Warning: main(bbs/g4/common.php): failed to open stream: 그런 파일이나 디렉토리가 없음 in /www/주소/bbs/g4/_common.php on line 3

Warning: main(): Failed opening 'bbs/g4/common.php' for inclusion (include_path='.:/usr/local/bbs/lib/php') in /www/주소/bbs/g4/_common.php on line 3

Warning: main(/lib/latest.lib.php): failed to open stream: 그런 파일이나 디렉토리가 없음 in /www/주소/bbs/g4/index.php on line 3

Warning: main(): Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/usr/local/bbs/lib/php') in /www/주소/bbs/g4/index.php on line 3

아무래도 경로 지정이 잘못된 것 같은데 어딜 어떻게 수정해야 할지 모르겠네요.

메인.php와 _common.php파일에서 상대경로를 ../.. 로 수정하면 최신글이 안뜨구요.

어떻게 해결해야 할까요ㅜ.ㅜ
|

댓글 2개

<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");

$g4[title] = "";
include_once("./_head.php");


// latest(최신글 스킨명, 게시판 테이블명, 출력줄수, 제목글자수);
?>

<!-- 메인화면 최신글 시작 -->
<table width="" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="center" valign="top"><?=latest('최신글 스킨명','게시판 테이블명', 5, 30);?></td>
</tr>
</table>
<!-- 메인화면 최신글 끝 -->

<?
include_once("./_tail.php");
?>
안되면 main.php 경로(위치)를 애기해 주세요.
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
20년 전 조회 2,475
20년 전 조회 2,956
20년 전 조회 2,157
20년 전 조회 2,124
20년 전 조회 2,390
20년 전 조회 2,136
20년 전 조회 2,522
20년 전 조회 2,302
20년 전 조회 2,050
20년 전 조회 1,975
20년 전 조회 1,962
20년 전 조회 2,278
20년 전 조회 2,659
20년 전 조회 1,996
20년 전 조회 5,842
20년 전 조회 2,105
20년 전 조회 2,409
20년 전 조회 1,796
20년 전 조회 2,488
20년 전 조회 2,322
🐛 버그신고