급급급!!!이걸 수정해주시면 고급 긴팔티 보냅니다.(3번째)포인트1000 정보
급급급!!!이걸 수정해주시면 고급 긴팔티 보냅니다.(3번째)포인트1000본문
안녕하십니까.
초짜가 되서 자꾸 질문만 드립니다.
아래는 디폴트로 된 head.php파일내용입니다.
활성화된 메뉴가 있는 top.htm 을 상단에 넣으려면 어디를 수정해야 하는지요?
참고로 http://유알엘/top.htm가 경로입니다.
아래 이나기님께서 자세히 써주셨는데 제가 웅칸 초짜라서 여러방법을 시도했지만 도저히 top.htm이 얼굴을
드러내지 않네요.이나기님께서 갈켜주신대로,
상단배경시작 -아래에
include_once("$g4[http://url]/top.htm");
이렇게 했는데 그냥 목석같은 gif만 덜렁하니 -_-
이걸 수정해 주시면 고급 메탈나염이 들어간 긴팔티를 한장 보내 드리겠습니다.
원단도 고급이고 제연령이 입기엔 머해서 넣어둔...샘플입니다.
부탁좀 드립니다.
<?
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 = 1004;
?> <!-- 상단 배경 시작 -->
<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']?>/top.htm" width="100%" height="52"></td> </tr> </table></td> </tr> </table> <!-- 상단 배경 끝 --> <!-- 상단 로고 및 버튼 시작 -->
<table width="<?=$table_width?>" cellspacing="0" cellpadding="0"> <tr> <td width="43" height="57"></td> <!-- 로고 --> <td width="220"><a href="<?=$g4['path']?>/"><img src="<?=$g4['path']?>/img/logo.jpg" width="220" height="57" border="0"></a></td> <td> <table width=100% border=0 cellpadding=0 cellspacing=0> <tr> <td> </td> </tr> </table> </td> <td width="390" align="right"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <!-- 처음으로 버튼 --> <td width="78"><a href="<?=$g4['path']?>/"><img src="<?=$g4['path']?>/img/top_m01.gif" width="78" height="31" border="0"></a></td> <? if (!$member['mb_id']) { ?>
<!-- 로그인 이전 --> <td width="78"><a href="<?=$g4['bbs_path']?>/login.php?url=<?=$urlencode?>"><img src="<?=$g4['path']?>/img/top_m02.gif" width="78" height="31" border="0"></a></td> <td width="78"><a href="<?=$g4['bbs_path']?>/register.php"><img src="<?=$g4['path']?>/img/top_m03.gif" width="78" height="31" border="0"></a></td> <? } else { ?> <!-- 로그인 이후 --> <td width="78"><a href="<?=$g4['bbs_path']?>/logout.php"><img src="<?=$g4['path']?>/img/top_m04.gif" width="78" height="31" border="0"></a></td> <td width="78"><a href="<?=$g4['bbs_path']?>/member_confirm.php?url=register_form.php"><img src="<?=$g4['path']?>/img/top_m05.gif" width="78" height="31" border="0"></a></td> <? } ?> <!-- 최근게시물 버튼 --> <td width="78"><a href="<?=$g4['bbs_path']?>/new.php"><img src="<?=$g4['path']?>/img/top_m06.gif" width="78" height="31" border="0"></a></td> </tr>
</table></td> <td width="35"></td> </tr> </table> <!-- 상단 로고 및 버튼 끝 --> <!-- 검색 시작 -->
<table width="<?=$table_width?>" cellspacing="0" cellpadding="0"> <tr> <td width="43" height="11"></td> <td width="220"></td> <td width=""></td> <td width="234"><img src="<?=$g4['path']?>/img/search_top.gif" width="234" height="11"></td> <td width="35"></td> </tr> <tr> <td height="33"><img src="<?=$g4['path']?>/img/bar_01.gif" width="43" height="33"></td> <td><img src="<?=$g4['path']?>/img/bar_02.gif" width="220" height="33"></td> <td background="<?=$g4['path']?>/img/bar_03.gif" width="472" height="33"><table width=100% cellpadding=0 cellspacing=0><tr><td width=25> </td><td><?//=popular();?></td></tr></table></td> <td> <table width="100%" height="33" cellspacing="0" cellpadding="0"> <form name="fsearchbox" method="get" action="javascript:fsearchbox_submit(document.fsearchbox);"> <!-- <input type="hidden" name="sfl" value="concat(wr_subject,wr_content)"> --> <input type="hidden" name="sfl" value="wr_subject||wr_content"> <input type="hidden" name="sop" value="and"> <tr> <td width="25" height="25"><img src="<?=$g4['path']?>/img/search_01.gif" width="25" height="25"></td> <td width="136" valign="middle" bgcolor="#F4F4F4"><INPUT name="stx" maxlengt=20 style="BORDER : 0px solid; width: 125px; HEIGHT: 20px; BACKGROUND-COLOR: #F4F4F4" maxlength="20"></td> <td width="12"><img src="<?=$g4['path']?>/img/search_02.gif" width="12" height="25"></td> <td width="48"><input type="image" src="<?=$g4['path']?>/img/search_button.gif" width="48" height="25" border="0"></td> <td width="13"><img src="<?=$g4['path']?>/img/search_03.gif" width="13" height="25"></td> </tr> <tr> <td width="234" height="8" colspan="5"><img src="<?=$g4['path']?>/img/search_down.gif" width="234" height="8"></td> </tr> </form> </table></td> <td></td> </tr> </table> <script language="JavaScript">
function fsearchbox_submit(f) { if (f.stx.value == '') { alert("검색어를 입력하세요."); f.stx.select(); f.stx.focus(); return; } /*
// 검색에 많은 부하가 걸리는 경우 이 주석을 제거하세요. var cnt = 0; for (var i=0; i<f.stx.value.length; i++) { if (f.stx.value.charAt(i) == ' ') cnt++; } if (cnt > 1)
{ alert("빠른 검색을 위하여 검색어에 공백은 한개만 입력할 수 있습니다."); f.stx.select(); f.stx.focus(); return; } */ f.action = "<?=$g4['bbs_path']?>/search.php";
f.submit(); } </script> <!-- 검색 끝 --> <div style='height:18px;'></div>
<style type="text/css">
#middiv { width:<?=$table_width?>px; position:relative; margin:0px auto; vertical-align:top; float:left; } #middiv #mleft { width:220px; float:left; padding:0 0 0 43; } #middiv #mright { width:683px; float:left; padding:0 0 0 15; } </style> <table width='<?=$table_width?>' cellpadding=0 cellspacing=0 border=0>
<tr> <td width=43></td> <!-- 왼쪽 메뉴 --> <td width=220 valign=top> <?=outlogin("basic"); // 외부 로그인 ?> <div style='height:10px;'></div>
<?=poll("basic"); // 설문조사 ?>
<div style='height:10px;'></div>
<?=visit("basic"); // 방문자수 ?>
<div style='height:10px;'></div>
<?=connect(); // 현재 접속자수 ?> </td> <td width=18></td> <!-- 중간 --> <td width=683 valign=top> |
댓글 전체

