회원 로그인시 글쓰기 화면에서 이름, 이메일 나오게 하는 방법

매출이 오르면 내리는 수수료! 지금 수수료센터에서 전자결제(PG)수수료 비교견적 신청해 보세요!
회원 로그인시 글쓰기 화면에서 이름, 이메일 나오게 하는 방법

QA

회원 로그인시 글쓰기 화면에서 이름, 이메일 나오게 하는 방법

답변 1

본문

현재 회원 로그인 후 게시판 글쓰기를 할때 글쓴이의 편의를 위해서 이름하고 이메일 등은 숨겨져 나오는데

로그인된 경우에도 이름과 이메일 부분이 나오게 하고 수정도 되게 하려면 어떻게 해야 하나요?

 

선배님들의 답변 좀 부탁 드립니다^^

 

이 질문에 댓글 쓰기 :

답변 1

        <?php if ($is_name) { ?>
            <label for="wr_name" class="sound_only">이름<strong>필수</strong></label>
            <input type="text" name="wr_name" value="<?php echo $name ?>" id="wr_name" required class="frm_input half_input required" placeholder="이름">
        <?php } ?>
    

    
        <?php if ($is_email) { ?>
            <label for="wr_email" class="sound_only">이메일</label>
            <input type="text" name="wr_email" value="<?php echo $email ?>" id="wr_email" class="frm_input half_input email " placeholder="이메일">
        <?php } ?>


스킨에서 위 부분을 아래처럼 바꿔 보세요

            <label for="wr_name" class="sound_only">이름<strong>필수</strong></label>
            <input type="text" name="wr_name" value="<?php echo $name ?>" id="wr_name" required class="frm_input half_input required" placeholder="이름">

    

            <label for="wr_email" class="sound_only">이메일</label>
            <input type="text" name="wr_email" value="<?php echo $email ?>" id="wr_email" class="frm_input half_input email " placeholder="이메일">

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
filter #html ×
전체 1,110
© SIRSOFT
현재 페이지 제일 처음으로