인덱스 문제 ㅠ.ㅠ 정보
인덱스 문제 ㅠ.ㅠ본문
저 지금 이 답변 3번째 입니다. 물론 해결이 됬습니다 만 ㅎ
유아원님께서 올려주신 방법은 제가 만드는 법을 몰라
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
$g4['title'] = "";
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("_head.php");
?>
<!-- 메인화면 최신글 시작 -->
<td width="605" valign="top">
<?
// 최신글
$sql = " select bo_table, bo_subject from $g4[board_table] order by gr_id, bo_table ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
// 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
$g4['title'] = "";
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("_head.php");
?>
<!-- 메인화면 최신글 시작 -->
<td width="605" valign="top">
<?
// 최신글
$sql = " select bo_table, bo_subject from $g4[board_table] order by gr_id, bo_table ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
// 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.
// 사용방법
// latest(basic,kim,5,9);
echo latest("scroll", $row['bo_table'],12,70, "4,25");
echo "<p>\n";
}
// latest(basic,kim,5,9);
echo latest("scroll", $row['bo_table'],12,70, "4,25");
echo "<p>\n";
}
?>
</td></table>
<!-- 메인화면 최신글 끝-->
<?
include_once("_tail.php");
</td></table>
<!-- 메인화면 최신글 끝-->
<?
include_once("_tail.php");
?>
이 방법 아시죠?
이 방법을 쓰고 있습니다. www.tuna.kt.to 한번 와보세여
헤드 밑쪽에 최근게시물이 나오네요 ㅠㅠ
게시판도 마찬가지입니다....
유아원님께서 소스를 답변으로 올려주셨습니다.
정말 잘 만드시더군요 홈페이지도 저렇게 잘 만드시니..
제꺼도 엄청 쉽게 해결하셨는데
도무지 저는 모르겠네요
kimhyudori
로 한번 질문답변에 쳐보세여
맨 위에서 두번째꺼 인덱스 문제 하나 더 있을 겁니다.
유아원님께서 소스 올려주신거 해봤더니
됩니다.
그러나 이해가 안되므로(이해가 안되면 다른것도 이 방법으로 만들때 어떻게 만들어야 하는지 몰라서 ㅎ)
제 방법은 왜 최근게시물이 밑으로 나오는지 또 어떻게 해결해야 하는지좀 알려주시면 감사하겠습니다.
head.php 소스입니다.
<?
include_once("./_common.php");
include_once("$g4[path]/lib/outlogin.lib.php");
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/head.sub.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"); //현재 접속자
?>
<html>
<head>
<meta name="GENERATOR" content="Namo WebEditor v6.0">
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<title>연습용</title>
</head>
<body leftmargin="0" marginwidth="0" topmargin="0" marginheight="0">
include_once("./_common.php");
include_once("$g4[path]/lib/outlogin.lib.php");
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/head.sub.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"); //현재 접속자
?>
<html>
<head>
<meta name="GENERATOR" content="Namo WebEditor v6.0">
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<title>연습용</title>
</head>
<body leftmargin="0" marginwidth="0" topmargin="0" marginheight="0">
<table cellspacing="0" bordercolordark="black" bordercolorlight="black" width="881" cellpadding="0">
<tr>
<td width="881" colspan="2"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="1003" height="400">
<param name="movie" value="http://kimhyudori.oranc.co.kr/gnuboard4/kim1/kim.swf">
<param name="play" value="true">
<param name="loop" value="true">
<param name="quality" value="high">
<embed width="1003" height="400" src="http://kimhyudori.oranc.co.kr/gnuboard4/kim1/kim.swf" play="true" loop="true" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object></td>
</tr>
<tr>
<td width="276">
<p> </p>
<p><?=outlogin("basic")?>
<!-- 오란씨 소년소녀가장돕기 사랑실천 검색창 소스 시작
아래코드중 스크립트관련된 코드 삭제하시면 안됩니다. -->
<script language='JavaScript' src='http://www.oranc.co.kr/inc/in.html?ui=CAIJBQoREQtDWw=='>
</script>
<script>
window.onload=autoImg</script>
<LINK REL=STYLESHEET TYPE="text/css" HREF="http://www.oranc.co.kr/inc/style.css">
</p>
<form name="oranc_frm" method="get" action="http://search.oranc.co.kr/?" target="_blank" onsubmit='return goSubmit(this);'>
<table width="181" border='1' cellpadding='1' cellspacing='0' bordercolor='#f0f0f0'>
<tr>
<td width="175" valign='middle'><table width="173" border='0' cellspacing='0' cellpadding='0'>
<tr>
<td width="173" height='27' valign='bottom'>
<input type='text' name='cmd' size="22" onkeydown='clrImg(this)' onmousedown='clrImg(this)'>
<input type=image src='http://www.oranc.co.kr/home_images/search/button15.gif' width='20' height='20' align='absmiddle'> </td>
</tr>
<tr>
<td width="173" align=center height=23><span id=SEARCH_WORD></span><script>s_genWordlist();</script></td>
</tr>
</table></td>
</tr>
</table>
<input type=hidden name=M_mode value='b_sch'>
<input type=hidden name=skin value='base'>
<input type=hidden name=ui value='CAIJBQoREQtDWw=='>
</form>
<p><!-- 오란씨 소년소녀가장돕기 사랑실천 검색창 소스 끝 -->
</p>
<p><?=poll("basic",1); // 설문조사 ?></p>
<p><?=visit("basic")?></p>
<p><?=connect("basic");?></p>
<tr>
<td width="881" colspan="2"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="1003" height="400">
<param name="movie" value="http://kimhyudori.oranc.co.kr/gnuboard4/kim1/kim.swf">
<param name="play" value="true">
<param name="loop" value="true">
<param name="quality" value="high">
<embed width="1003" height="400" src="http://kimhyudori.oranc.co.kr/gnuboard4/kim1/kim.swf" play="true" loop="true" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object></td>
</tr>
<tr>
<td width="276">
<p> </p>
<p><?=outlogin("basic")?>
<!-- 오란씨 소년소녀가장돕기 사랑실천 검색창 소스 시작
아래코드중 스크립트관련된 코드 삭제하시면 안됩니다. -->
<script language='JavaScript' src='http://www.oranc.co.kr/inc/in.html?ui=CAIJBQoREQtDWw=='>
</script>
<script>
window.onload=autoImg</script>
<LINK REL=STYLESHEET TYPE="text/css" HREF="http://www.oranc.co.kr/inc/style.css">
</p>
<form name="oranc_frm" method="get" action="http://search.oranc.co.kr/?" target="_blank" onsubmit='return goSubmit(this);'>
<table width="181" border='1' cellpadding='1' cellspacing='0' bordercolor='#f0f0f0'>
<tr>
<td width="175" valign='middle'><table width="173" border='0' cellspacing='0' cellpadding='0'>
<tr>
<td width="173" height='27' valign='bottom'>
<input type='text' name='cmd' size="22" onkeydown='clrImg(this)' onmousedown='clrImg(this)'>
<input type=image src='http://www.oranc.co.kr/home_images/search/button15.gif' width='20' height='20' align='absmiddle'> </td>
</tr>
<tr>
<td width="173" align=center height=23><span id=SEARCH_WORD></span><script>s_genWordlist();</script></td>
</tr>
</table></td>
</tr>
</table>
<input type=hidden name=M_mode value='b_sch'>
<input type=hidden name=skin value='base'>
<input type=hidden name=ui value='CAIJBQoREQtDWw=='>
</form>
<p><!-- 오란씨 소년소녀가장돕기 사랑실천 검색창 소스 끝 -->
</p>
<p><?=poll("basic",1); // 설문조사 ?></p>
<p><?=visit("basic")?></p>
<p><?=connect("basic");?></p>
</td>
<td width="605" valign="top"> </td>
</tr>
</table>
</body>
</html>
또 tail.php 소스입니다.
<?include_once("$g4[path]/tail.sub.php");?>
<html>
<head>
<meta name="GENERATOR" content="Namo WebEditor v6.0">
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<title>제목 없음</title>
</head>
<body>
<html>
<head>
<meta name="GENERATOR" content="Namo WebEditor v6.0">
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<title>제목 없음</title>
</head>
<body>
<table width="1003" cellpadding="0" cellspacing="0">
<tr>
<td width="1003"> <p align="center"><img src="http://kimhyudori.oranc.co.kr/gnuboard4/kim1/tail.gif" width="635" height="100" border="0"></p>
</td>
</tr>
</table>
</body>
</html>
<tr>
<td width="1003"> <p align="center"><img src="http://kimhyudori.oranc.co.kr/gnuboard4/kim1/tail.gif" width="635" height="100" border="0"></p>
</td>
</tr>
</table>
</body>
</html>
요새 질문을 많이 올리내요.
좋은 하루 되세요~
댓글 전체

