외부로그인 설치 문제 > 그누4 질문답변

그누4 질문답변

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

외부로그인 설치 문제 정보

외부로그인 설치 문제

본문

외부로그인 설치문제로 5일째 계속 연구중이에요;;;
글도 올려보구 했지만, 아직 해결 못했습니다 T T
<head> 윗부분에

<?
include_once("./_common.php");
include_once("$g4[path]/lib/outlogin.lib.php"); // outlogin() 함수를 사용하여야 하므로 이 프로그램을 포함시킵니다.

echo outlogin("top_login"); // basic 스킨으로 아웃로그인을 출력합니다.
?>
 적으라고 해서 적었구요.

스킨 넣고 싶은 자리에다가
<? echo outlogin("top_login"); ?>
이렇게 적어놓았어요. ( 그랬더니 php 아이콘이 작게 뜨더라구요.)

다운 받은 스킨은 skin / outlogin 폴더에 넣었습니다.

index.html 파일로 만들어서 올려놓았는데... (아래 코드 참고)
왜 싸이트에는 아무 변화 없이 아무것도 뜨지 않아요. T T
경로가 잘못되었나요? 
index.html 과 Gnuboard4 폴더가 각각 있구요.
index.php 파일 이런거는 없습니다.

아..너무 어려워요 .T T

꼭 해결해야하는 건데... 어떻게 해야할까요?
문제점과 해결책을 꼭 부탁드리겠습니다!!!





---------------------------------------
<html>
<?
include_once("./_common.php");
include_once("$g4[path]/lib/outlogin.lib.php"); // outlogin() 함수를 사용하여야 하므로 이 프로그램을 포함시킵니다.

echo outlogin("top_login"); // basic 스킨으로 아웃로그인을 출력합니다.
?>


<head>
<title>Home</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<style type="text/css">
<!--
body {
background-color: #AABEDF;
}
.style2 {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
}
.style3 {font-size: 12px}
.style4 {font-family: Arial, Helvetica, sans-serif}
-->
</style>

<script type="text/javascript">
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
  if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('images/tob-menu(bk)_03.jpg','images/tob-menu(bk)_05.jpg','images/tob-menu(bk)_07.jpg','images/tob-menu(bk)_09.jpg','images/tob-menu(bk)_11.jpg','images/tob-menu(bk)_13.jpg','images/tob-menu(bk)_15.jpg','images/tob-menu(white)_03.jpg','images/tob-menu(white)_05.jpg','images/tob-menu(white)_07.jpg','images/tob-menu(white)_09.jpg','images/tob-menu(white)_11.jpg','images/tob-menu(white)_13.jpg','images/tob-menu(white)_15.jpg')">
<div align="center">
  <!-- ImageReady Slices (index.psd) -->
  <table id="Table_01" width="1024" height="769" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td colspan="2">
        <a href="index.html"><img src="images/index_01.jpg" alt="" width="253" height="131" border="0"></a></td>
<td colspan="2"><!-- ImageReady Slices (index_02.jpg) -->
  <table id="Table_5" width="771" height="131" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td colspan="3"><img src="images/top-login_01.jpg" width="771" height="9" alt=""></td>
    </tr>
    <tr>
      <td rowspan="2"><img src="images/top-login_02.jpg" width="303" height="122" alt=""></td>
      <td width="418" height="30" background="images/top-login_03.jpg">    <div align="right">