include_once("$g4[http://url]/top.htm"); 의 $g4[http://url]/ 가 뭔가요?? ㅡ_ㅡ;;
$g4[http://url] 는 정의되지 않은 변수에요.. $g4[path] 라고 하시면 이 변수가 알아서 그누보드가 설치된 경로를 알려주죠. 즉, $g4[path]/top.htm 하시면 되요.
$g4[http://url] 는 정의되지 않은 변수에요.. $g4[path] 라고 하시면 이 변수가 알아서 그누보드가 설치된 경로를 알려주죠. 즉, $g4[path]/top.htm 하시면 되요.

아, 제가 질문을 잘못 이해했군요. 그러니까 head.php 에 top.htm 을 인클루드하고싶으신거죠? 상단배경이라고 써있는 주석 밑에다가 <? include_once("$g4[path]/top.htm"); ?> 를 그대로 복사. 붙여넣기 해보세요.
그러니까
<!-- 상단 배경 시작 -->
<? include_once("$g4[path]/top.htm"); ?>
<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']?>/top.htm" width="100%" height="52"></td>
</tr>
</table></td>
</tr>
</table>
<!-- 상단 배경 끝 -->
이렇게 되겠죠^0^
그러니까
<!-- 상단 배경 시작 -->
<? include_once("$g4[path]/top.htm"); ?>
<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']?>/top.htm" width="100%" height="52"></td>
</tr>
</table></td>
</tr>
</table>
<!-- 상단 배경 끝 -->
이렇게 되겠죠^0^

이렇게 더운날 긴팔티라니..
한두달 보관하다 압어도 좋으란큼 괜찮은 팁니다.
계절은 여름만 있는게 아님을 아실터...
계절은 여름만 있는게 아님을 아실터...
다시한번 해 보겠지만 위의 방법두 다해봤습니다.
[path]안의 url은 이리저리해봐도 않되서리...제가 도스 세대라...
[path]안의 url은 이리저리해봐도 않되서리...제가 도스 세대라...

확장자를 php 로 변경하시고.
top.htm -> top.php
<?
include_once("./_common.php");
include_once("$g4[path]/top.php");
?>
http://morssola.com/bbs/board.php?bo_table=g4_homepage&wr_id=5
top.htm -> top.php
<?
include_once("./_common.php");
include_once("$g4[path]/top.php");
?>
http://morssola.com/bbs/board.php?bo_table=g4_homepage&wr_id=5