게시판하단파일 경로문제..
본문
그누보드 영카트호환되는걸로 youngcart5.0.43 버젼입니다.
게시판을 만들려고
상단부분 head.php , _head.php 각각 복사해서 head2.php , _head2.php 각각 만들었습니다.
하단부분 tail.php , tail.sub.php은 각각 복사해서 tai2l.php , tail.sub2.php 라고 만들었습니다.
그런다음 게시판 관리자 모드에서 상단파일 하단파일에 각각
라고넣었습니다.
그런데 상단은 나오는데 하단이 안나옵니다.
head2.php, _tail2.php 파일의 이미지와 링크들은 모두 앞에 ../를 넣어 경로수정을 하였습니다.
http://www.gumic.mireene.com/bbs/board.php?bo_table=notice 주소입니다..
아시는 고수님들 좀 알려주세요..ㅠㅠ
tail.sub2.php는 그냥복사만했고.
tail2는 수정하였습니다. 테이블코딩부분은 제 홈피작업물입니다..
원본
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
// 하단 파일 경로 지정 : 이 코드는 가능한 삭제하지 마십시오.
if ($config['cf_include_tail'] && is_file(G5_PATH.'/'.$config['cf_include_tail'])) {
include_once(G5_PATH.'/'.$config['cf_include_tail']);
return; // 이 코드의 아래는 실행을 하지 않습니다.
}
if (G5_IS_MOBILE) {
include_once(G5_MOBILE_PATH.'/tail.php');
return;
}
?>
<!-- } 콘텐츠 끝 -->
<!-- 하단 시작 { -->
<table cellpadding="0" cellspacing="0" width="100%" bgcolor="d1d1d1">
<tr>
<td align="center" bgcolor="d1d1d1">
<table cellpadding="0" cellspacing="0" width="1000">
<tr>
<td colspan="2" style="padding-top:5px; padding-bottom:20px;" align="right" ><a href="bbs/content.php?co_id=privacy"><img src="../../img2/footer/bot01.gif"></a><img src="img2/footer/bot_line.gif"><a href="bbs/content.php?co_id=provision"><img src="img2/footer/bot03.gif"></a><img src="img2/footer/bot_line.gif"><a href=""><img src="img2/footer/bot05.gif"></a><img src="img2/footer/bot_line.gif"><a href=""><img src="img2/footer/bot06.gif"></a></td>
</tr>
<tr>
<td align="left" valign="top"><img src="img2/footer/logo2.gif"></td>
<td align="right" valign="top"><img src="img2/footer/add.gif"></td>
</tr>
<tr>
<td colspan="2" height="25"></td>
</tr>
</table>
</td>
</tr>
</table>
<?php
if(G5_DEVICE_BUTTON_DISPLAY && !G5_IS_MOBILE) { ?>
<?php
}
if ($config['cf_analytics']) {
echo $config['cf_analytics'];
}
?>
<!-- } 하단 끝 -->
<script>
$(function() {
// 폰트 리사이즈 쿠키있으면 실행
font_resize("container", get_cookie("ck_font_resize_rmv_class"), get_cookie("ck_font_resize_add_class"));
});
</script>
<?php
include_once(G5_PATH."/tail.sub.php");
?>
수정본
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
// 하단 파일 경로 지정 : 이 코드는 가능한 삭제하지 마십시오.
if ($config['cf_include_tail'] && is_file(G5_PATH.'/'.$config['cf_include_tail2'])) {
include_once(G5_PATH.'/'.$config['cf_include_tail2']);
return; // 이 코드의 아래는 실행을 하지 않습니다.
}
if (G5_IS_MOBILE) {
include_once(G5_MOBILE_PATH.'/tail2.php');
return;
}
?>
<!-- } 콘텐츠 끝 -->
</td></tr>
<tr><td height="80"></td></tr>
</table>
</td>
<td width="30"></td>
</tr>
</table>
</td>
</tr>
</table>
<!-- 하단 시작 { -->
<table cellpadding="0" cellspacing="0" width="100%" bgcolor="d1d1d1">
<tr>
<td align="center" bgcolor="d1d1d1">
<table cellpadding="0" cellspacing="0" width="1000">
<tr>
<td colspan="2" style="padding-top:5px; padding-bottom:20px;" align="right" ><a href="../bbs/content.php?co_id=privacy"><img src="../../img2/footer/bot01.gif"></a><img src="../img2/footer/bot_line.gif"><a href="../bbs/content.php?co_id=provision"><img src="../img2/footer/bot03.gif"></a><img src="../img2/footer/bot_line.gif"><a href=""><img src="../img2/footer/bot05.gif"></a><img src="../img2/footer/bot_line.gif"><a href=""><img src="../img2/footer/bot06.gif"></a></td>
</tr>
<tr>
<td align="left" valign="top"><img src="../img2/footer/logo2.gif"></td>
<td align="right" valign="top"><img src="../img2/footer/add.gif"></td>
</tr>
<tr>
<td colspan="2" height="25"></td>
</tr>
</table>
</td>
</tr>
</table>
<?php
if(G5_DEVICE_BUTTON_DISPLAY && !G5_IS_MOBILE) { ?>
<?php
}
if ($config['cf_analytics']) {
echo $config['cf_analytics'];
}
?>
<!-- } 하단 끝 -->
<script>
$(function() {
// 폰트 리사이즈 쿠키있으면 실행
font_resize("container", get_cookie("ck_font_resize_rmv_class"), get_cookie("ck_font_resize_add_class"));
});
</script>
<?php
include_once(G5_PATH."/tail.sub2.php");
?>
답변 3
하단파일명이 tai2l.php 인지 확인하세요.
아..저건 오타구요..제대로 넣었어요..
그런데 안나오네요..
_tail.php를 복사해서 _tail2.php도 만들어서 넣으니까 나오네요~^^