로그인 버튼 링크 질문좀 할게요.
본문
로그인 버튼 및 회원가입버튼 이 두가지를 제가 원하는 링크주소로 가게하려면 어떻게 해야하나요?
<?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$outlogin_skin_url.'/style.css">', 0);
?>
<!-- 로그인 전 아웃로그인 시작 { -->
<link href="style.css" rel="stylesheet" type="text/css" />
<section id="ol_before" class="ol">
<h2>회원로그인</h2>
<form name="foutlogin" action="<?php echo $outlogin_action_url ?>" onsubmit="return fhead_submit(this);" method="post" autocomplete="off">
<fieldset>
<input type="hidden" name="url" value="<?php echo $outlogin_url ?>">
<input type="submit" id="ol_submit" value="로그인">
<div id="ol_svc2"> <a href="<?php echo G5_BBS_URL ?>/register.php">회원 가입</a></div>
<div id="ol_svc2"><a href="<?php echo G5_BBS_URL ?>/password_lost.php" id="ol_password_lost">정보 찾기</a></div>
</fieldset>
</form>
</section>
<script>
$omi = $('#ol_id');
$omp = $('#ol_pw');
$omp.css('display','inline-block').css('width',104);
$omi_label = $('#ol_idlabel');
$omi_label.addClass('ol_idlabel');
$omp_label = $('#ol_pwlabel');
$omp_label.addClass('ol_pwlabel');
$(function() {
$omi.focus(function() {
$omi_label.css('visibility','hidden');
});
$omp.focus(function() {
$omp_label.css('visibility','hidden');
});
$omi.blur(function() {
$this = $(this);
if($this.attr('id') == "ol_id" && $this.attr('value') == "") $omi_label.css('visibility','visible');
});
$omp.blur(function() {
$this = $(this);
if($this.attr('id') == "ol_pw" && $this.attr('value') == "") $omp_label.css('visibility','visible');
});
$("#auto_login").click(function(){
if ($(this).is(":checked")) {
if(!confirm("자동로그인을 사용하시면 다음부터 회원아이디와 비밀번호를 입력하실 필요가 없습니다.\n\n공공장소에서는 개인정보가 유출될 수 있으니 사용을 자제하여 주십시오.\n\n자동로그인을 사용하시겠습니까?"))
return false;
}
});
});
function fhead_submit(f)
{
return true;
}
</script>
<!-- } 로그인 전 아웃로그인 끝 -->
!-->
답변 1
아래 두군데만 링크 수정하면 되겠네요.
action="<?php echo $outlogin_action_url ?>" 를 action=
"로그인URL" 이렇게
<a href=
"<?php echo G5_BBS_URL ?>/register.php"> 를 <a href=
"회원가입 URL"
>
답변을 작성하시기 전에 로그인 해주세요.