초보자를위한 팁..haed.php/index.php/tail.php만들기 정보
초보자를위한 팁..haed.php/index.php/tail.php만들기관련링크
http://없음
247회 연결
본문
안녕하세요
일단 그누보드를 처음 접하시는분들이 난감해 하시는 부분인데요..
이부분은 0보드4 에서도 같은 방법으로 사용할수있습니다
드림위버나..나모로 테이블을짜셔..코딩하시면됩니다
일단 제가올린 이미지를보시면..아시겠지만..대부분 테이블을짜서..
홈페이지를 만들겁니다..
기본적은 테이블을 제가 짜보았습니다..
게시판이 위치해야 할부분이 보이지요?
그곳에 게시판을 넣어보겠습니다
일단 위의그림을 소스로 보겠습니다
--------------------------------------------
<table width="100%" height="500" border="0" cellpadding="0" cellspacing="0">
<tr bgcolor="DC4E24">
<td colspan="2"><div align="center">head.php</div></td>
</tr>
<tr>
<td width="14%" bgcolor="07AAFF">head.php</td>
<td width="86%">게시판 위치할부분 </td>
</tr>
<tr bgcolor="9D9E9F">
<td colspan="2"><div align="center">tail.php</div></td>
</tr>
</table>
-----------------------------------------------------------------
위와같은 소스로 되어있습니다
그럼 이제부터
head.php와 tail.php로 나누어 보겠습니다
간단합니다
head.php
는 제일윗부분 부터 "게시판 위치할부분"글짜 바로전까지 잘라서
head.php로 저장하시면됩니다
예)
<table width="100%" height="500" border="0" cellpadding="0" cellspacing="0">
<tr bgcolor="DC4E24">
<td colspan="2"><div align="center">head.php</div></td>
</tr>
<tr>
<td width="14%" bgcolor="07AAFF">head.php</td>
<td width="86%">
이부분이 head.php부분이죠..
그리고 tail.php부분은
당연히 "게시판 위치할부분"글씨 바로다음이죠..
예)
</td>
</tr>
<tr bgcolor="9D9E9F">
<td colspan="2"><div align="center">tail.php</div></td>
</tr>
</table>
이부분을 tail.php로 저장하시면됩니다
자 그럼..
head.php를 완성해볼까요?
일단 그누에서 제공되는 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());
// 사용자 화면 상단과 좌측을 담당하는 페이지입니다.
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.
?>
이런부분이 있을것입니다..
일단 모르시면 그냥 카피하셔서
위에서 구현했던head.php파일 멘위에 붙여넣으세요^^
간단하게head.php파일을 직접 만들어 네요?
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="100%" height="500" border="0" cellpadding="0" cellspacing="0">
<tr bgcolor="DC4E24">
<td colspan="2"><div align="center">head.php</div></td>
</tr>
<tr>
<td width="14%" bgcolor="07AAFF">head.php</td>
<td width="86%">
이런식이 되는거죠..
그리고 tail.php도 마찬가지로..기본제공tail.php열어보시면 상단에
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
// 사용자 화면 우측과 하단을 담당하는 페이지입니다.
// 우측, 하단 화면을 꾸미려면 이 파일을 수정합니다.
?>
이분과 하단에 보시면
<?
include_once("$g4[path]/tail.sub.php");
?>이 있을겁니다
마찬가지로 카피하셔서 새로 만드신 tail.php에 붙여넣으세요
상단과 하단에..
완성된tail.php
---------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
// 사용자 화면 우측과 하단을 담당하는 페이지입니다.
// 우측, 하단 화면을 꾸미려면 이 파일을 수정합니다.
?>
</td>
</tr>
<tr bgcolor="9D9E9F">
<td colspan="2"><div align="center">tail.php</div></td>
</tr>
</table>
<?
include_once("$g4[path]/tail.sub.php");
?>
-----------------이런식이 되는거죠?
간단하죠?
정말 게시판을 처음접하시는분들은 이부분이 제일 답답할겁니다..
이해 안하시고 외우셔도 홈페이지 만드는데 지장이 없을것입니다..
그렇다고 테이블만넣지마시고 테이블을 이용하셔서..자기가 원하는
홈페이지를 꾸미셔야합니다^^
그리고 한가지더..
게시판이 안들어가고
그냥 첫페이지를 만드실땐
같은방법입니다.. 그누부도 첫페이지는head.php/index.php/tail.php로 되어있습니다
그렇다면 게시판들어가야 할부분에 테이블을 생성하셔서 index.php로 꾸미시면됩니다
제가짠 테이블을 소스를 보여드리겠습니다
---------------------------------------------
<table width="100%" height="500" border="0" cellpadding="0" cellspacing="0">
<tr bgcolor="DC4E24">
<td colspan="2"><div align="center">head.php</div></td>
</tr>
<tr>
<td width="14%" bgcolor="07AAFF">head.php</td>
<td width="86%"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>인덱스페이지</td>
</tr>
</table> </td>
</tr>
<tr bgcolor="9D9E9F">
<td colspan="2"><div align="center">tail.php</div></td>
</tr>
</table>
이미지와같습니다 게시판들어가야할곳에 테이블을 넣었습니다
head.php와 tail.php부분은 같습니다
그럼 나머지 부분이index.php부분이겠죠?
head.php부분 위와동일
<table width="100%" height="500" border="0" cellpadding="0" cellspacing="0">
<tr bgcolor="DC4E24">
<td colspan="2"><div align="center">head.php</div></td>
</tr>
<tr>
<td width="14%" bgcolor="07AAFF">head.php</td>
<td width="86%">
이부분
tail.php부분
</td>
</tr>
<tr bgcolor="9D9E9F">
<td colspan="2"><div align="center">tail.php</div></td>
</tr>
</table>
이부분
그럼 나머지 부분이 index.php부분이겠죠?
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>인덱스페이지</td>
</tr>
</table>
네 맞습니다 이부분이 index.php부분입니다
자그럼 index.php를 완성해봅시다
일단 그누에서제공되는 index.php부분을열어보세요
맨위에<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
include_once("./_head.php");
include_once("$g4[path]/lib/latest_wr.lib.php");
//include_once("./extend/new_scroll_latest.lib.php");
?>
<?
include_once("./_tail.php");
?>이부분이 보이죠?
맞아요 카피하셔서 새로만들index.php상하단에 넣으시면됩니다
이렇게
-------------------------<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
include_once("./_head.php");
include_once("$g4[path]/lib/latest_wr.lib.php");
//include_once("./extend/new_scroll_latest.lib.php");
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>인덱스페이지</td>
</tr>
</table>
<?
include_once("./_tail.php");
?>
------------------------------------
index.php로 저장하시면됩니다^^
이해를 하셨는지 모르겠네요
어째든 멋진 홈페이지 만드세요^^
Fighting!!
일단 그누보드를 처음 접하시는분들이 난감해 하시는 부분인데요..
이부분은 0보드4 에서도 같은 방법으로 사용할수있습니다
드림위버나..나모로 테이블을짜셔..코딩하시면됩니다
일단 제가올린 이미지를보시면..아시겠지만..대부분 테이블을짜서..
홈페이지를 만들겁니다..
기본적은 테이블을 제가 짜보았습니다..
게시판이 위치해야 할부분이 보이지요?
그곳에 게시판을 넣어보겠습니다
일단 위의그림을 소스로 보겠습니다
--------------------------------------------
<table width="100%" height="500" border="0" cellpadding="0" cellspacing="0">
<tr bgcolor="DC4E24">
<td colspan="2"><div align="center">head.php</div></td>
</tr>
<tr>
<td width="14%" bgcolor="07AAFF">head.php</td>
<td width="86%">게시판 위치할부분 </td>
</tr>
<tr bgcolor="9D9E9F">
<td colspan="2"><div align="center">tail.php</div></td>
</tr>
</table>
-----------------------------------------------------------------
위와같은 소스로 되어있습니다
그럼 이제부터
head.php와 tail.php로 나누어 보겠습니다
간단합니다
head.php
는 제일윗부분 부터 "게시판 위치할부분"글짜 바로전까지 잘라서
head.php로 저장하시면됩니다
예)
<table width="100%" height="500" border="0" cellpadding="0" cellspacing="0">
<tr bgcolor="DC4E24">
<td colspan="2"><div align="center">head.php</div></td>
</tr>
<tr>
<td width="14%" bgcolor="07AAFF">head.php</td>
<td width="86%">
이부분이 head.php부분이죠..
그리고 tail.php부분은
당연히 "게시판 위치할부분"글씨 바로다음이죠..
예)
</td>
</tr>
<tr bgcolor="9D9E9F">
<td colspan="2"><div align="center">tail.php</div></td>
</tr>
</table>
이부분을 tail.php로 저장하시면됩니다
자 그럼..
head.php를 완성해볼까요?
일단 그누에서 제공되는 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());
// 사용자 화면 상단과 좌측을 담당하는 페이지입니다.
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.
?>
이런부분이 있을것입니다..
일단 모르시면 그냥 카피하셔서
위에서 구현했던head.php파일 멘위에 붙여넣으세요^^
간단하게head.php파일을 직접 만들어 네요?
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="100%" height="500" border="0" cellpadding="0" cellspacing="0">
<tr bgcolor="DC4E24">
<td colspan="2"><div align="center">head.php</div></td>
</tr>
<tr>
<td width="14%" bgcolor="07AAFF">head.php</td>
<td width="86%">
이런식이 되는거죠..
그리고 tail.php도 마찬가지로..기본제공tail.php열어보시면 상단에
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
// 사용자 화면 우측과 하단을 담당하는 페이지입니다.
// 우측, 하단 화면을 꾸미려면 이 파일을 수정합니다.
?>
이분과 하단에 보시면
<?
include_once("$g4[path]/tail.sub.php");
?>이 있을겁니다
마찬가지로 카피하셔서 새로 만드신 tail.php에 붙여넣으세요
상단과 하단에..
완성된tail.php
---------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
// 사용자 화면 우측과 하단을 담당하는 페이지입니다.
// 우측, 하단 화면을 꾸미려면 이 파일을 수정합니다.
?>
</td>
</tr>
<tr bgcolor="9D9E9F">
<td colspan="2"><div align="center">tail.php</div></td>
</tr>
</table>
<?
include_once("$g4[path]/tail.sub.php");
?>
-----------------이런식이 되는거죠?
간단하죠?
정말 게시판을 처음접하시는분들은 이부분이 제일 답답할겁니다..
이해 안하시고 외우셔도 홈페이지 만드는데 지장이 없을것입니다..
그렇다고 테이블만넣지마시고 테이블을 이용하셔서..자기가 원하는
홈페이지를 꾸미셔야합니다^^
그리고 한가지더..
게시판이 안들어가고
그냥 첫페이지를 만드실땐
같은방법입니다.. 그누부도 첫페이지는head.php/index.php/tail.php로 되어있습니다
그렇다면 게시판들어가야 할부분에 테이블을 생성하셔서 index.php로 꾸미시면됩니다
제가짠 테이블을 소스를 보여드리겠습니다
---------------------------------------------
<table width="100%" height="500" border="0" cellpadding="0" cellspacing="0">
<tr bgcolor="DC4E24">
<td colspan="2"><div align="center">head.php</div></td>
</tr>
<tr>
<td width="14%" bgcolor="07AAFF">head.php</td>
<td width="86%"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>인덱스페이지</td>
</tr>
</table> </td>
</tr>
<tr bgcolor="9D9E9F">
<td colspan="2"><div align="center">tail.php</div></td>
</tr>
</table>
이미지와같습니다 게시판들어가야할곳에 테이블을 넣었습니다
head.php와 tail.php부분은 같습니다
그럼 나머지 부분이index.php부분이겠죠?
head.php부분 위와동일
<table width="100%" height="500" border="0" cellpadding="0" cellspacing="0">
<tr bgcolor="DC4E24">
<td colspan="2"><div align="center">head.php</div></td>
</tr>
<tr>
<td width="14%" bgcolor="07AAFF">head.php</td>
<td width="86%">
이부분
tail.php부분
</td>
</tr>
<tr bgcolor="9D9E9F">
<td colspan="2"><div align="center">tail.php</div></td>
</tr>
</table>
이부분
그럼 나머지 부분이 index.php부분이겠죠?
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>인덱스페이지</td>
</tr>
</table>
네 맞습니다 이부분이 index.php부분입니다
자그럼 index.php를 완성해봅시다
일단 그누에서제공되는 index.php부분을열어보세요
맨위에<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
include_once("./_head.php");
include_once("$g4[path]/lib/latest_wr.lib.php");
//include_once("./extend/new_scroll_latest.lib.php");
?>
<?
include_once("./_tail.php");
?>이부분이 보이죠?
맞아요 카피하셔서 새로만들index.php상하단에 넣으시면됩니다
이렇게
-------------------------<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
include_once("./_head.php");
include_once("$g4[path]/lib/latest_wr.lib.php");
//include_once("./extend/new_scroll_latest.lib.php");
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>인덱스페이지</td>
</tr>
</table>
<?
include_once("./_tail.php");
?>
------------------------------------
index.php로 저장하시면됩니다^^
이해를 하셨는지 모르겠네요
어째든 멋진 홈페이지 만드세요^^
Fighting!!
추천
4
4
댓글 18개
좋은 팁 감사합니다. 제가 지금 홈페이지를 만들고있는데
예를 들어 www.사이트주소.com/gboard 를 만들어 사용중입니다.
제로보드를 5년간 사용해와서 넘어온지 이제 2틀되어 정말 진땀빼고있습니다.
물론 php도 할줄몰라요 디자인위주로 작업을 해왔서요 잘모릅니다 ㅠㅠ
일단 게시판을 생성하고요 실제 게시판 상단 / 하단 인크루드 파일들을
넣은것까지 는 이해돼는데요
이미지들은 www.사이트주소.com/img 폴더에 있습니다.
이미지들또한 gboard안에 넣어야 하나요?
아니면 상하단 인크루드 파일에 해당 이미지 경로들을 절대경로로 다 넣어주어야 하나요?
아리송하네요 ㅠㅠ;;
예를 들어 www.사이트주소.com/gboard 를 만들어 사용중입니다.
제로보드를 5년간 사용해와서 넘어온지 이제 2틀되어 정말 진땀빼고있습니다.
물론 php도 할줄몰라요 디자인위주로 작업을 해왔서요 잘모릅니다 ㅠㅠ
일단 게시판을 생성하고요 실제 게시판 상단 / 하단 인크루드 파일들을
넣은것까지 는 이해돼는데요
이미지들은 www.사이트주소.com/img 폴더에 있습니다.
이미지들또한 gboard안에 넣어야 하나요?
아니면 상하단 인크루드 파일에 해당 이미지 경로들을 절대경로로 다 넣어주어야 하나요?
아리송하네요 ㅠㅠ;;
기본그누보드 head.php/index.php/tail.php이미지는 gnuboard4/img에 들어 있습니다
괜찮네요```
저는 오늘 처음 그부 보드를 설치 했는데
상단파일 경로 하단 파일 경로 어떻게 지정해야 할지 모르겠네요..
죄송한데 쫌갈쳐주세염~~ㅋ
저는 오늘 처음 그부 보드를 설치 했는데
상단파일 경로 하단 파일 경로 어떻게 지정해야 할지 모르겠네요..
죄송한데 쫌갈쳐주세염~~ㅋ
두번째 이미지 클릭하시고 그대로 넣으시면됩니다
../head.php
.../tail.php
관리자페이지/게시판관리/특정게시판
../head.php
.../tail.php
관리자페이지/게시판관리/특정게시판
good
다시한번 꼼꼼히 살펴보니 정말 좋은팁입니다. 간단간단하게 설명해주셨어요..
아주아주...만족합니다. 아주. 다른글보고 도저히 이해가안갔는데 아주 이해가갑니다.아주아주.
설명이 깔끔하지않아 어디를읽고있는지 헷갈리지만 어쨋건 아주 good
설명이 깔끔하지않아 어디를읽고있는지 헷갈리지만 어쨋건 아주 good
head.php
는 제일윗부분 부터 "게시판 위치할부분"글짜 바로전까지 잘라서
head.php로 저장하시면됩니다
==================================================================================================================
에서요,, 어떤걸로 잘르고 또 어디다 저장을 하라는건가요??
아주 초보자에 질문이랍니다.
는 제일윗부분 부터 "게시판 위치할부분"글짜 바로전까지 잘라서
head.php로 저장하시면됩니다
==================================================================================================================
에서요,, 어떤걸로 잘르고 또 어디다 저장을 하라는건가요??
아주 초보자에 질문이랍니다.
그부분까지 카피하셔서 다른데(메모장,나모,드림위버등..) 붙여넣으시고 head.php로 저장하면됩니다...
프레임안에서 페이지바꾸는 셋팅
감사합니다.
ㅋㅅㅋㅅ
회원가입, 정보수정페이지도 따로 만들고 싶은데 상하단 어떻게 구성해야하나요....?
홈피만들기
초보는 넘 힘들어요 ^^
감사합니다..
검색하다가 봤는데 설명 정말 잘하시네요! 감사합니다. 이해가 쏙쏙 됩니다^^
div 자르려다 우연히 봤는데 지금봐도 아주 좋은 글입니다...이거 때문에 고생했는데..
그러데 역시나 div 자른거는 이 x보드에서는 제대로 공지나 ,,셜명으로 해주지 않는다는..
그러데 역시나 div 자른거는 이 x보드에서는 제대로 공지나 ,,셜명으로 해주지 않는다는..