회원가입 페이지를 새창으로

1. head 와 tail 내용 제거

/bbs/register.php
/bbs/register_form.php
/bbs/register_result.php

위 3개의 파일에서
_head.php 는 이렇게 수정하고

// include_once('./_head.php');
include_once('./_head.sub.php');

_tail.php 는 이렇게 수정

// include_once('./_tail.php');
include_once('./_tail.sub.php');


2. 회원가입 결과 register_result.skin.php 파일 수정

skin/member/basic/register_result.skin.php

<a href="<?php echo G5_URL ?>/" class="btn02">메인으로</a>
윗부분을 이렇게 수정
<a href="javascript:window.close();" class="btn02">창닫기</a>


3. 회원 가입 링크 수정

head.php 파일에서는 이렇게 수정
<a href="<?php echo G5_BBS_URL ?>/register.php" target="_blank" class="win_register">회원가입</a>

skin/outlogin/basic/outlogin.skin.1.php 파일에서도 이렇게 수정
<a href="<?php echo G5_BBS_URL ?>/register.php" target="_blank" class="win_register"><b>회원가입</b></a>


4. js/common.js 파일 수정

/**
* 포인트 창
**/
var win_point = function(href) {
var new_win = window.open(href, 'win_point', 'left=100,top=100,width=600, height=600, scrollbars=1');
new_win.focus();
}

위 내용 바로 아래에 이렇게 추가

/**
* 회원가입 창
**/
var win_register = function(href) {
var new_win = window.open(href, 'win_register', 'left=100,top=100,width=800,height=700,scrollbars=1');
new_win.focus();
}

같은 파일에서 좀 더 아래에 있는

$(".win_point").click(function() {
win_point(this.href);
return false;
});

위 내용을 찾은 후 그 밑에 이렇게 추가

$(".win_register").click(function() {
win_register(this.href);
return false;
});
|

댓글 3개

감사합니다.
감사합니다!! 적용해보니까잘되네요~
댓글을 작성하시려면 로그인이 필요합니다.

그누보드5 팁자료실

+
제목 글쓴이 날짜 조회
8년 전 조회 5,647
8년 전 조회 7,457
8년 전 조회 8,408
8년 전 조회 8,155
8년 전 조회 4,344
8년 전 조회 4,340
8년 전 조회 4,260
8년 전 조회 9,282
8년 전 조회 4,644
8년 전 조회 4,292
8년 전 조회 4,868
8년 전 조회 6,971
8년 전 조회 7,228
8년 전 조회 4,663
8년 전 조회 5,741
8년 전 조회 5,377
8년 전 조회 4,348
8년 전 조회 5,694
8년 전 조회 5,028
8년 전 조회 7,878
8년 전 조회 4,538
8년 전 조회 8,307
8년 전 조회 7,785
8년 전 조회 6,197
8년 전 조회 4,270
8년 전 조회 4,708
8년 전 조회 3,521
8년 전 조회 5,573
8년 전 조회 5,493
8년 전 조회 3,804