c

그누보드 최신글 오류 질문입니다 ㅠㅠ

메인페이지에 최신글을 불러오려고 하는데 자꾸 에러가 뜨네요ㅠㅠ

index.html 최상단에
<?
include_once("/_common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>

이렇게 넣고

불러올 부분에
<div class="bbs">
<h2 class="bbs_title">
<img alt="공지사항 Notice and Story" src="img/index/txt_notice.gif">
<a href="#" class="btn_more"><img alt="more+" src="img/btn/more.gif"></a>
</h2>
<?=latest("../gnuboard4/skin/latest/xe_latest_01", "notice", 5, 10)?>
</div>

이렇게 넣었거든요..

그랫더니 나오는 오류는
상단엔
Warning: include_once(/_common.php) [function.include-once]: failed to open stream: No such file or directory in ~~

그리고 추출할 부분엔
Fatal error: Call to undefined function latest() in ~~

이렇게 뜨네요..ㅜㅜ 뭐가 잘못된거죠..?
답변주시면 감사하겠습니다.
|

댓글 3개

<?=latest("../gnuboard4/skin/latest/xe_latest_01", "notice", 5, 10)?>

변경-> <?php echo latest("xe_latest_01", "notice", 5, 10)?>
root 폴더에 _common.php파일이 있는지 확인하세요
그리고
[code]
<?php
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
[/code]
이런식으로 사용하시는게 좋을 것 같습니다
1. bbs/_common.php를 root로 복사
2. root의 common.php 첫줄 수정
$g4_path='./gnuboard4';
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
12년 전 조회 1,569
12년 전 조회 1,004
12년 전 조회 977
12년 전 조회 960
12년 전 조회 3,002
12년 전 조회 1,660
12년 전 조회 2,488
12년 전 조회 2,633
12년 전 조회 2,585
12년 전 조회 1,660
12년 전 조회 1,262
12년 전 조회 1,199
12년 전 조회 2,388
12년 전 조회 1,558
12년 전 조회 1,107
12년 전 조회 1,643
12년 전 조회 1,567
12년 전 조회 1,874
12년 전 조회 1,255
12년 전 조회 1,001