테스트 사이트 - 개발 중인 베타 버전입니다

게시글에 아이디가 노출되었으면 합니다. 채택완료

모토라 4년 전 조회 2,153

https://sir.kr/qa/411602

위에 질문에서 이어지는데 자신의 이름을 눌렀을때 이런저런 기능이 나오는 것 외에도

그냥 이름 옆에 아이디가 노출되었으면 합니다.

저렇게 이름이랑 아이피 사이에 아이디도 노출되어 있으면 하는데 방법을 모르겠습니다.

 

html/skin/board/gallery/view.skin.php에서

 

 

</strong></p>

<p> <section id="bo_v_info">

        <h2>페이지 정보</h2>

        <div class="profile_info">

            <div class="pf_img"><?php echo get_member_profile_img($view['mb_id']) ?></div>

            <div class="profile_info_ct">

<span style="color:#e74c3c;">                <span class="sound_only">작성자</span> <strong><?php echo $view['name'] ?><?php if ($is_ip_view) { echo " ($ip)"; } ?></strong>
</span>

                    <span class="sound_only">댓글</span><strong><a href="#bo_vc"> <i class="fa fa-commenting-o" aria-hidden="true"></i> <?php echo number_format($view['wr_comment']) ?>건</a></strong>

                <span class="sound_only">조회</span><strong><i class="fa fa-eye" aria-hidden="true"></i> <?php echo number_format($view['wr_hit']) ?>회</strong>

                <strong class="if_date"><span class="sound_only">작성일</span><i class="fa fa-clock-o" aria-hidden="true"></i> <?php echo date("y-m-d H:i", strtotime($view['wr_datetime'])) ?></strong>

            </div>

        </div>

 </p>

<p><strong>

 

저 작성자 부분을 수정하면 될거 같은데 id나 mb_id 같은걸 넣어도 안되네요.

도와주셨으면 합니다. 감사합니다.

댓글을 작성하려면 로그인이 필요합니다.

답변 1개

채택된 답변
+20 포인트
쿠디java
4년 전

그 소스에 정답이있는데 ㅎㅎ

view.skin.php 파일에서

작성자 출력분 아이피 출력문 사이에

<?php echo $view['mb_id'] ?>

넣으세요

 

이렇게 잘나오네요

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

모토라
4년 전
엌ㅋㅋㅋㅋ 엄청 쉬웠네요 ㅋㅋㅋㅋㅋ감사합니다~

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인