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

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,706
8년 전 조회 7,516
8년 전 조회 8,485
8년 전 조회 8,219
8년 전 조회 4,404
8년 전 조회 4,397
8년 전 조회 4,324
8년 전 조회 9,367
8년 전 조회 4,704
8년 전 조회 4,338
8년 전 조회 4,919
8년 전 조회 7,048
8년 전 조회 7,283
8년 전 조회 4,722
8년 전 조회 5,799
8년 전 조회 5,438
8년 전 조회 4,403
8년 전 조회 5,751
8년 전 조회 5,084
8년 전 조회 7,935
8년 전 조회 4,597
8년 전 조회 8,356
8년 전 조회 7,844
8년 전 조회 6,252
8년 전 조회 4,329
8년 전 조회 4,774
8년 전 조회 3,585
8년 전 조회 5,625
8년 전 조회 5,556
8년 전 조회 3,867