|
|
|
20년 전
|
조회 1,210
|
|
|
|
20년 전
|
조회 833
|
|
|
|
20년 전
|
조회 1,033
|
|
|
|
20년 전
|
조회 837
|
|
|
|
20년 전
|
조회 787
|
|
|
|
20년 전
|
조회 711
|
|
|
|
20년 전
|
조회 757
|
|
|
|
20년 전
|
조회 733
|
|
|
|
20년 전
|
조회 1,146
|
|
|
|
20년 전
|
조회 742
|
|
|
|
20년 전
|
조회 846
|
|
|
|
20년 전
|
조회 912
|
|
|
|
20년 전
|
조회 825
|
|
|
|
20년 전
|
조회 833
|
|
|
|
20년 전
|
조회 709
|
|
|
|
20년 전
|
조회 707
|
|
|
|
20년 전
|
조회 852
|
|
|
|
20년 전
|
조회 749
|
|
|
|
20년 전
|
조회 632
|
|
|
|
20년 전
|
조회 666
|
댓글 6개
<? if ($w == 'r') //답글일경우
$sql = " select * from gb_write_{$bo_table}_cat order by ca_id ";
$result = sql_query($sql);
while ($row = mysql_fetch_array($result)) {
if( $row[ca_id] == $write[ca_id]){
echo "<option value='$row[ca_id]'>$row[ca_name]</option>\n";
}
}
mysql_free_result($result);
} else?>
<select name=ca_id>
<option value=''>선택하세요<?=$category_option?></select></td></tr><?}} ?>
이상............. 수고
<? if ($is_category) { ?><tr><td><img src='<?=$board_skin?>/icon_nemo.gif' width=7 height=7 align=absmiddle> 분 류</td><td><? if ($w == 'r') //답글일경우 ?>
<input type=hidden name=ca_id value='<?=$write[ca_id]?>'>
<?} else?>
<select name=ca_id>
<option value=''>선택하세요<?=$category_option?></select></td></tr><?}} ?>
======================================================================================================
이런 방법도 있네요..
스킨 파일 건들기...
gbform.skin.php
======================================================================================================
<? if ($is_category) { ?><tr><td><img src='<?=$board_skin?>/icon_nemo.gif' width=7 height=7 align=absmiddle> 분 류</td><td><select name=ca_id><option value=''>선택하세요<?=$category_option?></select></td></tr><? } ?>
======================================================================================================
이부분을
======================================================================================================
<? if ($is_category) { ?><tr><td><img src='<?=$board_skin?>/icon_nemo.gif' width=7 height=7 align=absmiddle> 분 류</td><td><select name=ca_id>
<? if ($w == 'r') //답글일경우 ?>
<option value='3'>답변</option>
<?} else {?>
<option value=''>선택하세요<?=$category_option?></select></td></tr><?} } ?>
======================================================================================================
이런방법으로 해두 될것 같네요..
} else if ($w == 'r') {
// 최대 답변은 $cfg[reply_max] 단계까지
$ca_id = 3 ; // 1 일반 2 질문 3 답변 4 알림 추가.
214번째 보시면
} else if ($w == 'r') {
// 최대 답변은 $cfg[reply_max] 단계까지
===================================================
답변일경우 등록되는 란입니다 여기에서...
$ca_id = 3 ; // 1 일반 2 질문 3 답변 4 알림
요거만 출력하면 될듯싶은데요..
어떤 답글을 쓰던지 원글과 카테고리가 같아야 답변이 등록되게 한다(답글 쓴 사람이 카테고리를 못 바꾸도록)는 의미거든요.......그런 방법은 없을까요??