디자인 변경을 위해서 고쳐야할 파일에 대해서 궁금합니다. 정보
디자인 변경을 위해서 고쳐야할 파일에 대해서 궁금합니다.
본문
또 질문드려서 죄송합니다.
ㅠ_ㅠ
FAQ를 읽어보니까..
상단디자인이 head.php 이고, 하단이 tail.php 인것같은데요.
simant.net/gnuboard/ 이곳에 있는데...
head.php의 어느부분만 남겨두고 다 지워야할런지요?
디자인은 simant.net/index.php 이곳에 다 있고. 그냥 table로 나눴을뿐인데, 순수 100%
html 코드로만 이뤄져 있습니다.
그런데 head.php 와 tail.php로 가니..
알아보지못할 소스들이 ..ㅡㅡ; 대략 난감..
<!-- 상단 배경 시작 -->
<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><img src="<?=$g4['path']?>/img/top_img.gif" width="100%" height="52"></td>
</tr>
</table></td>
</tr>
</table>
<!-- 상단 배경 끝 -->
<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><img src="<?=$g4['path']?>/img/top_img.gif" width="100%" height="52"></td>
</tr>
</table></td>
</tr>
</table>
<!-- 상단 배경 끝 -->
이거 그냥 싹다 지우고 그냥 이미지 넣어도 되는건지.. ㅠ_ㅠ 게시판진행에 영향은 없는건지
궁금해서..
그리고 맨위에..
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
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/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());
이건 남겨두는게 좋은가여? ㅠ_ㅠ;
그리고 노프레임강좌 링크해주시는데 노프레임에 대해서는 어느정도 알고 있답니다.
그런데 그누보드에서의 지정된 파일/변수들을 알려고하는데 FAQ가 너무 막연하다는
느낌이 강합니다.
제가 이해력이 딸리는건지.......ㅠ_ㅠ 좀 자세히 나온건 없을까요?
댓글 전체
잘모르시면 <? ?> 안은 놔두시고 이하 다 지우셔도 됩니다.
<?안은 외부로그인 방문자 투표등등의 스킨이용시 필요한 부분이네요.
<?안은 외부로그인 방문자 투표등등의 스킨이용시 필요한 부분이네요.
http://www.sir.co.kr/bbs/board.php?bo_table=g4_tiptech&sca=&sfl=mb_id,1&stx=aechae
jepae님 강좌 - 초보의 [노프레임 무조건 따라하기]
http://www.sir.co.kr/bbs/board.php?bo_table=g4_qa&wr_id=13873
노프레임의 기본적 예시...
참고로
각 파일의 도입부나 종결부의 <?로 시작하고 ?>로 끝맺는 부분은 라이브러리파일과 인클루드파일을 읽어들이는 구문임(필수불가결한)...
노프레임의 주요 파일구성
head.sub.php (일반적으로 html,head,body 속성 지정)
head.php
index.php 또는 기타 임의생성페이지
tail.php
tail.sub.php (html,head,body속성을 끝맺음으로 문서완성)
요 다섯개 파일이 서로 유기적으로 결합되어 한페이지로 보여지는 겁니다...
jepae님 강좌 - 초보의 [노프레임 무조건 따라하기]
http://www.sir.co.kr/bbs/board.php?bo_table=g4_qa&wr_id=13873
노프레임의 기본적 예시...
참고로
각 파일의 도입부나 종결부의 <?로 시작하고 ?>로 끝맺는 부분은 라이브러리파일과 인클루드파일을 읽어들이는 구문임(필수불가결한)...
노프레임의 주요 파일구성
head.sub.php (일반적으로 html,head,body 속성 지정)
head.php
index.php 또는 기타 임의생성페이지
tail.php
tail.sub.php (html,head,body속성을 끝맺음으로 문서완성)
요 다섯개 파일이 서로 유기적으로 결합되어 한페이지로 보여지는 겁니다...
<?
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="<?=$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><img src="<?=$g4['path']?>/img/top_img.gif" width="100%" height="52"></td>
</tr>
</table></td>
</tr>
</table>
이건 다 지워도 됩니다.
디자인을 바꿀때 손볼 파일은 index.php, head.php, tail.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="<?=$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><img src="<?=$g4['path']?>/img/top_img.gif" width="100%" height="52"></td>
</tr>
</table></td>
</tr>
</table>
이건 다 지워도 됩니다.
디자인을 바꿀때 손볼 파일은 index.php, head.php, tail.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="<?=$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><img src="<?=$g4['path']?>/img/top_img.gif" width="100%" height="52"></td>
</tr>
</table></td>
</tr>
</table>
이건 다 지워도 됩니다.
디자인을 바꿀때 손볼 파일은 index.php, head.php, tail.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="<?=$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><img src="<?=$g4['path']?>/img/top_img.gif" width="100%" height="52"></td>
</tr>
</table></td>
</tr>
</table>
이건 다 지워도 됩니다.
디자인을 바꿀때 손볼 파일은 index.php, head.php, tail.php 인데요. <? ?> 이렇게 감싸 있는 부분은 건들지 마시구요. 나머지 부분은 디자인부분이라 맘대로 변경해도 좋지만, 하나씩 하나씩 변경하면서 그때그때 변화하는 결과물을 보면 이해하기가 쉬울 겁니다.