<? echo outlogin("top_login"); ?>

      </div></td>
      <td rowspan="2"><img src="images/top-login_04.jpg" width="50" height="122" alt=""></td>
    </tr>
    <tr>
      <td><img src="images/top-login_05.jpg" width="418" height="92" alt=""></td>
    </tr>
  </table>
  <!-- End ImageReady Slices --></td>
    </tr>
    <tr>
      <td colspan="4"><!-- ImageReady Slices (tob menu.psd) -->
        <table id="Table_" width="1024" height="49" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td colspan="15"><!-- ImageReady Slices (tob menu.psd) -->
              <table id="Table_2" width="1024" height="49" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td colspan="15"><!-- ImageReady Slices (tob menu.psd) -->
                    <table id="Table_3" width="1024" height="49" border="0" cellpadding="0" cellspacing="0">
                      <tr>
                        <td colspan="15"><!-- ImageReady Slices (tob menu.psd) -->
                          <table id="Table_4" width="1024" height="49" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                              <td colspan="15"><img src="images/Top-menu_01.jpg" width="1024" height="14" alt=""></td>
                            </tr>
                            <tr>
                              <td rowspan="2"><img src="images/Top-menu_02.jpg" width="88" height="35" alt=""></td>
                              <td><a href="About us.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image23','','images/tob-menu(white)_03.jpg',1)"><img src="images/Top-menu_03.jpg" name="Image23" width="127" height="27" border="0"></a></td>
                              <td rowspan="2"><img src="images/Top-menu_04.jpg" width="16" height="35" alt=""></td>
                              <td><a href="membershipcard.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image24','','images/tob-menu(white)_05.jpg',1)"><img src="images/Top-menu_05.jpg" name="Image24" width="83" height="27" border="0"></a></td>
                              <td rowspan="2"><img src="images/Top-menu_06.jpg" width="21" height="35" alt=""></td>
                              <td><a href="Comunication.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image25','','images/tob-menu(white)_07.jpg',1)"><img src="images/Top-menu_07.jpg" name="Image25" width="103" height="27" border="0"></a></td>
                              <td rowspan="2"><img src="images/Top-menu_08.jpg" width="17" height="35" alt=""></td>
                              <td><a href="Forum newsletter.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image26','','images/tob-menu(white)_09.jpg',1)"><img src="images/Top-menu_09.jpg" name="Image26" width="124" height="27" border="0"></a></td>
                              <td rowspan="2"><img src="images/Top-menu_10.jpg" width="17" height="35" alt=""></td>
                              <td><a href="Photogallery.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image27','','images/tob-menu(white)_11.jpg',1)"><img src="images/Top-menu_11.jpg" name="Image27" width="95" height="27" border="0"></a></td>
                              <td rowspan="2"><img src="images/Top-menu_12.jpg" width="20" height="35" alt=""></td>
                              <td><a href="system.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image29','','images/tob-menu(white)_13.jpg',1)"><img src="images/Top-menu_13.jpg" name="Image29" width="88" height="27" border="0"></a></td>
                              <td rowspan="2"><img src="images/Top-menu_14.jpg" width="29" height="35" alt=""></td>
                              <td><a href="contact-us.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image28','','images/tob-menu(white)_15.jpg',1)"><img src="images/Top-menu_15.jpg" name="Image28" width="115" height="27" border="0"></a></td>
                              <td rowspan="2"><img src="images/Top-menu_16.jpg" width="81" height="35" alt=""></td>
                            </tr>
                            <tr>
                              <td><img src="images/Top-menu_17.jpg" width="127" height="8" alt=""></td>
                              <td><img src="images/Top-menu_18.jpg" width="83" height="8" alt=""></td>
                              <td><img src="images/Top-menu_19.jpg" width="103" height="8" alt=""></td>
                              <td><img src="images/Top-menu_20.jpg" width="124" height="8" alt=""></td>
                              <td><img src="images/Top-menu_21.jpg" width="95" height="8" alt=""></td>
                              <td><img src="images/Top-menu_22.jpg" width="88" height="8" alt=""></td>
                              <td><img src="images/Top-menu_23.jpg" width="115" height="8" alt=""></td>
                            </tr>
                          </table>
                          <!-- End ImageReady Slices --></td>
                      </tr>
                    </table>
                  <!-- End ImageReady Slices --></td>
                </tr>
              </table>
            <!-- End ImageReady Slices --></td>
          </tr>
        </table>
      <!-- End ImageReady Slices --></td>
  </tr>
    <tr>
      <td colspan="4">
        <img src="images/index_04.jpg" width="1024" height="10" alt=""></td>
  </tr>
    <tr>
      <td width="81" rowspan="2">
        <img src="images/index_05.jpg" width="81" height="578" alt=""></td>
    <td colspan="2"><embed src="images/main flash.swf" width="543" height="343"></embed></td>
      <td width="400" background="images/index_07.jpg"><table width="349" border="0" cellspacing="00" cellpadding="00">
          <tr>
            <th width="21" scope="col">&nbsp;</th>
            <th width="379" scope="col"><p align="left">&nbsp;</p>
        Click!</a></span><br>
              </p></th>
          </tr>
        </table>       <p><br>
          <br>
          <br>
          </p>        </td>
  </tr>
    <tr>
      <td colspan="3">
        <img src="images/index_08.jpg" alt="" width="943" height="235" border="0" usemap="#Map"></td>
  </tr>
    <tr>
      <td>
        <img src="images/spacer.gif" width="81" height="1" alt=""></td>
    <td width="172">
    <img src="images/spacer.gif" width="172" height="1" alt=""></td>
    <td width="371">
    <img src="images/spacer.gif" width="371" height="1" alt=""></td>
    <td>
    <img src="images/spacer.gif" width="400" height="1" alt=""></td>
  </tr>
  </table>
  <!-- End ImageReady Slices -->
</div>

<map name="Map"><area shape="rect" coords="600,11,884,136" href="http://cafe.daum.net/forumnews" target="_blank">
<area shape="rect" coords="301,11,588,136" href="Photogallery.html">
<area shape="rect" coords="2,13,285,133" href="images/membership card.rtf" target="_blank">
</map></body>
</html>
  • 복사

댓글 전체

해드에
echo outlogin("top_login"); // basic 스킨으로 아웃로그인을 출력합니다.
이 부분은 필요없습니다.

그리고 index.html파일이 있는곳에 _common.php 이 파일이 존재하는지 확인하시고요.
존재한다면, 파일내의 common.php 의 경로르 확인해 보세요.

index.html파일이 있는곳에 _common.php 이 파일이 없다면, 그누보드에서 _common.php 이 파일을 카피해서 index.html파일에 있는곳에 붙이기 하시고, 열어서 안에 common.php의 경로를 지정해주세요.

참고하세요.
저는 상기와 같이하여 사용하고 있습니다.
경로가 잘못되었나요? 
index.html 과 Gnuboard4 폴더가 각각 있구요. <----그렇습니다 경로 설정 오류 입니다
삼식이님 답변과 같습니다
조금 구체적으로 설명 하자면
1. Gnuboard4 폴더에 들어있는 _common.php를 복사해서 index.html 이 들어있는 폴더에 넣으세요
2. 복사해온 _common.php를 열어서 아래처럼 수정하세요
$g4_path="./Gnuboard4";
© SIRSOFT
현재 페이지 제일 처음으로