아웃로그인이랑 게시판을 같이 쓰는 방법.. 정보
아웃로그인이랑 게시판을 같이 쓰는 방법..본문
매번 질문 제목을 뭐라고 해야 할지 모르겠네요;

위 화면처럼 분명히 로그인 상태인데도, 게시판은 로그인 상태를 인식하는데
(오른쪽이 게시판. write 버튼도 나오고 관리화면 링크도 뜹니다.)
왼쪽 아웃로그인 폼은 로그인 상태를 인식하지 못하네요.
디렉토리 구조는요
/home/gzine/v4 <-- 그누보드4가 설치된 디렉토리
|/site_punk <-- 제작중인 웹페이지가 있는곳
이렇게 되어있고요. /home/gzine/ 까지가 도메인에 연결되는 내부 경로 입니다.
그누보드가 설치된 디렉토리 밖에 웹페이지가 있는 디렉토리가 있는 식입니다.
일단 site_punk 안에 _common.php 를 만들고 그 내용을
<?
$g4_path = "/home/gzine/v4"; include_once("$g4_path/common.php");
?>
이렇게 했구요.
화면에 나와있는 게시판 설정에 들어가서
이렇게 설정했고요.
(pxt 확장자는 집에서 돌리는 개인 서버인데... 서버 주인장이 좀 특이한 분이라... 어쨋든 php랑 똑같다고 하시더군요.)
site_punk 디렉토리 안에 있는 punk_bdhead.pxt 파일의 내용은..
-----------------------------------------------------------------------------------
<?
include './_common.php';
include_once("$g4[path]/lib/outlogin.lib.php");
?>
include './_common.php';
include_once("$g4[path]/lib/outlogin.lib.php");
?>
<? $srv_ip='218.239.84.159'; ?>
<? $navbar_style='spring'; ?>
<? $navbar_style='spring'; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ko" lang="ko">
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr" />
<meta name="description" content="#" />
<meta name="keywords" content="#" />
<meta name="author" content="#" />
<link rel="stylesheet" type="text/css" href="http://www.gzine.net/site_punk/slammers_style_o_bd.css" media="screen" />
<title>제작중</title>
</head>
<body background='#DCDAC5'>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ko" lang="ko">
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr" />
<meta name="description" content="#" />
<meta name="keywords" content="#" />
<meta name="author" content="#" />
<link rel="stylesheet" type="text/css" href="http://www.gzine.net/site_punk/slammers_style_o_bd.css" media="screen" />
<title>제작중</title>
</head>
<body background='#DCDAC5'>
<div class="wrap clearfix">
<? include 'http://www.gzine.net/site_punk/menu.pxt';?>
<div class="rightarea clearfix">
<table width=515 border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
-----------------------------------------------------------------------------------
<table width=515 border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
-----------------------------------------------------------------------------------
같은 디렉토리의 punk_bdfoot.pxt 내용은
-----------------------------------------------------------------------------------
<?
include './_common.php';
include_once("$g4[path]/lib/outlogin.lib.php");
?>
include './_common.php';
include_once("$g4[path]/lib/outlogin.lib.php");
?>
</td>
</tr>
</table>
</tr>
</table>
</div>
<div class="leftnav clearfix" id="grey" bgcolor='#DCDAC5'>
<?=outlogin("basic_scrathblack")?>
<strong>알림››</strong><br />
<span class="news_date">날짜</span><br />
내용을 <a href="#">링크하기</a>
<?=outlogin("basic_scrathblack")?>
<strong>알림››</strong><br />
<span class="news_date">날짜</span><br />
내용을 <a href="#">링크하기</a>
<p><span class="news_date">날짜</span><br />
내용을 조심스럽게 쓰기
</p>
내용을 조심스럽게 쓰기
</p>
</div>
</div>
</body>
</html>
-----------------------------------------------------------------------------------
</div>
</body>
</html>
-----------------------------------------------------------------------------------
이정도입니다.
어디서 놓치고 있는걸까요...조언을 좀 주세요 ㅠㅠ
댓글 전체
http://sir.co.kr/bbs/tb.php/g4_qa/19854 이 글 코멘트에
config.php 파일 열어보시면 주석이 잘 되어있어요...^^
$g4[cookie_domain] = "도메인명";
======
이게 아니라면
outlogin() 함수를 head 쪽에 써 주세요.
만약 그래서 된다면 그누 보드를 수정해야겠네요.
게시판 관련 작업이 끝난 다음에 punk_bdfoot.pxt(<?=outlogin("basic_scrathblack")?>)를 실행하는데
outlogin() 안에서 멤버 관련 정보를 가져오지 못하나 봅니다.
config.php 파일 열어보시면 주석이 잘 되어있어요...^^
$g4[cookie_domain] = "도메인명";
======
이게 아니라면
outlogin() 함수를 head 쪽에 써 주세요.
만약 그래서 된다면 그누 보드를 수정해야겠네요.
게시판 관련 작업이 끝난 다음에 punk_bdfoot.pxt(<?=outlogin("basic_scrathblack")?>)를 실행하는데
outlogin() 안에서 멤버 관련 정보를 가져오지 못하나 봅니다.
답변 고맙습니다...
config.php 파일의 해당 부분도 바로 설정해 뒀구요
outlogin()을 punk_bdhead.pxt 쪽에 써줬더니 역시 그대로 입니다;
좀 더 머리 싸매고 고민해 보겠습니다 ㅠㅠ
config.php 파일의 해당 부분도 바로 설정해 뒀구요
outlogin()을 punk_bdhead.pxt 쪽에 써줬더니 역시 그대로 입니다;
좀 더 머리 싸매고 고민해 보겠습니다 ㅠㅠ