그누보드 [G5] 회원가입시 받은 추가필드의 내용을 게시판 내용보기와 코멘트에서도 사용하기
페이지 정보
본문
1. 그누보드5 / skin / board / 폴더 / view.skin.php
<section id="bo_v_info">
<h2>페이지 정보</h2>
밑에 내용 추가
<div class="tbl_frm01 tbl_wrap">
<table>
<tbody>
<?php
$HPsql = "select * from {$g5['member_table']} where mb_id='". $view['mb_id']."' ";
$HPresult = sql_query($HPsql);
$HProw = sql_fetch_array($HPresult);
$Lmb_1 = $HProw['mb_1'];
$Lmb_2 = $HProw['mb_2'];
?>
<tr>
<th scope="row">추가필드1</th>
<td><?php echo $Lmb_1; ?></td>
<th scope="row">추가필드2</th>
<td><?php echo $Lmb_2; ?></td>
<th scope="row">추가필드3</th>
<td><?php echo $Lmb_3; ?></td>
</tr>
<?php
?>
</tbody>
</table>
</div>
2. 그누보드5 / skin / board / 폴더 / view_comment_skin.php
<h1><?php echo get_text($list[$i]['wr_name']); ?>님의 댓글</h1>
을 아래와 같이 내용 추가
<h1><?php echo get_text($list[$i]['wr_name']); ?>님의 댓글</h1>
<?php
$HPmb_1 = "";
$HPmb_2 = "";
$HPsql = "select * from {$g5['member_table']} where mb_id='". $list[$i]['mb_id']."' ";
$HPresult = sql_query($HPsql);
$HProw = sql_fetch_array($HPresult);
$HPmb_1 = $HProw['mb_1'];
$HPmb_2 = $HProw['mb_2'];
?>
추가필드1 <input type="text" name="mb_1" value="<?php echo $HPmb_1; ?>" style="width:150px;" class="frm_input" readonly>
추가필드2 <input type="text" name="mb_2" value="<?php echo $HPmb_2; ?>" style="width:150px;" class="frm_input" readonly>
추가필드3 <input type="text" name="mb_3" value="<?php echo $HPmb_3; ?>" style="width:150px;" class="frm_input" readonly> <br>
<?php
?>
<section id="bo_v_info">
<h2>페이지 정보</h2>
밑에 내용 추가
<div class="tbl_frm01 tbl_wrap">
<table>
<tbody>
<?php
$HPsql = "select * from {$g5['member_table']} where mb_id='". $view['mb_id']."' ";
$HPresult = sql_query($HPsql);
$HProw = sql_fetch_array($HPresult);
$Lmb_1 = $HProw['mb_1'];
$Lmb_2 = $HProw['mb_2'];
?>
<tr>
<th scope="row">추가필드1</th>
<td><?php echo $Lmb_1; ?></td>
<th scope="row">추가필드2</th>
<td><?php echo $Lmb_2; ?></td>
<th scope="row">추가필드3</th>
<td><?php echo $Lmb_3; ?></td>
</tr>
<?php
?>
</tbody>
</table>
</div>
2. 그누보드5 / skin / board / 폴더 / view_comment_skin.php
<h1><?php echo get_text($list[$i]['wr_name']); ?>님의 댓글</h1>
을 아래와 같이 내용 추가
<h1><?php echo get_text($list[$i]['wr_name']); ?>님의 댓글</h1>
<?php
$HPmb_1 = "";
$HPmb_2 = "";
$HPsql = "select * from {$g5['member_table']} where mb_id='". $list[$i]['mb_id']."' ";
$HPresult = sql_query($HPsql);
$HProw = sql_fetch_array($HPresult);
$HPmb_1 = $HProw['mb_1'];
$HPmb_2 = $HProw['mb_2'];
?>
추가필드1 <input type="text" name="mb_1" value="<?php echo $HPmb_1; ?>" style="width:150px;" class="frm_input" readonly>
추가필드2 <input type="text" name="mb_2" value="<?php echo $HPmb_2; ?>" style="width:150px;" class="frm_input" readonly>
추가필드3 <input type="text" name="mb_3" value="<?php echo $HPmb_3; ?>" style="width:150px;" class="frm_input" readonly> <br>
<?php
?>
댓글목록
등록된 댓글이 없습니다.