회원가입폼을 페이지 내부에 넣고 싶습니다.
그누보드 잠시 접고 있다가 오랫만에 관찰했는데 버전업이 너무 빠르다는 생각이 듭니다.
참고로 저는 그누보드 폴더를(gnu) 만들지 않고 루트에 설치하였습니다.
--------질문내용--------
http://envy.rootda.org/login.html 여기로 접속해보시면 아시겠지만 에러가 뜹니다.
해당페이지에 중간부 영역에 <? include($gnu_path . 'bbs/outlogin.php'); ?> 추가를 했을뿐입니다.
페이지 상단에 아래내용 인클루드 되어 있구요.
<?
$gnu_path = "./";
include($gnu_path . 'config.php');
include($gnu_path . 'lib.php');
$html_title = "∴∵MACROSS ZERO∴∵";
include($gnu_path . 'head.sub.php');
?>
mbform.php 파일에서 헤더가 인클루드 되지 않도록 아래와 같이 주석처리했습니다.
include 'head.sub.php';
//include 'head.php';
// 자동등록방지
include "norobot.php";
include_once "$member_skin/mbform.skin.php";
//include 'tail.php';
//include 'tail.sub.php';
?>
이렇게 해보니까 위 접속주소 가보시면 아시겠지만 lib.php 에서 890번 라인 에러가 납니다.
에러내용은 다음과 같습니다.
Warning: Cannot modify header information - headers already sent by (output started at /home/envy/www/head.sub.php:30) in /home/envy/www/lib.php on line 890
Warning: Cannot modify header information - headers already sent by (output started at /home/envy/www/head.sub.php:30) in /home/envy/www/lib.php on line 891
Warning: Cannot modify header information - headers already sent by (output started at /home/envy/www/head.sub.php:30) in /home/envy/www/lib.php on line 892
Warning: Cannot modify header information - headers already sent by (output started at /home/envy/www/head.sub.php:30) in /home/envy/www/lib.php on line 893
lib.php 파일의 그 라인 찾아가서 주석처리해봤는데 에러내용은 뜨지 않으나 역시 기능상 문제가 -_-;;
// header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
// header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
// header("cache-contril: no-cache,must-revalidate");
// header("pragma: no-cache") ;
아이디 중복확인이라던지 기타 창 띄워서 확인하는부분이 안되는 것입니다!!
어떻게 쉽게 하는방법이 있는지.. 어떻게 하면 되는건지 잘 모르겠습니다.
그누보드는 미리 정해진 양식에서 만들어 간다면 간단하게 완성되겠지만 제가 이미 html 페이지를 만들고 거기에 맞춰서 끼워 넣을려니 뭘 어케 해야하는지 잘 모르겠습니다. 제자신이 답답하기만 하군요.
꼭 해결답변이 나오길 빌겠습니다.
그럼 좋은하루 보내세요.
참고로 저는 그누보드 폴더를(gnu) 만들지 않고 루트에 설치하였습니다.
--------질문내용--------
http://envy.rootda.org/login.html 여기로 접속해보시면 아시겠지만 에러가 뜹니다.
해당페이지에 중간부 영역에 <? include($gnu_path . 'bbs/outlogin.php'); ?> 추가를 했을뿐입니다.
페이지 상단에 아래내용 인클루드 되어 있구요.
<?
$gnu_path = "./";
include($gnu_path . 'config.php');
include($gnu_path . 'lib.php');
$html_title = "∴∵MACROSS ZERO∴∵";
include($gnu_path . 'head.sub.php');
?>
mbform.php 파일에서 헤더가 인클루드 되지 않도록 아래와 같이 주석처리했습니다.
include 'head.sub.php';
//include 'head.php';
// 자동등록방지
include "norobot.php";
include_once "$member_skin/mbform.skin.php";
//include 'tail.php';
//include 'tail.sub.php';
?>
이렇게 해보니까 위 접속주소 가보시면 아시겠지만 lib.php 에서 890번 라인 에러가 납니다.
에러내용은 다음과 같습니다.
Warning: Cannot modify header information - headers already sent by (output started at /home/envy/www/head.sub.php:30) in /home/envy/www/lib.php on line 890
Warning: Cannot modify header information - headers already sent by (output started at /home/envy/www/head.sub.php:30) in /home/envy/www/lib.php on line 891
Warning: Cannot modify header information - headers already sent by (output started at /home/envy/www/head.sub.php:30) in /home/envy/www/lib.php on line 892
Warning: Cannot modify header information - headers already sent by (output started at /home/envy/www/head.sub.php:30) in /home/envy/www/lib.php on line 893
lib.php 파일의 그 라인 찾아가서 주석처리해봤는데 에러내용은 뜨지 않으나 역시 기능상 문제가 -_-;;
// header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
// header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
// header("cache-contril: no-cache,must-revalidate");
// header("pragma: no-cache") ;
아이디 중복확인이라던지 기타 창 띄워서 확인하는부분이 안되는 것입니다!!
어떻게 쉽게 하는방법이 있는지.. 어떻게 하면 되는건지 잘 모르겠습니다.
그누보드는 미리 정해진 양식에서 만들어 간다면 간단하게 완성되겠지만 제가 이미 html 페이지를 만들고 거기에 맞춰서 끼워 넣을려니 뭘 어케 해야하는지 잘 모르겠습니다. 제자신이 답답하기만 하군요.
꼭 해결답변이 나오길 빌겠습니다.
그럼 좋은하루 보내세요.
|
댓글을 작성하시려면 로그인이 필요합니다.
로그인
댓글 2개
때문에.. 회원가입을 특정페이지 내에 넣고 싶으시다면,
mbform.php 의 하단에서 인클루드하는
include 'head.sub.php';
include 'head.php'
include 'tail.php';
include 'tail.sub.php';
을 수정하시면 됩니다.
또는 위 파일들을 참고하셔서 파일을 따로 만드신 후에..
다른 이름(head.*.php, tail.*.php 식으로..)으로 올리시고
위의 부분을 그 이름으로 수정하시면 됩니다.
다른 이름으로 만드실 때 주의하실 점은..
tail.*.php 에는 반드시
<script language='JavaScript' src='<?=$gnu_path?>wrest.js'></script>
를 포함시켜 주시고..
head.*.php 에는
<?
$gmnow = gmdate('D, d M Y H:i:s') . ' GMT';
header('Expires: 0'); // rfc2616 - Section 14.21
header('Last-Modified: ' . $gmnow);
header('Cache-Control: no-store, no-cache, must-revalidate'); // HTTP/1.1
header('Cache-Control: pre-check=0, post-check=0, max-age=0'); // HTTP/1.1
header('Pragma: no-cache'); // HTTP/1.0
*/
// 쪽지가 전달되었나?
if ($member[mb_memo_call_mb_id]) {
$mb = get_member($member[mb_memo_call_mb_id]);
$sql = " update $cfg[table_member]
set mb_memo_call_mb_id = ''
where mb_id = '$member[mb_id]' ";
sql_query_error($sql);
alert("{$mb[mb_name]}($member[mb_memo_call_mb_id])님으로부터 쪽지가 전달되었습니다.", $HTTP_SERVER_VARS[REQUEST_URI]);
}
?>
롤 포함시키셔야 합니다.
그것만 지켜진다면, 아무런 문제없이 이미 만들어진 홈페이지 내부에
그누보드를 동작시킬 수 있습니다.