달력설치후 Fatal error

http://sir.co.kr/bbs/tb.php/g4_skin/60877/c03b5d9f3b1e8363ba658e005e002bed

위에가서 소스를 다운받고 /skin/latest/아래에 업로드를 하고

<? echo latest_schedule("calendar","<?=$g4[path]?>/bbs/board.php?bo_table=02_4"); //SCHEDULE ?>

이것을

<!-- 메인 테이블 -->
<table border="0" cellpadding="0" cellspacing="0" width="950" align="center">
<tr>
<!-- 메인 좌측 테이블 시작 -->
<td width="190" valign="top">
<a href="<?=$g4[path]?>/bbs/board.php?bo_table=06_1"><img src="<?=$g4[path]?>/img/centergo.jpg" width="179" height="60"></a>
<a href="<?=$g4[path]?>/bbs/board.php?bo_table=03"><img src="<?=$g4[path]?>/img/down.jpg" width="179" height="60"></a>
<?=connect("basic"); // 접속자 ?>
<? echo latest_schedule("calendar","<?=$g4[path]?>/bbs/board.php?bo_table=02_4"); //SCHEDULE ?>
<?=poll("basic"); // 설문조사 ?>
<a href='#' onclick="javascript:window.open('<?=$g4['path']?>/service/banking/banking.php', 'banking','width=450,height=300,top=10,left=10,scrollbars=no')"><img src="<?=$g4[path]?>/img/tongbo.gif"></a>

</td>
<!-- 메인 좌측 테이블 끝 -->
<td width="10">
<p>&nbsp;</p>
</td>
<!-- 메인 중앙 테이블 시작-->
<td width="590" valign="top">


이렇게 넣었더니

Fatal error: Call to undefined function: latest_schedule() in /home/hosting_users/bgtotal/www/index.php on line 20

에러가 뜨면서 중앙화면이 아예 사라졌습니다.
머가 잘못된걸까요 ??

고수님들 부탁 드립니다.
|

댓글 3개

gnuboard/lib/latest.lib.php와
gnuboard/lib/latest_schedule.lib.php 같은 위치에 넣으시고

<?php
include g4['path'].'/lib/latest.lib.php'; 하듯이
include g4['path'].'/lib/latest_schedule.lib.php'; 하시고

<? echo latest_schedule("calendar","<?=$g4[path]?>/bbs/board.php?bo_table=02_4"); //SCHEDULE ?>
이걸 쓰시면 됩니다.
엑스엠엘님 답변 고맙습니다.
그런데 calender폴더를 열어보니 [img폴더],[latest.skin.php],[pop.skin.php],[pop.schedule.php]
밖에 없습니다.

gnuboard/lib/latest.lib.php와
gnuboard/lib/latest_schedule.lib.php 같은 위치에 넣으시고

<?php
include g4['path'].'/lib/latest.lib.php'; 하듯이
include g4['path'].'/lib/latest_schedule.lib.php'; 하시고

이부분의 말씀이 이해가 잘 안되는데...........
lib폴더에 latest_schedule.lib.php파일을 만들어 넣고
달력이 들어갈 페이지 상단에
include_once("$g4[path]/lib/latest_schedule.lib.php"); 을 추가해주시면되요.

latest_schedule.lib.php은 아래 내용으로
<?
if (!defined('_GNUBOARD_')) exit;
//======일정관리 메인추출=========
function latest_schedule($skin_dir='', $bo_table)
{
global $config;
global $g4;
global $year, $month;

// 스킨디렉토리값이 넘어왔다면
if ($skin_dir) {
$latest_skin_path = "./$g4[path]/skin/latest/$skin_dir";
}

$write_table = $g4[write_prefix] . $bo_table;

ob_start();
include "$latest_skin_path/latest.skin.php";
$content = ob_get_contents();
ob_end_clean();

return $content;
}

?>
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
17년 전 조회 678
17년 전 조회 1,865
17년 전 조회 781
17년 전 조회 924
17년 전 조회 773
17년 전 조회 1,518
17년 전 조회 810
17년 전 조회 835
17년 전 조회 2,252
17년 전 조회 1,511
17년 전 조회 958
17년 전 조회 719
17년 전 조회 785
17년 전 조회 719
17년 전 조회 735
17년 전 조회 795
17년 전 조회 1,512
17년 전 조회 756
17년 전 조회 711
17년 전 조회 806
🐛 버그신고