head.php 파일은 이렇게 수정하세요.
<?
include_once("./_common.php");
include_once("$g4[path]/lib/outlogin.lib.php");
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/head.sub.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"); //현재 접속자
?>
<table cellspacing="0" bordercolordark="black" bordercolorlight="black" width="881" cellpadding="0">
<tr>
<td width="881" colspan="2"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="1003" height="400">
<param name="movie" value="http://kimhyudori.oranc.co.kr/gnuboard4/kim1/kim.swf">
<param name="play" value="true">
<param name="loop" value="true">
<param name="quality" value="high">
<embed width="1003" height="400" src="http://kimhyudori.oranc.co.kr/gnuboard4/kim1/kim.swf" play="true" loop="true" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object></td>
</tr>
<tr>
<td width="276">
<p> </p>
<p><?=outlogin("basic")?>
<!-- 오란씨 소년소녀가장돕기 사랑실천 검색창 소스 시작
아래코드중 스크립트관련된 코드 삭제하시면 안됩니다. -->
<script language='JavaScript' src='http://www.oranc.co.kr/inc/in.html?ui=CAIJBQoREQtDWw=='>
</script>
<script>
window.onload=autoImg</script>
<LINK REL=STYLESHEET TYPE="text/css" HREF="http://www.oranc.co.kr/inc/style.css">
</p>
<form name="oranc_frm" method="get" action="http://search.oranc.co.kr/?" target="_blank" onsubmit='return goSubmit(this);'>
<table width="181" border='1' cellpadding='1' cellspacing='0' bordercolor='#f0f0f0'>
<tr>
<td width="175" valign='middle'><table width="173" border='0' cellspacing='0' cellpadding='0'>
<tr>
<td width="173" height='27' valign='bottom'>
<input type='text' name='cmd' size="22" onkeydown='clrImg(this)' onmousedown='clrImg(this)'>
<input type=image src='http://www.oranc.co.kr/home_images/search/button15.gif' width='20' height='20' align='absmiddle'> </td>
</tr>
<tr>
<td width="173" align=center height=23><span id=SEARCH_WORD></span><script>s_genWordlist();</script></td>
</tr>
</table></td>
</tr>
</table>
<input type=hidden name=M_mode value='b_sch'>
<input type=hidden name=skin value='base'>
<input type=hidden name=ui value='CAIJBQoREQtDWw=='>
</form>
<p><!-- 오란씨 소년소녀가장돕기 사랑실천 검색창 소스 끝 -->
</p>
<p><?=poll("basic",1); // 설문조사 ?></p>
<p><?=visit("basic")?></p>
<p><?=connect("basic");?></p>
</td>
<td width="605" valign="top">
tail.php 파일은 이렇게 수정하세요.
</td></tr></table>
<table width="1003" cellpadding="0" cellspacing="0">
<tr>
<td width="1003"> <p align="center"><img src="http://kimhyudori.oranc.co.kr/gnuboard4/kim1/tail.gif" width="635" height="100" border="0"></p>
</td>
</tr>
</table>
<?include_once("$g4[path]/tail.sub.php");?>
<?
include_once("./_common.php");
include_once("$g4[path]/lib/outlogin.lib.php");
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/head.sub.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"); //현재 접속자
?>
<table cellspacing="0" bordercolordark="black" bordercolorlight="black" width="881" cellpadding="0">
<tr>
<td width="881" colspan="2"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="1003" height="400">
<param name="movie" value="http://kimhyudori.oranc.co.kr/gnuboard4/kim1/kim.swf">
<param name="play" value="true">
<param name="loop" value="true">
<param name="quality" value="high">
<embed width="1003" height="400" src="http://kimhyudori.oranc.co.kr/gnuboard4/kim1/kim.swf" play="true" loop="true" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object></td>
</tr>
<tr>
<td width="276">
<p> </p>
<p><?=outlogin("basic")?>
<!-- 오란씨 소년소녀가장돕기 사랑실천 검색창 소스 시작
아래코드중 스크립트관련된 코드 삭제하시면 안됩니다. -->
<script language='JavaScript' src='http://www.oranc.co.kr/inc/in.html?ui=CAIJBQoREQtDWw=='>
</script>
<script>
window.onload=autoImg</script>
<LINK REL=STYLESHEET TYPE="text/css" HREF="http://www.oranc.co.kr/inc/style.css">
</p>
<form name="oranc_frm" method="get" action="http://search.oranc.co.kr/?" target="_blank" onsubmit='return goSubmit(this);'>
<table width="181" border='1' cellpadding='1' cellspacing='0' bordercolor='#f0f0f0'>
<tr>
<td width="175" valign='middle'><table width="173" border='0' cellspacing='0' cellpadding='0'>
<tr>
<td width="173" height='27' valign='bottom'>
<input type='text' name='cmd' size="22" onkeydown='clrImg(this)' onmousedown='clrImg(this)'>
<input type=image src='http://www.oranc.co.kr/home_images/search/button15.gif' width='20' height='20' align='absmiddle'> </td>
</tr>
<tr>
<td width="173" align=center height=23><span id=SEARCH_WORD></span><script>s_genWordlist();</script></td>
</tr>
</table></td>
</tr>
</table>
<input type=hidden name=M_mode value='b_sch'>
<input type=hidden name=skin value='base'>
<input type=hidden name=ui value='CAIJBQoREQtDWw=='>
</form>
<p><!-- 오란씨 소년소녀가장돕기 사랑실천 검색창 소스 끝 -->
</p>
<p><?=poll("basic",1); // 설문조사 ?></p>
<p><?=visit("basic")?></p>
<p><?=connect("basic");?></p>
</td>
<td width="605" valign="top">
tail.php 파일은 이렇게 수정하세요.
</td></tr></table>
<table width="1003" cellpadding="0" cellspacing="0">
<tr>
<td width="1003"> <p align="center"><img src="http://kimhyudori.oranc.co.kr/gnuboard4/kim1/tail.gif" width="635" height="100" border="0"></p>
</td>
</tr>
</table>
<?include_once("$g4[path]/tail.sub.php");?>

http://www.sir.co.kr/gnuboard/g4_faq.php#11 //유아원이 선택한 방법
http://www.sir.co.kr/gnuboard/g4_faq.php#12 //휘중님이 선택한 방법
http://www.sir.co.kr/gnuboard/g4_faq.php#12 //휘중님이 선택한 방법