메인화면에 그누보드 로그인창 삽입 방법좀 > 그누4 질문답변

그누4 질문답변

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

메인화면에 그누보드 로그인창 삽입 방법좀 정보

메인화면에 그누보드 로그인창 삽입 방법좀

본문

왕초보입니다.
index1.php 페이지 좌측에 그누보드 로그인 화면을 삽입하려는데 다음과 같은 오류메세지가 납니다.

<오류메세지>
g4_path 변수가 선언되지 않았습니다. js/capslock.js

그리고 로그인을 하면 로그인 화면이 두아래로 두개가 나와요
소스 확인좀 부탁드려요
<?php
$g4_path = "./gnuboard4";
include_once( "$g4_path/common.php" );
include_once( "$g4[path]/lib/outlogin.lib.php" );
?>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>koomin가족 커뮤니티</title>
<link rel="shortcut icon" href="./images/hyico.ico">
</head>
<body leftmargin="0" topmargin="0">
<div align="center" style="width:0px; margin:auto;">
<table align="center" width="1024" border="0" cellspacing="0" cellpadding="0" style="position:relative; width:1024px; left:50%; margin-left:-512px;">
<tr>
<td colspan="8" height="138" background="./images/header.jpg"></td>
</tr>
 <tr>
<td height="38" width="57" bgcolor="black"></td>
<td width="130">ㅙㅡㄷ</td>
<td width="135">ㄴㄴㄴㄴㄴ</td>
<td width="163">ㅇㄷㄷㄷㄷ</td>
<td width="166">ㄷㄷㄷㄷ</td>
<td width="156">ㄷㄷㄷㄷ</td>
<td width="131">ㄷㄷㄷㄷㄷ</td>
<td width="86" bgcolor="black"></td>
</tr>

<!-- 메인부분시작 -->
<?=outlogin("basic")?>
<tr>
<td colspan="8">
 <table width="909" height="500" border="0" cellspacing="0" cellpadding="0">
  <tr>
<td valign="top" width="350">
<table width="290" border="0" cellspacing="0" cellpadding="0">
    <tr>
<td width="300" height="190">
  <iframe src="http://zzang29s.cafe24.com/test.php"

frameborder="0" width="300" height="200" scrolling="no"></iframe>
              </td>
</tr>
</table>
</td>
<td background="./images/mainbg.jpg" width="669"></td>
  </tr>
 </table>
</td>
</tr>

<!-- 메인부분끝 -->

<tr>
<td colspan="8" height="73" background="./images/footer.jpg"></td>
</tr>

</table>
<div align="center"></div>
</div>
</body>
</html>
  • 복사

댓글 전체

상단부에 include_once("$g4[path]/head.sub.php"); 추가해주시고요~
로그인 출력 부분을 아이프레임 쓰지 마시고 <?=outlogin("basic"); // 외부 로그인 ?>
기본 head.php 파일 소스 참조하시면 도움이 될거예요~
© SIRSOFT
현재 페이지 제일 처음으로