그누보드를 처음 설치하면 head.php는 상단과 좌측, main.php는 중앙, tail.php는 우측과 하단
이렇게 설치되는데. 첫화면에서는 좌측외부로그인쪽, 가운데main, 우측의 방문자수
이렇게 보이지만 메뉴판의 게시판버튼을 누르면
좌측은 외부로그인쪽(기존의 width=170)
그리고 오른쪽은 모두(width=1000 에서825)가 게시판으로 채워지는데
게시판메뉴 버튼을 누른후에도 처음 화면과 같이 3부분으로 나눠 보여지도록 하려면
어떻게 해야하는지요? 참조사이트는 http://www.wrcon.co.kr
그리고 게시판크기를 적게 생성시켜보면 디폴트로 가운데 정렬로
되어있는데 좌측정렬로 하려면 어디를 수정해야하는지요?
왕초보라서 대략설명주심 이해하기 힘드니 자세한 설명부탁 드립니다.
선배님들의 도움 부탁드립니다.
head.php
----------------------------------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
/*
사용자 화면 상단과 좌측을 담당하는 페이지입니다.
상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.
*/
include "./bbs/gblayer.php";
?>
<table width=1000 align=center ><tr><td>
<table width=100% cellpadding=0 cellspacing=0 border=0>
<!-- 상단 좌측로고와 우측로그인 -->
<tr>
<td height=60>
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td><a href='./'><img src='image/logo.gif' border=0 alt='그누보드'></a></td>
</tr>
</table>
</td>
<td align=right valign=top>
<?
echo "<a href='./' class=tm>HOME</a> | ";
if (!$member[mb_id]) {
echo "<a href='./?doc=bbs/mblogin.php&url=$urlencode' class=tm>로그인</a> | ";
echo "<a href='./?doc=bbs/mbform.php' class=tm>회원가입</a>";
} else {
echo "<a href='./?doc=bbs/mblogout.php&url=$urlencode' class=tm>로그아웃</a> | ";
echo "<a href='./?doc=bbs/mbform.php&w=u' class=tm>정보수정</a>";
if ($is_admin == "default" || $is_admin == "group") {
echo " <a href='./?doc=bbs/admin/index.php' class=tm>(ADMIN)</a>";
}
}
?>
</td>
</tr>
<tr>
<td >
<table width=100% height=30 cellpadding=0 cellspacing=0 bgcolor=darkgreen >
<tr>
<td width=100% align=right>
<?
echo "<a href='./' class=tm2>HOME</a> ";
?>
| <a href='./?doc=bbs/gnuboard.php&bo_table=qa_board' class=tm2>문의게시판</a>
| <a href='./?doc=bbs/gnuboard.php&bo_table=faq_board' class=tm2>FAQ</a>
| <a href="./?doc=map.php" class=tm2>오시는길</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width='100%' cellpadding=0 cellspacing=0>
<colgroup width=170>
<colgroup width=5>
<colgroup width=''>
<tr>
<!-- 왼쪽 메뉴 부분 -->
<td valign=top>
<!-- 외부 로그인 -->
<? include "./bbs/outlogin.php"; ?>
<!-- 공백 -->
<table width=100% height=5><tr><td></td></tr></table>
<table width=100% height=100>
<tr><td></td></tr>
</table>
<table width=100% height=5><tr><td></td></tr></table>
<table width=100% height=100>
<tr><td></td></tr>
</table>
</td>
<td></td>
<td valign=top>
main.php
-----------------------------------------------------------------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
define("_DOCTYPE_", "DESIGN");
$html_title = "그누보드3";
?>
<table width='100%' height=30 cellpadding=0 cellspacing=0 >
<tr><td></td></tr></table>
<table width='100%' cellpadding=0 cellspacing=0 >
<colgroup width=''>
<colgroup width=5>
<colgroup width=170>
<tr>
<td valign=top>
<?
// 최신글 시작 -여길 활성화 시키면 main페이지에 게시판에 써논글의
최신글들이 줄줄이 나타 나죠
$sql = " select bo_table, bo_subject from $cfg[table_board] order by gr_id, bo_table ";
$result = sql_query($sql);
for ($i=0; $row=mysql_fetch_array($result); $i++) {
echo "<table width=100%><tr><td height=25 bgcolor=#F0F0F0>
<img src='image/icon _01.gif' align=absmiddle>
<a href='./?doc=bbs/gnuboard.php&bo_table=$row[bo_table]'>
<b>$row[bo_subject]</b></a></td></tr></table>";
# 이 함수가 바로 최신글을 추출하는 역할을 합니다.
# 사용방법
# latest(스킨, 게시판아이디, 출력라인, 글자수);
# 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.
latest('', $row[bo_table], 5, 70);
echo "<p>";
}
// 최신글 끝
?>
</td>
<td>
</td>
<td valign=top>
<!-- 투표 -->
<? include "./bbs/vote.php"; ?>
<!-- 공백 -->
<table width=100% height=5><tr><td> </td></tr></table>
<!-- 카운터 -->
<img src='image/bar_count.gif' border=0><br>
<? include "./bbs/count.php"; ?>
</td>
</tr>
</table>
tail.php
------------------------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
/*
사용자 화면 우측과 하단을 담당하는 페이지입니다.
우측, 하단 화면을 꾸미려면 이 파일을 수정합니다.
*/
?>
</td>
</tr>
</table>
<!-- 공백 -->
<table width=100% height=5><tr><td></td></tr></table>
<table width='100%' cellpadding=0 cellspacing=0>
<tr><td height=1 bgcolor=#8C8C8C></td></tr>
<tr>
<td height=30 align=right><div align="center"><font color=#9B9B9B>Copyright
© AS All rights reserved.</font> </div></td>
</tr>
</table>
</td></tr></table>
이렇게 설치되는데. 첫화면에서는 좌측외부로그인쪽, 가운데main, 우측의 방문자수
이렇게 보이지만 메뉴판의 게시판버튼을 누르면
좌측은 외부로그인쪽(기존의 width=170)
그리고 오른쪽은 모두(width=1000 에서825)가 게시판으로 채워지는데
게시판메뉴 버튼을 누른후에도 처음 화면과 같이 3부분으로 나눠 보여지도록 하려면
어떻게 해야하는지요? 참조사이트는 http://www.wrcon.co.kr
그리고 게시판크기를 적게 생성시켜보면 디폴트로 가운데 정렬로
되어있는데 좌측정렬로 하려면 어디를 수정해야하는지요?
왕초보라서 대략설명주심 이해하기 힘드니 자세한 설명부탁 드립니다.
선배님들의 도움 부탁드립니다.
head.php
----------------------------------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
/*
사용자 화면 상단과 좌측을 담당하는 페이지입니다.
상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.
*/
include "./bbs/gblayer.php";
?>
<table width=1000 align=center ><tr><td>
<table width=100% cellpadding=0 cellspacing=0 border=0>
<!-- 상단 좌측로고와 우측로그인 -->
<tr>
<td height=60>
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td><a href='./'><img src='image/logo.gif' border=0 alt='그누보드'></a></td>
</tr>
</table>
</td>
<td align=right valign=top>
<?
echo "<a href='./' class=tm>HOME</a> | ";
if (!$member[mb_id]) {
echo "<a href='./?doc=bbs/mblogin.php&url=$urlencode' class=tm>로그인</a> | ";
echo "<a href='./?doc=bbs/mbform.php' class=tm>회원가입</a>";
} else {
echo "<a href='./?doc=bbs/mblogout.php&url=$urlencode' class=tm>로그아웃</a> | ";
echo "<a href='./?doc=bbs/mbform.php&w=u' class=tm>정보수정</a>";
if ($is_admin == "default" || $is_admin == "group") {
echo " <a href='./?doc=bbs/admin/index.php' class=tm>(ADMIN)</a>";
}
}
?>
</td>
</tr>
<tr>
<td >
<table width=100% height=30 cellpadding=0 cellspacing=0 bgcolor=darkgreen >
<tr>
<td width=100% align=right>
<?
echo "<a href='./' class=tm2>HOME</a> ";
?>
| <a href='./?doc=bbs/gnuboard.php&bo_table=qa_board' class=tm2>문의게시판</a>
| <a href='./?doc=bbs/gnuboard.php&bo_table=faq_board' class=tm2>FAQ</a>
| <a href="./?doc=map.php" class=tm2>오시는길</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width='100%' cellpadding=0 cellspacing=0>
<colgroup width=170>
<colgroup width=5>
<colgroup width=''>
<tr>
<!-- 왼쪽 메뉴 부분 -->
<td valign=top>
<!-- 외부 로그인 -->
<? include "./bbs/outlogin.php"; ?>
<!-- 공백 -->
<table width=100% height=5><tr><td></td></tr></table>
<table width=100% height=100>
<tr><td></td></tr>
</table>
<table width=100% height=5><tr><td></td></tr></table>
<table width=100% height=100>
<tr><td></td></tr>
</table>
</td>
<td></td>
<td valign=top>
main.php
-----------------------------------------------------------------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
define("_DOCTYPE_", "DESIGN");
$html_title = "그누보드3";
?>
<table width='100%' height=30 cellpadding=0 cellspacing=0 >
<tr><td></td></tr></table>
<table width='100%' cellpadding=0 cellspacing=0 >
<colgroup width=''>
<colgroup width=5>
<colgroup width=170>
<tr>
<td valign=top>
<?
// 최신글 시작 -여길 활성화 시키면 main페이지에 게시판에 써논글의
최신글들이 줄줄이 나타 나죠
$sql = " select bo_table, bo_subject from $cfg[table_board] order by gr_id, bo_table ";
$result = sql_query($sql);
for ($i=0; $row=mysql_fetch_array($result); $i++) {
echo "<table width=100%><tr><td height=25 bgcolor=#F0F0F0>
<img src='image/icon _01.gif' align=absmiddle>
<a href='./?doc=bbs/gnuboard.php&bo_table=$row[bo_table]'>
<b>$row[bo_subject]</b></a></td></tr></table>";
# 이 함수가 바로 최신글을 추출하는 역할을 합니다.
# 사용방법
# latest(스킨, 게시판아이디, 출력라인, 글자수);
# 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.
latest('', $row[bo_table], 5, 70);
echo "<p>";
}
// 최신글 끝
?>
</td>
<td>
</td>
<td valign=top>
<!-- 투표 -->
<? include "./bbs/vote.php"; ?>
<!-- 공백 -->
<table width=100% height=5><tr><td> </td></tr></table>
<!-- 카운터 -->
<img src='image/bar_count.gif' border=0><br>
<? include "./bbs/count.php"; ?>
</td>
</tr>
</table>
tail.php
------------------------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
/*
사용자 화면 우측과 하단을 담당하는 페이지입니다.
우측, 하단 화면을 꾸미려면 이 파일을 수정합니다.
*/
?>
</td>
</tr>
</table>
<!-- 공백 -->
<table width=100% height=5><tr><td></td></tr></table>
<table width='100%' cellpadding=0 cellspacing=0>
<tr><td height=1 bgcolor=#8C8C8C></td></tr>
<tr>
<td height=30 align=right><div align="center"><font color=#9B9B9B>Copyright
© AS All rights reserved.</font> </div></td>
</tr>
</table>
</td></tr></table>
댓글을 작성하시려면 로그인이 필요합니다.
댓글 1개
테일로 채워주심이...
ㅡㅡ;; 지도 허접해소..