최신글 불러오기가 잘 안됩니다..도와주세요..ㅠㅠ

제로보드를 사용하다가 그누보드로 바꿀려고 하는데 쉽지 않네요!!
홈페이지 구성은..
www
├ gnuboard ┬ adm
│ ├ bbs
│ ├ cheditor
│ ├ convert
│ ├ data
│ ├ extend
│ ├ img
│ ├ js
│ ├ lib
│ ├ skin
├ gnuboard ┬ adm
│ ├ bbs
│ ├ cheditor
│ ├ convert
│ ├ data
│ ├ extend
│ ├ img
│ ├ js
│ ├ lib
│ ├ skin
│ └ _common.php
│ :
│ :
│
├ index.htm
├ index.htm
├ test.php
:
:
test.php 소스
<?
$g4_path = "gunboard"; // 그누보드 상대경로
include_once("$g4_path/_common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
$g4_path = "gunboard"; // 그누보드 상대경로
include_once("$g4_path/_common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<title>제목 없음</title>
<meta name="generator" content="Namo WebEditor v6.0">
</head>
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<title>제목 없음</title>
<meta name="generator" content="Namo WebEditor v6.0">
</head>
<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">
<?=latest("multi_tap", "board_1", 4, 100);?>
</body>
</html>
</html>
_common.php 소스
<?
$g4_path = "."; // common.php 의 상대 경로
include_once("$g4_path/common.php"); ?>
$g4_path = "."; // common.php 의 상대 경로
include_once("$g4_path/common.php"); ?>
|
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기
댓글 9개
_common.php 소스
<?
$g4_path = "gnuboard"; // common.php 의 상대 경로
include_once("$g4_path/common.php"); ?>
=============
test.php 소스
<?
include_once("_common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
Warning: latest(gnuboard/skin/latest/multi_tap/latest.skin.php): failed to open stream: No such file or directory in /home/hosting_users/mogoon/www/gnuboard/lib/latest.lib.php on line 27
Warning: latest(gnuboard/skin/latest/multi_tap/latest.skin.php): failed to open stream: No such file or directory in /home/hosting_users/mogoon/www/gnuboard/lib/latest.lib.php on line 27
Warning: latest(): Failed opening 'gnuboard/skin/latest/multi_tap/latest.skin.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/mogoon/www/gnuboard/lib/latest.lib.php on line 27
++ latest.lib.php 소스일부 ++
26 ob_start();
27 include "$latest_skin_path/latest.skin.php";
28 $content = ob_get_contents();
29 ob_end_clean();
<?
$g4_path = "gunboard"; // 그누보드 상대경로
==>
test.php 소스
<?
$g4_path = "./gunboard"; // 그누보드 상대경로
;
그리고
_common.php 소스
<?
$g4_path = "."; // common.php 의 상대 경로
include_once("$g4_path/common.php"); ?>
==>
_common.php 소스
<?
;$g4_path = "."; // common.php 의 상대 경로 ****주석처리
include_once("$g4_path/common.php"); ?>
로 주석처리 해 보심 어떨지
Warning: main(./common.php): failed to open stream: No such file or directory in /home/hosting_users/mogoon/www/_common.php on line 3
Warning: main(): Failed opening './common.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/mogoon/www/_common.php on line 3
Warning: main(/lib/latest.lib.php): failed to open stream: No such file or directory in /home/hosting_users/mogoon/www/test.php on line 4
Warning: main(): Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/mogoon/www/test.php on line 4
Fatal error: Call to undefined function: latest() in /home/hosting_users/mogoon/www/test.php on line 16
<?
$g4_path = ".";
include_once("$g4_path/_common.php");
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
<?=latest("multi_tap", "board_1", 4, 100);?>
<?
include_once("$g4[path]/tail.sub.php");
?>
_common.php 소스
<?
$g4_path = "gunboard";
include_once("$g4_path/common.php");
?>
여기서 common.php를 불러오면 test.php가 잇는 폴더에서 common을 찾게 돼지요.. 아마 위엣분처럼 하시면 잘 돼지 않을까 싶습니다^^;
multi_tap 스킨을 설치하셔나요?
다음에 검색하시는 분들에게 도움이 됩니다