가로 로그인 설치시 테이블이 100%가 됩니다 ㅠ > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

가로 로그인 설치시 테이블이 100%가 됩니다 ㅠ 정보

가로 로그인 설치시 테이블이 100%가 됩니다 ㅠ

본문

안녕하세요 ^^
그누보드 만지작 거린지 얼마 되지 않은 초짜입니다 (php 자체도 영 모릅니다 ㅠ_ㅠ)
힘들게 검색해가며 하고 있는데..
두시간째 검색해 보아도 답이 없습니다 ㅠ_ㅠ
 
그러니까 증상은 이렇습니다.
http://www.4bal2.net 이라는 홈페이지인데,
메인페이지(index.php)와 같은 가로폭을 유지하고 싶은데,
가로 로그인만 설치하면(http://www.4bal2.net/gnuboard4//bbs/board.php?bo_table=intro) 옆으로 100%가 되어버립니다.
 
먼저 head.php 파일은,
 
<?
include_once("./_common.php");
include_once("gnuboard4/lib/latest.lib.php");
include_once("gnuboard4/lib/outlogin.lib.php");
?>
<html>
<head>
<style type="text/css">
a:link {color:white; text-decoration:none; }
a:visited {color:white; text-decoration:none; }
a:active {color:white; text-decoration:none; }
a:hover {color:white; text-decoration:underline; }
a.menu:link {color:white; text-decoration:none; }
a.menu:visited {color:white; text-decoration:none; }
a.menu:active {color:white; text-decoration:none; }
a.menu:hover {color:white; text-decoration:underline; }
</style>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<title>사발이.넷</title>
<meta name="generator" content="Namo WebEditor v6.0">
</head>
<body bgcolor="black" text="black" link="blue" vlink="purple" alink="red">
<p align="center"><a href="http://www.4bal2.net"><img src="http://www.4bal2.net/icon/logo.gif" border="0" width="172" height="64"></a></p>
<table cellspacing="0" style="border-collapse:collapse;" width="760" align="center">
    <tr>
        <td width="939" style="border-width:1; border-color:black; border-style:none;" bgcolor="#999999" colspan="3">
            <p align="center"><font size="2" face="돋움" color="white"><a href="/gnuboard4//bbs/board.php?bo_table=intro" class="menu">공지사항</a>  |  <a href="/gnuboard4//bbs/board.php?bo_table=diary" class="menu">주행일지</a>  |  <a href="/gnuboard4//bbs/board.php?bo_table=movie" class="menu">동영상</a>  |  <a href="/gnuboard4//bbs/board.php?bo_table=qna" class="menu">질문답변</a>  |  <a href="/gnuboard4//bbs/board.php?bo_table=free" class="menu">자유게시판</a>  |  <a href="/gnuboard4//bbs/board.php?bo_table=tip" class="menu">유용한 정보</a>  |  <a href="/gnuboard4//bbs/board.php?bo_table=product" class="menu">제품 소개</a>  |  <a href="/gnuboard4//bbs/board.php?bo_table=course" class="menu">코스 소개</a>  |  <a href="/gnuboard4//bbs/board.php?bo_table=market" class="menu">중고시장</a><br> </font></p>
</td>
    </tr>
 <tr>
  <div align="center" width=540><? echo outlogin("shop_outlogin"); ?><div align="center"></div>
 </tr>
 <td>
 
 
 
그리고 아웃로긴 스킨의 outlogin.skin.1.php 는
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<script type="text/javascript" language=JavaScript>
// 엠파스 로긴 참고
var bReset = true;
function chkReset(f)
{
    if (bReset) { if ( f.mb_id.value == '아이디' ) f.mb_id.value = ''; bReset = false; }
    document.getElementById("pw1").style.display = "none";
    document.getElementById("pw2").style.display = "";
}
</script>
<table width="540" border="0" cellspacing="0" cellpadding="0" align="center">
<form name="fhead" method="post" action="javascript:fhead_submit(document.fhead);" autocomplete="off">
<input type="hidden" name="url" value="<?=$urlencode?>">
  <tr>
    <td><img src='<?=$outlogin_skin_path?>/img/icon_id.gif'></td>
    <td width="105"><input class=ed00 name="mb_id" type="text" style=width:105; maxlength="20"  value='아이디' onMouseOver='chkReset(this.form);' onFocus='chkReset(this.form);' ></td>
    <td><img src='<?=$outlogin_skin_path?>/img/icon_pw.gif'></td>
                    <td width="110" id=pw1><input class=ed00 type="text"  style=width:105; maxlength="20"  value='패스워드' onMouseOver='chkReset(this.form);' onfocus='chkReset(this.form);'>
    <td width="110" id=pw2 style='display:none;'><input class=ed00 name="mb_password" type="password"  style=width:105; maxlength="20"  onMouseOver='chkReset(this.form);' onfocus='chkReset(this.form);'></td>
    <td><input name="image" type=image src='<?=$outlogin_skin_path?>/img/btn_login.gif' border=0></td>
    <td><a href="<?=$g4[bbs_path]?>/register.php"><img src='<?=$outlogin_skin_path?>/img/btn_join.gif' border=0></a></td>
    <td><a href="javascript:win_password_forget();"><img src='<?=$outlogin_skin_path?>/img/btn_find.gif' border=0></a></td>
  </tr>
  </form>
</table>
<script language="JavaScript">
function fhead_submit(f)
{
    if (!f.mb_id.value)
    {
        alert("회원아이디를 입력하십시오.");
        f.mb_id.focus();
        return;
    }
    if (document.getElementById('pw2').style.display!='none' && !f.mb_password.value)
    {
        alert("패스워드를 입력하십시오.");
        f.mb_password.focus();
        return;
    }
    f.action = "<?=$g4[bbs_path]?>/login_check.php";
    f.submit();
}
</script>
 
 
outloginskin2 는
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width="534" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="30"> </td>
    <td><font color="#C9E9EC">
      <?=$nick?>
    </font>님
    <? if ($is_admin == "super" || $is_auth) { ?>
    <a href="<?=$g4[admin_path]?>/"><img src="<?=$outlogin_skin_path?>/img/admin.gif" border="0" align="absmiddle"></a>
    <? } ?></td>
    <td><a href="javascript:win_point();"><font color="#C9E9EC">포인트 : <b>
      <?=$point?>
    </b> 점</font></a></td>
    <td><a href="<?=$g4[bbs_path]?>/logout.php"><img src='<?=$outlogin_skin_path?>/img/btn_logout.gif' border=0></a> <a href="<?=$g4[bbs_path]?>/member_confirm.php?url=register_form.php"><img src='<?=$outlogin_skin_path?>/img/btn_modify.gif' border=0></a></td>
    <td> </td>
    <td><a href="javascript:win_memo();"><font color="#C9E9EC">쪽지 (
          <?=$memo_not_read?>
    )</font></a></td>
    <td><a href="javascript:win_scrap();"><img src='<?=$outlogin_skin_path?>/img/btn_scrap.gif' border=0 align=absmiddle></a></td>
  </tr>
</table>
이렇습니다.
부디 도와주세요 ㅠ_ㅠ

댓글 전체

head.php파일과 tail.php파일 소스를 함께 올려주세요
그누는

head.sub.php
head.php  --> 상단과 왼쪽 부분
게시판 또는 HTML페이지(가운데)
tail.php  -> 오른쪽과 하단부분
tail.sub.php

위 순서대로 합쳐서 하나의 페이지가 됩니다.
tail.php 내용입니다.

</td>
</tr>
    <tr>
        <td bgcolor="white"><P align="center"><font size="2">CopyLeft 2006 (C) http://www.4bal2.net All Rights
Reserved</font></P></td>
    </tr>
</table>
<p align="center">&nbsp;</p>
</body>

</html>

코멘트 감사합니다~ ㅠ_ㅠ
아차차.. 그리고 테일.php 에서 그 copyleft 적은 부분.. td bgcolor="white" 라고 적어놓았는데도 어쩐일인지 아웃로긴을 넣으면 배경이 그냥 까맣게 됩니다 ㅠ_ㅠ
홈페이지를 보니까 가로 100%가 아니고 중앙 정열일 뿐입니다.
왼쪽으로 하고 싶다면 다음 처럼  고치세요.

그리고 아웃로긴 스킨의 outlogin.skin.1.php 는
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
.
..
...
<table width="540" border="0" cellspacing="0" cellpadding="0" align="center">

여기 center를 left로
bgcolor=white추가




outloginskin2 는
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width="534" border="0" cellspacing="0" cellpadding="0">

위에서 처럼 align=center 추가, bgcolor=white추가
먼저 답변에 진심으로 감사드립니다 ^-^ (--)(_)꾸벅.
제가 올린 질문을 찬찬히 다시 읽어보니 제가 질문을 잘못 올린 것 같네요 ^^;
먼저 제 질문의 요지는,
아웃로긴 스킨이 100% 가 된다는 것이 아니라 게시판 전체의 폭이 100%가 되어버린다는 말이었습니다.
아웃로긴이 없으면 "http://www.4bal2.net/gnuboard4//bbs/board.php?bo_table=diary" 와 같이 게시판이 나오는데, 아웃로긴을 집어넣으면 "http://www.4bal2.net/gnuboard4//bbs/board.php?bo_table=movie" 와 같이 게시판이 가로로 100% 퍼져서 나와버립니다.

배경색 white 로 만드는 것은 아웃로긴 스킨이 아니라 foot.php(=tail.php) 파일의 "Copyleft..." 부분이 들어가는 테이블의 배경색이었답니다. (이것도 아직 해결되지 않고 있습니다 ㅠ 이상하게 아웃로긴만 넣으면 배경색이 꺼매집니다)

다시한번 조언 부탁드립니다 ~ 감사합니다 ^^
아래 foot.php 의 배경색 white 로 만드는 것은 해결했습니다.

</table>
</td>
</tr>
    <tr>
        <td><table bgcolor="white" align="center" width=760><tr><td><P align="center"><font size="2">CopyLeft 2006 (C) http://www.4bal2.net All Rights
Reserved</font></P></td></tr></table></td>
    </tr>
</table>
<p align="center">&nbsp;</p>
</body>

</html>

즉, 테이블 안에 테이블을 한개 더 만들어서 해결을 보았습니다.
비슷한 방법으로 아웃로긴시 100%가 되어버리는 게시판 가로사이즈도 해결이 될듯 한데
저만 어려워 하는 것일까요 ㅠ_ㅠ
안녕하세요 ^^ 게시판 가로 크기는 760으로 되어 있습니다.
현재 해결은 하였으나 근본적인 해결은 못했습니다.
원래 대부분의 게시판 스킨은 가로폭이 100%로 되어 있는데, 그걸 억지로 760으로 지정하여 해결했습니다.
근본적인 해결책이 아니기 때문에 스킨을 바꾸게 되면 또 그 스킨을 수정해야 하는 단점이 있지만 ^^:
어쨋든 외형상 문제는 없기 때문에 이대로 써볼려구요.
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT