로그인 된 상태 회원가입문제... 정보
로그인 된 상태 회원가입문제...본문
아웃로그인을 설치하고 회원가입 버튼을 별도로 만들었습니다.
아웃로그인창에는 회원가입 버튼을 빼고요..
회원가입 버튼이 너무 작아 잘안보여서요..
회원가입 버튼은 새창으로 열리게 했고요.
그런데 로그인이 된 상태에서 회원가입 버튼을 클릭하면 메인페이지가 보여 집니다.
로그인된 상태에서 회원가입을 클릭하면 회원가입이 되었다는 팝업 메세지로 보여지게
할수 있는 방법을 찾습니다.
****회원가입 버튼*******
<a href="javascript:pop_win('/bbs/register.php') ;" onfocus='this.blur()'><img src="s_img/sub008_l0.gif" width="260" height="56" border="0"></a></td>
<script>
function pop_win(url){
window.open(url,"join","width=700, height=700,scrollbars=yes");
}
</script>
function pop_win(url){
window.open(url,"join","width=700, height=700,scrollbars=yes");
}
</script>
*****************************************
도움 부탁 드립니다.
감사합니다.
댓글 전체

관련구문
lib/common.lib.php의 141줄 부근
// 경고메세지 출력후 창을 닫음
function alert_close($msg)
{
global $g4;
echo "<meta http-equiv=\"content-type\" content=\"text/html; charset=$g4[charset]\">";
echo "<script language='javascript'> alert('$msg'); window.close(); </script>";
exit;
}
팝업으로 띄우는 register.php의 상단에
// 로그인중인 경우 회원가입 할 수 없습니다.
if ($member[mb_id])
goto_url($g4[path]);
를
if($member[mb_id]) {
alert_close("이미 회원에 가입하셨습니다");
}
정도로 바꾸어 주세요...
lib/common.lib.php의 141줄 부근
// 경고메세지 출력후 창을 닫음
function alert_close($msg)
{
global $g4;
echo "<meta http-equiv=\"content-type\" content=\"text/html; charset=$g4[charset]\">";
echo "<script language='javascript'> alert('$msg'); window.close(); </script>";
exit;
}
팝업으로 띄우는 register.php의 상단에
// 로그인중인 경우 회원가입 할 수 없습니다.
if ($member[mb_id])
goto_url($g4[path]);
를
if($member[mb_id]) {
alert_close("이미 회원에 가입하셨습니다");
}
정도로 바꾸어 주세요...
천상재회님 고맙습니다.
매번 도움만 받네요....감사합니다.
매번 도움만 받네요....감사합니다.

잘 되시면 제가 감사하지요....행복한 오후 보내세요....