::: 달력스킨을 수정한 다음부터 내용이 보이질 않습니다 ::: 정보
::: 달력스킨을 수정한 다음부터 내용이 보이질 않습니다 :::본문
트팩백주소처럼 달력스킨을 사용하고 수정하는 과정에서
현재페이지처럼 메인은 이상무...
http://www.wando.info
그런데 게시물을 클릭하면 게시물이 사라져 버리는 현상입니다.
http://wando.info/gnuboard4/bbs/board.php?bo_table=notice&wr_id=12 처럼
결과물이 보이질 않습니다.
해결책을 가르쳐 주세요..
현재페이지처럼 메인은 이상무...
http://www.wando.info
그런데 게시물을 클릭하면 게시물이 사라져 버리는 현상입니다.
http://wando.info/gnuboard4/bbs/board.php?bo_table=notice&wr_id=12 처럼
결과물이 보이질 않습니다.
해결책을 가르쳐 주세요..
댓글 전체
Fatal error: Call to undefined function: latest_schedule() in /free/home/wando/html/gnuboard4/head.php on line 203
head.php 203라인을 살펴보시길... head.php 파일에서 잘못된 소스가 있어서 그런거겠지요...
head.php 203라인을 살펴보시길... head.php 파일에서 잘못된 소스가 있어서 그런거겠지요...
감사합니다.
헤드를 수정한 것이 아니라 index.php를 수정하라는 곳이였는데...
감사합니다.
헤드를 수정한 것이 아니라 index.php를 수정하라는 곳이였는데...
감사합니다.
달력스킨을 제거시에는 정상적으로 작동이 됩니다.
head.php에다
<? echo latest_schedule("calendar","date"); ?> 처럼 삽입을 하였는데
달력은 출력되면서 게시판의 보드들이 보이질 않습니다.
삽입하는 소스를 부탁드립니다.
참고로 짚신님의
http://sir.co.kr/bbs/tb.php/g4_skin/1519 위치에서 힌트로
작성하였는데
해결책을 부탁드립니다.
head.php에다
<? echo latest_schedule("calendar","date"); ?> 처럼 삽입을 하였는데
달력은 출력되면서 게시판의 보드들이 보이질 않습니다.
삽입하는 소스를 부탁드립니다.
참고로 짚신님의
http://sir.co.kr/bbs/tb.php/g4_skin/1519 위치에서 힌트로
작성하였는데
해결책을 부탁드립니다.
html 로 작성된 문서네요? 마지막은 게시판이구,,,
1. lib/latest.lib.php 에 latest_schedule() 함수 있는가 확인, 없으면 추가.
2. head.php 에 include_once 로 latest.lib.php 추가
3. 게시판은 관리모드>게시판 관리>happy >수정
상단,하단파일 _head.php _tail.php 다시한번 확인
4. html 문서는 php 로 이름바꾸기( company.html > company.php)
파일수정 : index.php 와 똑같은 구조로 하고 내용부분(기존 body)만 ,,,
예) company.php
<? .....................
.
.
?>
내용(html 의 body안의 내용만)
<?........ ?>
5. gnuboard4/bbs 에 있는 _head.php _tail.php _common.php 를
gnuboard4/host 에 복사
더 자세한 설명 필요하면 댓글 다세요.
1. lib/latest.lib.php 에 latest_schedule() 함수 있는가 확인, 없으면 추가.
2. head.php 에 include_once 로 latest.lib.php 추가
3. 게시판은 관리모드>게시판 관리>happy >수정
상단,하단파일 _head.php _tail.php 다시한번 확인
4. html 문서는 php 로 이름바꾸기( company.html > company.php)
파일수정 : index.php 와 똑같은 구조로 하고 내용부분(기존 body)만 ,,,
예) company.php
<? .....................
.
.
?>
내용(html 의 body안의 내용만)
<?........ ?>
5. gnuboard4/bbs 에 있는 _head.php _tail.php _common.php 를
gnuboard4/host 에 복사
더 자세한 설명 필요하면 댓글 다세요.
상기 내용은 모두 포함되어 있습니다.
head.php에서
<? echo latest_schedule("calendar","date"); ?> 와 같이 삽입하였더니 메인화면에는 달력이 출력됩니다. 그런데 메인화면의 게시판의 글들을 클릭하면 모든(게시판의 글들)글들이 모이질 않고 사라집니다.
<? echo latest_schedule("calendar","date"); ?> 헤드에서 빼면 정상적으로 되는데 달력은 보이질 않습니다.
메인에 달력스킨을 삽입하는 방법이 달라서 그런지 아시면 답변을 부탁드립니다.
행복한 시간되세요.
head.php에서
<? echo latest_schedule("calendar","date"); ?> 와 같이 삽입하였더니 메인화면에는 달력이 출력됩니다. 그런데 메인화면의 게시판의 글들을 클릭하면 모든(게시판의 글들)글들이 모이질 않고 사라집니다.
<? echo latest_schedule("calendar","date"); ?> 헤드에서 빼면 정상적으로 되는데 달력은 보이질 않습니다.
메인에 달력스킨을 삽입하는 방법이 달라서 그런지 아시면 답변을 부탁드립니다.
행복한 시간되세요.
1,4,5 번 다시확인하세요. 특히 4,5 번은 꼭 해주세요
lib/latest.lib.php 소스와 head.php 소스좀 올려주시구요.
lib/latest.lib.php 소스와 head.php 소스좀 올려주시구요.
최근게시물을 눌러도 undifined function 이네요. 이는 아무리 봐도
function latest_schedule() 요것이 정의된 곳이 애매모호 합니다.
function latest_schedule() 요것이 정의된 곳이 애매모호 합니다.
::: head.php :::
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");
//print_r2(get_defined_constants());
// 사용자 화면 상단과 좌측을 담당하는 페이지입니다.
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.
$table_width = 1004;
?>
<!-- 상단 배경 시작 -->
<style type="text/css">
#middiv {
width:<?=$table_width?>px;
position:relative;
margin:0px auto;
vertical-align:top;
float:left;
}
#middiv #mleft { width:220px; float:left; padding:0 0 0 43; }
#middiv #mright { width:683px; float:left; padding:0 0 0 15; }
</style>
<table width="<?=$table_width?>" cellspacing="0" cellpadding="0">
<tr>
<td background="<?=$g4[path]?>/img/top_img_bg.gif">
<table width="100%" height="52" cellspacing="0" cellpadding="0">
<tr>
<td><embed src="<?=$g4[path]?>/flash/jeonbok.swf" width="100%" height="120" autostart="true"></td>
</tr>
</table></td>
</tr>
</table>
<!-- 상단 배경 끝 -->
<!-- 상단 로고 및 버튼 시작 -->
<table width="<?=$table_width?>" cellspacing="0" cellpadding="0">
<tr>
<td width="43" height="57"></td>
<!-- 로고 -->
<td width="173"><a href="<?=$g4[path]?>/"><img src="<?=$g4[path]?>/img/wandoinfo.gif" width="173" height="52" border="0"></a></td>
<td>
<table width=100% border=0 cellpadding=0 cellspacing=0>
<tr>
<td></td>
</tr>
</table>
</td>
<td width="390" align="right">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<!-- 처음으로 버튼 -->
<td width="78"><a href="<?=$g4[path]?>/"><img src="<?=$g4[path]?>/img/top_m01.gif" width="78" height="31" border="0"></a></td>
<? if (!$member[mb_id]) { ?>
<!-- 로그인 이전 -->
<td width="78"><a href="<?=$g4[bbs_path]?>/login.php?url=<?=$urlencode?>"><img src="<?=$g4[path]?>/img/top_m02.gif" width="78" height="31" border="0"></a></td>
<td width="78"><a href="<?=$g4[bbs_path]?>/register.php"><img src="<?=$g4[path]?>/img/top_m03.gif" width="78" height="31" border="0"></a></td>
<? } else { ?>
<!-- 로그인 이후 -->
<td width="78"><a href="<?=$g4[bbs_path]?>/logout.php"><img src="<?=$g4[path]?>/img/top_m04.gif" width="78" height="31" border="0"></a></td>
<td width="78"><a href="<?=$g4[bbs_path]?>/member_confirm.php?url=register_form.php"><img src="<?=$g4[path]?>/img/top_m05.gif" width="78" height="31" border="0"></a></td>
<? } ?>
<!-- 최근게시물 버튼 -->
<td width="78"><a href="<?=$g4[bbs_path]?>/new.php"><img src="<?=$g4[path]?>/img/top_m06.gif" width="78" height="31" border="0"></a></td>
</tr>
</table></td>
<td width="35"></td>
</tr>
</table>
<!-- 상단 로고 및 버튼 끝 -->
<!-- 상단 메뉴 시작 -->
<table width="<?=$table_width?>" cellspacing="0" cellpadding="0">
<tr>
<td width="200" height="32"></td>
<td width="500" align="left">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<!-- 완도여행 -->
<td width="100"><a href="<?=$g4[path]?>/host/goo.html"><img src="<?=$g4[path]?>/img/w1.gif" width="100" height="32" border="0"></a></td>
<!-- 완도특산물 -->
<td width="100"><a href="<?=$g4[path]?>/host/company.html"><img src="<?=$g4[path]?>/img/w2.gif" width="100" height="32" border="0"></a></td>
<!-- 섬이야기 -->
<td width="100"><a href="<?=$g4[path]?>/host/insa.html"><img src="<?=$g4[path]?>/img/w3.gif" width="100" height="32" border="0"></a></td>
<!-- 완도 비경 -->
<td width="100"><a href="<?=$g4[path]?>/host/jenbok.html"><img src="<?=$g4[path]?>/img/w4.gif" width="100" height="32" border="0"></a></td>
<!-- 커뮤니티 -->
<td width="100"><a href="<?=$g4[bbs_path]?>/board.php?bo_table=happy">
<img src="<?=$g4[path]?>/img/w5.gif" width="100" height="32" border="0"></a></td>
</tr>
</table></td>
</tr>
</table>
<!-- 상단 메뉴 시작 끝 -->
<!-- 검색 시작 -->
<table width="<?=$table_width?>" cellspacing="0" cellpadding="0">
<tr>
<td width="43" height="11"></td>
<td width="220"></td>
<td width=""></td>
<td width="234"><img src="<?=$g4[path]?>/img/search_top.gif" width="234" height="11"></td>
<td width="35"></td>
</tr>
<tr>
<td height="33"><img src="<?=$g4[path]?>/img/bar_01.gif" width="43" height="33"></td>
<td><img src="<?=$g4[path]?>/img/bar_02.gif" width="220" height="33"></td>
<td background="<?=$g4[path]?>/img/bar_03.gif" width="472" height="33"><table width=100% cellpadding=0 cellspacing=0><tr><td width=25> </td><td><?//=popular();?></td></tr></table></td>
<td>
<table width="100%" height="33" cellspacing="0" cellpadding="0">
<form name="fsearchbox" method="get" action="javascript:fsearchbox_submit(document.fsearchbox);">
<!-- <input type="hidden" name="sfl" value="concat(wr_subject,wr_content)"> -->
<input type="hidden" name="sfl" value="wr_subject||wr_content">
<input type="hidden" name="sop" value="and">
<tr>
<td width="25" height="25"><img src="<?=$g4[path]?>/img/search_01.gif" width="25" height="25"></td>
<td width="136" valign="middle" bgcolor="#F4F4F4"><INPUT name="stx" maxlengt=20 style="BORDER : 0px solid; width: 125px; HEIGHT: 20px; BACKGROUND-COLOR: #F4F4F4" maxlength="20"></td>
<td width="12"><img src="<?=$g4[path]?>/img/search_02.gif" width="12" height="25"></td>
<td width="48"><input type="image" src="<?=$g4[path]?>/img/search_button.gif" width="48" height="25" border="0"></td>
<td width="13"><img src="<?=$g4[path]?>/img/search_03.gif" width="13" height="25"></td>
</tr>
<tr>
<td width="234" height="8" colspan="5"><img src="<?=$g4[path]?>/img/search_down.gif" width="234" height="8"></td>
</tr>
</form>
</table></td>
<td></td>
</tr>
</table>
<script language="JavaScript">
function fsearchbox_submit(f)
{
if (f.stx.value == '')
{
alert("검색어를 입력하세요.");
f.stx.select();
f.stx.focus();
return;
}
/*
// 검색에 많은 부하가 걸리는 경우 이 주석을 제거하세요.
var cnt = 0;
for (var i=0; i<f.stx.value.length; i++)
{
if (f.stx.value.charAt(i) == ' ')
cnt++;
}
if (cnt > 1)
{
alert("빠른 검색을 위하여 검색어에 공백은 한개만 입력할 수 있습니다.");
f.stx.select();
f.stx.focus();
return;
}
*/
f.action = "<?=$g4[bbs_path]?>/search.php";
f.submit();
}
</script>
<!-- 검색 끝 -->
<table width='<?=$table_width?>' cellpadding=0 cellspacing=0>
<tr>
<td width=43></td>
<!-- 왼쪽 메뉴 -->
<td width=220 valign=top>
<?=outlogin("basic"); // 외부 로그인 ?>
<p><?=poll("basic"); // 설문조사 ?>
<table width=179 cellpadding=0 cellspacing=0>
<tr><td height=32><a href="<?=$g4[path]?>/host/goo.html"><img src="<?=$g4[path]?>/img/w1.gif" border=0 width=100 height=32></a></td></tr>
<tr><td><a href="<?=$g4[path]?>/host/company.html"><img src="<?=$g4[path]?>/img/w2.gif" border=0 width=100 height=32></a></td></tr>
<tr><td><a href="<?=$g4[path]?>/host/insa.html"><img src="<?=$g4[path]?>/img/w3.gif" border=0 width=100 height=32></a></td></tr>
<tr><td><a href="<?=$g4[path]?>/host/jenbok.html"><img src="<?=$g4[path]?>/img/w4.gif" border=0 width=100 height=32></a></td></tr>
<tr><td><a href="<?=$g4[bbs_path]?>/board.php?bo_table=happy"><img src="<?=$g4[path]?>/img/w5.gif" border=0 width=100 height=32></a></td></tr>
</table>
<!-- 월간 행사표 삽입 -->
<? echo latest_schedule("calendar","date"); ?>
<!-- 월간 행사표 삽입 끈 -->
<p><?=visit("visit_hany"); // 방문자수 ?>
<p><?=connect(); // 현재 접속자수 ?>
</td>
<!-- 중간 -->
<td width=683 valign=top><table width="100%"><tr><td>
<!-- 여기까지 끝.--!>
::::
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");
//print_r2(get_defined_constants());
// 사용자 화면 상단과 좌측을 담당하는 페이지입니다.
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.
$table_width = 1004;
?>
<!-- 상단 배경 시작 -->
<style type="text/css">
#middiv {
width:<?=$table_width?>px;
position:relative;
margin:0px auto;
vertical-align:top;
float:left;
}
#middiv #mleft { width:220px; float:left; padding:0 0 0 43; }
#middiv #mright { width:683px; float:left; padding:0 0 0 15; }
</style>
<table width="<?=$table_width?>" cellspacing="0" cellpadding="0">
<tr>
<td background="<?=$g4[path]?>/img/top_img_bg.gif">
<table width="100%" height="52" cellspacing="0" cellpadding="0">
<tr>
<td><embed src="<?=$g4[path]?>/flash/jeonbok.swf" width="100%" height="120" autostart="true"></td>
</tr>
</table></td>
</tr>
</table>
<!-- 상단 배경 끝 -->
<!-- 상단 로고 및 버튼 시작 -->
<table width="<?=$table_width?>" cellspacing="0" cellpadding="0">
<tr>
<td width="43" height="57"></td>
<!-- 로고 -->
<td width="173"><a href="<?=$g4[path]?>/"><img src="<?=$g4[path]?>/img/wandoinfo.gif" width="173" height="52" border="0"></a></td>
<td>
<table width=100% border=0 cellpadding=0 cellspacing=0>
<tr>
<td></td>
</tr>
</table>
</td>
<td width="390" align="right">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<!-- 처음으로 버튼 -->
<td width="78"><a href="<?=$g4[path]?>/"><img src="<?=$g4[path]?>/img/top_m01.gif" width="78" height="31" border="0"></a></td>
<? if (!$member[mb_id]) { ?>
<!-- 로그인 이전 -->
<td width="78"><a href="<?=$g4[bbs_path]?>/login.php?url=<?=$urlencode?>"><img src="<?=$g4[path]?>/img/top_m02.gif" width="78" height="31" border="0"></a></td>
<td width="78"><a href="<?=$g4[bbs_path]?>/register.php"><img src="<?=$g4[path]?>/img/top_m03.gif" width="78" height="31" border="0"></a></td>
<? } else { ?>
<!-- 로그인 이후 -->
<td width="78"><a href="<?=$g4[bbs_path]?>/logout.php"><img src="<?=$g4[path]?>/img/top_m04.gif" width="78" height="31" border="0"></a></td>
<td width="78"><a href="<?=$g4[bbs_path]?>/member_confirm.php?url=register_form.php"><img src="<?=$g4[path]?>/img/top_m05.gif" width="78" height="31" border="0"></a></td>
<? } ?>
<!-- 최근게시물 버튼 -->
<td width="78"><a href="<?=$g4[bbs_path]?>/new.php"><img src="<?=$g4[path]?>/img/top_m06.gif" width="78" height="31" border="0"></a></td>
</tr>
</table></td>
<td width="35"></td>
</tr>
</table>
<!-- 상단 로고 및 버튼 끝 -->
<!-- 상단 메뉴 시작 -->
<table width="<?=$table_width?>" cellspacing="0" cellpadding="0">
<tr>
<td width="200" height="32"></td>
<td width="500" align="left">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<!-- 완도여행 -->
<td width="100"><a href="<?=$g4[path]?>/host/goo.html"><img src="<?=$g4[path]?>/img/w1.gif" width="100" height="32" border="0"></a></td>
<!-- 완도특산물 -->
<td width="100"><a href="<?=$g4[path]?>/host/company.html"><img src="<?=$g4[path]?>/img/w2.gif" width="100" height="32" border="0"></a></td>
<!-- 섬이야기 -->
<td width="100"><a href="<?=$g4[path]?>/host/insa.html"><img src="<?=$g4[path]?>/img/w3.gif" width="100" height="32" border="0"></a></td>
<!-- 완도 비경 -->
<td width="100"><a href="<?=$g4[path]?>/host/jenbok.html"><img src="<?=$g4[path]?>/img/w4.gif" width="100" height="32" border="0"></a></td>
<!-- 커뮤니티 -->
<td width="100"><a href="<?=$g4[bbs_path]?>/board.php?bo_table=happy">
<img src="<?=$g4[path]?>/img/w5.gif" width="100" height="32" border="0"></a></td>
</tr>
</table></td>
</tr>
</table>
<!-- 상단 메뉴 시작 끝 -->
<!-- 검색 시작 -->
<table width="<?=$table_width?>" cellspacing="0" cellpadding="0">
<tr>
<td width="43" height="11"></td>
<td width="220"></td>
<td width=""></td>
<td width="234"><img src="<?=$g4[path]?>/img/search_top.gif" width="234" height="11"></td>
<td width="35"></td>
</tr>
<tr>
<td height="33"><img src="<?=$g4[path]?>/img/bar_01.gif" width="43" height="33"></td>
<td><img src="<?=$g4[path]?>/img/bar_02.gif" width="220" height="33"></td>
<td background="<?=$g4[path]?>/img/bar_03.gif" width="472" height="33"><table width=100% cellpadding=0 cellspacing=0><tr><td width=25> </td><td><?//=popular();?></td></tr></table></td>
<td>
<table width="100%" height="33" cellspacing="0" cellpadding="0">
<form name="fsearchbox" method="get" action="javascript:fsearchbox_submit(document.fsearchbox);">
<!-- <input type="hidden" name="sfl" value="concat(wr_subject,wr_content)"> -->
<input type="hidden" name="sfl" value="wr_subject||wr_content">
<input type="hidden" name="sop" value="and">
<tr>
<td width="25" height="25"><img src="<?=$g4[path]?>/img/search_01.gif" width="25" height="25"></td>
<td width="136" valign="middle" bgcolor="#F4F4F4"><INPUT name="stx" maxlengt=20 style="BORDER : 0px solid; width: 125px; HEIGHT: 20px; BACKGROUND-COLOR: #F4F4F4" maxlength="20"></td>
<td width="12"><img src="<?=$g4[path]?>/img/search_02.gif" width="12" height="25"></td>
<td width="48"><input type="image" src="<?=$g4[path]?>/img/search_button.gif" width="48" height="25" border="0"></td>
<td width="13"><img src="<?=$g4[path]?>/img/search_03.gif" width="13" height="25"></td>
</tr>
<tr>
<td width="234" height="8" colspan="5"><img src="<?=$g4[path]?>/img/search_down.gif" width="234" height="8"></td>
</tr>
</form>
</table></td>
<td></td>
</tr>
</table>
<script language="JavaScript">
function fsearchbox_submit(f)
{
if (f.stx.value == '')
{
alert("검색어를 입력하세요.");
f.stx.select();
f.stx.focus();
return;
}
/*
// 검색에 많은 부하가 걸리는 경우 이 주석을 제거하세요.
var cnt = 0;
for (var i=0; i<f.stx.value.length; i++)
{
if (f.stx.value.charAt(i) == ' ')
cnt++;
}
if (cnt > 1)
{
alert("빠른 검색을 위하여 검색어에 공백은 한개만 입력할 수 있습니다.");
f.stx.select();
f.stx.focus();
return;
}
*/
f.action = "<?=$g4[bbs_path]?>/search.php";
f.submit();
}
</script>
<!-- 검색 끝 -->
<table width='<?=$table_width?>' cellpadding=0 cellspacing=0>
<tr>
<td width=43></td>
<!-- 왼쪽 메뉴 -->
<td width=220 valign=top>
<?=outlogin("basic"); // 외부 로그인 ?>
<p><?=poll("basic"); // 설문조사 ?>
<table width=179 cellpadding=0 cellspacing=0>
<tr><td height=32><a href="<?=$g4[path]?>/host/goo.html"><img src="<?=$g4[path]?>/img/w1.gif" border=0 width=100 height=32></a></td></tr>
<tr><td><a href="<?=$g4[path]?>/host/company.html"><img src="<?=$g4[path]?>/img/w2.gif" border=0 width=100 height=32></a></td></tr>
<tr><td><a href="<?=$g4[path]?>/host/insa.html"><img src="<?=$g4[path]?>/img/w3.gif" border=0 width=100 height=32></a></td></tr>
<tr><td><a href="<?=$g4[path]?>/host/jenbok.html"><img src="<?=$g4[path]?>/img/w4.gif" border=0 width=100 height=32></a></td></tr>
<tr><td><a href="<?=$g4[bbs_path]?>/board.php?bo_table=happy"><img src="<?=$g4[path]?>/img/w5.gif" border=0 width=100 height=32></a></td></tr>
</table>
<!-- 월간 행사표 삽입 -->
<? echo latest_schedule("calendar","date"); ?>
<!-- 월간 행사표 삽입 끈 -->
<p><?=visit("visit_hany"); // 방문자수 ?>
<p><?=connect(); // 현재 접속자수 ?>
</td>
<!-- 중간 -->
<td width=683 valign=top><table width="100%"><tr><td>
<!-- 여기까지 끝.--!>
::::
::: latest.lib.php :::
<?
if (!defined('_GNUBOARD_')) exit;
// 최신글 추출
function latest($skin_dir="", $bo_table, $rows=10, $subject_len=40)
{
global $config;
global $g4;
if ($skin_dir)
$latest_skin_path = "$g4[path]/skin/latest/$skin_dir";
else
$latest_skin_path = "$g4[path]/skin/latest/$config[cf_latest_skin]";
$list = array();
$sql = " select * from {$g4[board_table]} where bo_table = '$bo_table'";
$board = sql_fetch($sql);
$tmp_write_table = $g4[write_prefix] . $bo_table; // 게시판 테이블 전체이름
$sql = " select * from $tmp_write_table where wr_is_comment = 0 order by wr_id desc limit 0, $rows ";
//explain($sql);
$result = sql_query($sql);
for ($i=0; $row = sql_fetch_array($result); $i++)
$list[$i] = get_list($row, $board, $latest_skin_path, $subject_len);
ob_start();
include "$latest_skin_path/latest.skin.php";
$content = ob_get_contents();
ob_end_clean();
return $content;
}
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;
}
?>
::: 확인 부탁드립니다 :::
<?
if (!defined('_GNUBOARD_')) exit;
// 최신글 추출
function latest($skin_dir="", $bo_table, $rows=10, $subject_len=40)
{
global $config;
global $g4;
if ($skin_dir)
$latest_skin_path = "$g4[path]/skin/latest/$skin_dir";
else
$latest_skin_path = "$g4[path]/skin/latest/$config[cf_latest_skin]";
$list = array();
$sql = " select * from {$g4[board_table]} where bo_table = '$bo_table'";
$board = sql_fetch($sql);
$tmp_write_table = $g4[write_prefix] . $bo_table; // 게시판 테이블 전체이름
$sql = " select * from $tmp_write_table where wr_is_comment = 0 order by wr_id desc limit 0, $rows ";
//explain($sql);
$result = sql_query($sql);
for ($i=0; $row = sql_fetch_array($result); $i++)
$list[$i] = get_list($row, $board, $latest_skin_path, $subject_len);
ob_start();
include "$latest_skin_path/latest.skin.php";
$content = ob_get_contents();
ob_end_clean();
return $content;
}
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;
}
?>
::: 확인 부탁드립니다 :::
에고 예상대로,,,
head.php 상단부분요
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");
include_once("$g4[path]/lib/latest.lib.php"); // 최신글 처리를 위해서 반드시 추가
//print_r2(get_defined_constants());
// 사용자 화면 상단과 좌측을 담당하는 페이지입니다.
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.
$table_width = 850;
?>
제가 제시한 5가지중 2번에 해당하네요^^
head.php 상단부분요
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");
include_once("$g4[path]/lib/latest.lib.php"); // 최신글 처리를 위해서 반드시 추가
//print_r2(get_defined_constants());
// 사용자 화면 상단과 좌측을 담당하는 페이지입니다.
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.
$table_width = 850;
?>
제가 제시한 5가지중 2번에 해당하네요^^
윽...
정말 감사합니다.
보이지 않는 까막눈이 되었네요.
너무 감사드립니다.
속이 다 후련합니다.
그누보드의 답변자님들은 정말 대단해요.
유료로 하여도 되겠습니다.
너무 고맙습니다.
정말 감사합니다.
보이지 않는 까막눈이 되었네요.
너무 감사드립니다.
속이 다 후련합니다.
그누보드의 답변자님들은 정말 대단해요.
유료로 하여도 되겠습니다.
너무 고맙습니다.
죄송합니다. 모든것이 해결은 되었는데
또 하나가 영....
소달력에 월의 화살표를 클릭하면 다음달로 넘어가질 않습니다.
웹호스팅으 에러 메세지만 납니다.
게시판에 보드생성한 내용에선 다음달로 넘어가는데....
http://wando.info/gnuboard4/bbs/board.php?bo_table=date 에선 달이 넘어 갑니다.
그런데 www.wando.info 의 좌특 소달력의 월은 넘어가지 않은 이유는 ???
http://wando.info/gnuboard4/bbs/board.php?bo_table=date 여기서 달을 넘기면 좌측 소달력도 넘어가는데
소달력을 넘기면 안넘어 갑니다.
수고스럽지만 한번 더 부탁드립니다.
또 하나가 영....
소달력에 월의 화살표를 클릭하면 다음달로 넘어가질 않습니다.
웹호스팅으 에러 메세지만 납니다.
게시판에 보드생성한 내용에선 다음달로 넘어가는데....
http://wando.info/gnuboard4/bbs/board.php?bo_table=date 에선 달이 넘어 갑니다.
그런데 www.wando.info 의 좌특 소달력의 월은 넘어가지 않은 이유는 ???
http://wando.info/gnuboard4/bbs/board.php?bo_table=date 여기서 달을 넘기면 좌측 소달력도 넘어가는데
소달력을 넘기면 안넘어 갑니다.
수고스럽지만 한번 더 부탁드립니다.
달력스케줄 설치 방법을 다시한번 꼼꼼히 검토해 보세요. 상황으로 봐서는 main.php 가 없거나 다른 경로에
위치해 있는듯합니다.
main.php 가 있다면,, 링크경로를 잘못 설정한 것입니다.
위치해 있는듯합니다.
main.php 가 있다면,, 링크경로를 잘못 설정한 것입니다.
예, main.php가 파일을 찾아봐도 없습니다.
bless님의 스킨을 받았는데...
어디에 있어야 하며 현재 없는데(main.php) 어떻게 해야 하는지 알고 싶습니다.
===생략===
<TABLE width=<?=$cellw*7?> cellSpacing=0 cellPadding=0 border=0 align="center">
<TR>
<TD width=100% colspan=7 class=title>
<a href="<?="./main.php?bo_table=$bo_table&"?><?if ($month == 1) { $year_pre=$year-1; $month_pre=12; } else {$year_pre=$year; $month_pre=$month-1;} echo ("year=$year_pre&month=$month_pre");?>" target="_self">
<img src='<?=$latest_skin_path?>/img/first.gif' border=0 align=absmiddle width=17 height=13>
</a>
<?=$year?> 년 <?=$month?> 월
<a href="<?="./main.php?bo_table=$bo_table&"?><?if ($month == 12) { $year_pre=$year+1; $month_pre=1; } else {$year_pre=$year; $month_pre=$month+1;} echo ("&year=$year_pre&month=$month_pre");?>" target="_self">
<img src='<?=$latest_skin_path?>/img/end.gif' border=0 align=absmiddle width=17 height=13>
</a>
</TD>
</TR>
=== 이하생략 ===
latest.skin.php 가운데 부분입니다.
해결책을 부탁드립니다...
bless님의 스킨을 받았는데...
어디에 있어야 하며 현재 없는데(main.php) 어떻게 해야 하는지 알고 싶습니다.
===생략===
<TABLE width=<?=$cellw*7?> cellSpacing=0 cellPadding=0 border=0 align="center">
<TR>
<TD width=100% colspan=7 class=title>
<a href="<?="./main.php?bo_table=$bo_table&"?><?if ($month == 1) { $year_pre=$year-1; $month_pre=12; } else {$year_pre=$year; $month_pre=$month-1;} echo ("year=$year_pre&month=$month_pre");?>" target="_self">
<img src='<?=$latest_skin_path?>/img/first.gif' border=0 align=absmiddle width=17 height=13>
</a>
<?=$year?> 년 <?=$month?> 월
<a href="<?="./main.php?bo_table=$bo_table&"?><?if ($month == 12) { $year_pre=$year+1; $month_pre=1; } else {$year_pre=$year; $month_pre=$month+1;} echo ("&year=$year_pre&month=$month_pre");?>" target="_self">
<img src='<?=$latest_skin_path?>/img/end.gif' border=0 align=absmiddle width=17 height=13>
</a>
</TD>
</TR>
=== 이하생략 ===
latest.skin.php 가운데 부분입니다.
해결책을 부탁드립니다...
다른 calendar 스킨에서 찾아봤습니다. skin/latest/calendar/latest.skin.php
<tr>
<td><a href="<?="$_SERVER[PHP_SELF]?&"?><?if ($month == 1) { $year_pre=$year-1; $month_pre=12; } else {$year_pre=$year-1; $month_pre=$month;} echo ("year=$year_pre&month=$month_pre");?>" target="_self" onfocus="this.blur()"><img src="<?=$latest_skin_path?>/img/y_prev.gif" title="<?=$year_pre?>년" border="0"></a></td>
<td><a href="<?="$_SERVER[PHP_SELF]?&"?><?if ($month == 1) { $year_pre=$year-1; $month_pre=12; } else {$year_pre=$year; $month_pre=$month-1;} echo ("year=$year_pre&month=$month_pre");?>" target="_self" onfocus="this.blur()"><img src="<?=$latest_skin_path?>/img/first.gif" title="<?=$month_pre?>월" border="0"></a></td>
<td><a href="<?="$_SERVER[PHP_SELF]"?>" onfocus="this.blur()"><img src="<?=$latest_skin_path?>/img/this.gif" title="오늘로" border="0"></a></td>
<td><a href="<?="$_SERVER[PHP_SELF]?&"?><?if ($month == 12) { $year_pre=$year+1; $month_pre=1; } else {$year_pre=$year; $month_pre=$month+1;} echo ("&year=$year_pre&month=$month_pre");?>" target="_self" onfocus="this.blur()"><img src="<?=$latest_skin_path?>/img/end.gif" title="<?=$month_pre?>월" border="0"></a></td>
<td><a href="<?="$_SERVER[PHP_SELF]?&"?><?if ($month == 12) { $year_pre=$year+1; $month_pre=1; } else {$year_pre=$year+1; $month_pre=$month;} echo ("&year=$year_pre&month=$month_pre");?>" target="_self" onfocus="this.blur()"><img src="<?=$latest_skin_path?>/img/y_next.gif" title="<?=$year_pre?>년" border="0"></a></td>
<!-- <td width="64"><img src="<?=$latest_skin_path?>/img/month2_<?=$month?>.gif" width="64" height="23"></td> -->
</tr>
<tr>
<td><a href="<?="$_SERVER[PHP_SELF]?&"?><?if ($month == 1) { $year_pre=$year-1; $month_pre=12; } else {$year_pre=$year-1; $month_pre=$month;} echo ("year=$year_pre&month=$month_pre");?>" target="_self" onfocus="this.blur()"><img src="<?=$latest_skin_path?>/img/y_prev.gif" title="<?=$year_pre?>년" border="0"></a></td>
<td><a href="<?="$_SERVER[PHP_SELF]?&"?><?if ($month == 1) { $year_pre=$year-1; $month_pre=12; } else {$year_pre=$year; $month_pre=$month-1;} echo ("year=$year_pre&month=$month_pre");?>" target="_self" onfocus="this.blur()"><img src="<?=$latest_skin_path?>/img/first.gif" title="<?=$month_pre?>월" border="0"></a></td>
<td><a href="<?="$_SERVER[PHP_SELF]"?>" onfocus="this.blur()"><img src="<?=$latest_skin_path?>/img/this.gif" title="오늘로" border="0"></a></td>
<td><a href="<?="$_SERVER[PHP_SELF]?&"?><?if ($month == 12) { $year_pre=$year+1; $month_pre=1; } else {$year_pre=$year; $month_pre=$month+1;} echo ("&year=$year_pre&month=$month_pre");?>" target="_self" onfocus="this.blur()"><img src="<?=$latest_skin_path?>/img/end.gif" title="<?=$month_pre?>월" border="0"></a></td>
<td><a href="<?="$_SERVER[PHP_SELF]?&"?><?if ($month == 12) { $year_pre=$year+1; $month_pre=1; } else {$year_pre=$year+1; $month_pre=$month;} echo ("&year=$year_pre&month=$month_pre");?>" target="_self" onfocus="this.blur()"><img src="<?=$latest_skin_path?>/img/y_next.gif" title="<?=$year_pre?>년" border="0"></a></td>
<!-- <td width="64"><img src="<?=$latest_skin_path?>/img/month2_<?=$month?>.gif" width="64" height="23"></td> -->
</tr>
감사합니다.
속이 다 후련하네요.
main.php - index.php로 고치니까 멋지게 됩니다.
이럴때는 뭐라고 해야 하나요.
저는 "할렐루야"라고 외칩니다.
계속 봐 주시고 답변주신 님께 감사드립니다.
오늘도 행복하세요..
속이 다 후련하네요.
main.php - index.php로 고치니까 멋지게 됩니다.
이럴때는 뭐라고 해야 하나요.
저는 "할렐루야"라고 외칩니다.
계속 봐 주시고 답변주신 님께 감사드립니다.
오늘도 행복하세요..
그렇게는 해결이 안될건데요,,바로위에 링크방법을 참조해서 다시 수정해야 할겁니다.