코멘트창 기본으로 열려 있게.... 정보
코멘트창 기본으로 열려 있게....본문
제가쓰는 스킨이 코멘트 창이 기본으로 닫혀 있습니다.
열어 놓으려면 어떻게 해야 할까요
http://cafe3.ktdom.com/thailove/gb/bbs/board.php?bo_table=qna_thai&wr_id=734
<!-- 코멘트 리스트 -->
<?
for ($i=0; $i<count($list); $i++) {
$comment_id = $list[$i][wr_id];
?>
<a name="c_<?=$comment_id?>"></a>
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td valign=top><? for ($k=0; $k<strlen($list[$i][wr_comment_reply]); $k++) echo " "; ?></td>
<td width='100%'>
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="10" ><img src="<?=$board_skin_path?>/img/left_top.gif" width="10" height="10"></td>
<td colspan="2" background="<?=$board_skin_path?>/img/width_bg_top.gif"></td>
<td width="10" ><img src="<?=$board_skin_path?>/img/right_top.gif" width="10" height="10"></td>
</tr>
<tr>
<td rowspan="2" bordercolor="#CCCCCC" background="<?=$board_skin_path?>/img/left_bg.gif"></td>
<td width="40%" align="left" valign="top" bgcolor="#f7f7f7" class='vc_pad1'><?=$list[$i][name]?><? if ($is_ip_view) { echo " ({$list[$i][ip]})"; } ?></td>
<td width="60%" align="right" valign="top" bgcolor="#f7f7f7" class='vc_pad1'>
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width='' height=16 align=right>
<!-- <?=$list[$i][wr_comment_reply]?> -->
<? if ($list[$i][is_reply]) { echo "<a href=\"javascript:comment_box('{$comment_id}', 'c');\"><img src='$board_skin_path/img/btn_comment_reply.gif' border=0 align=absmiddle></a> "; } ?>
<? if ($list[$i][is_edit]) { echo "<a href=\"javascript:comment_box('{$comment_id}', 'cu');\"><img src='$board_skin_path/img/btn_comment_update.gif' border=0 align=absmiddle></a> "; } ?>
<? if ($list[$i][is_del]) { echo "<a href=\"javascript:comment_delete('{$list[$i][del_link]}');\"><img src='$board_skin_path/img/btn_comment_delete.gif' border=0 align=absmiddle></a> "; } ?>
<td width="110" align="right" valign="bottom" style="PADDING-RIGHT: 5px"><font class="mystyle"><?=$list[$i][datetime]?></FONT></td>
</tr>
</table></td>
<td rowspan="2" bordercolor="#CCCCCC" background="<?=$board_skin_path?>/img/right_bg.gif"></td>
</tr>
<tr>
<td colspan="2" align="left" bgcolor="#FFFFFF" class='vc_pad1' height="50" style='word-break:break-all;'>
<!-- 코멘트 출력 -->
<span class="vc_content"><?=$list[$i][content]?></span>
<? if ($list[$i][trackback]) { echo "<p>".$list[$i][trackback]."</p>"; } ?>
<textarea id='save_comment_<?=$comment_id?>' style='display:none;'><?=get_text($list[$i][wr_content], 0)?></textarea>
<span id='edit_<?=$comment_id?>' style='display:none;'></span><!-- 수정 -->
<span id='reply_<?=$comment_id?>' style='display:none;'></span><!-- 답변 -->
</td>
</tr>
<tr>
<td width="10"><img src="<?=$board_skin_path?>/img/left_down.gif" width="10" height="10"></td>
<td colspan="2" background="<?=$board_skin_path?>/img/width_bg_down.gif"></td>
<td width="10"><img src="<?=$board_skin_path?>/img/right_down.gif" width="10" height="10"></td>
</tr>
</table></td>
</tr>
</table>
<br>
<? } ?>
<!-- 코멘트 리스트 -->
<? if ($is_comment_write) { ?>
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td height=30 align=right><a href="javascript:comment_box('', 'c');"><img src='<?=$board_skin_path?>/img/btn_comment_insert.gif' border=0 align=absmiddle></a></td>
</tr>
<tr>
<td>
<!-- 코멘트 입력테이블시작 -->
<span id=comment_write style='display:none;'>
<form name="fviewcomment" method="post" action="./write_comment_update.php" onsubmit="return fviewcomment_submit(this);" autocomplete="off">
<input type=hidden name=w id=w value='c'>
<input type=hidden name=bo_table value='<?=$bo_table?>'>
<input type=hidden name=wr_id value='<?=$wr_id?>'>
<input type=hidden name=comment_id id='comment_id' value=''>
<input type=hidden name=sfl value='<?=$sfl?>' >
<input type=hidden name=stx value='<?=$stx?>'>
<input type=hidden name=spt value='<?=$spt?>'>
<input type=hidden name=page value='<?=$page?>'>
<input type=hidden name=cwin value='<?=$cwin?>'>
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="10" ><img src="<?=$board_skin_path?>/img/left_top.gif" width="10" height="10"></td>
<td colspan="3" background="<?=$board_skin_path?>/img/width_bg_top.gif"></td>
<td width="10" ><img src="<?=$board_skin_path?>/img/right_top.gif" width="10" height="10"></td>
</tr>
<tr>
<td width="10" background="<?=$board_skin_path?>/img/left_bg.gif" > </td>
<td colspan='2' width='60%' bgcolor="#f7f7f7">
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width=50% valign=bottom>
<SPAN style="CURSOR: pointer;" onclick="textarea_decrease('wr_content', 10);"><img src="<?=$board_skin_path?>/img/up.gif" width="16" height="16"></SPAN>
<SPAN style="CURSOR: pointer;" onclick="textarea_original('wr_content', 10);"><img src="<?=$board_skin_path?>/img/start.gif" width="16" height="16"></SPAN>
<SPAN style="CURSOR: pointer;" onclick="textarea_increase('wr_content', 10);"><img src="<?=$board_skin_path?>/img/down.gif" width="16" height="16"></SPAN>
</td>
<td width=50% class=mystyle align=right><span id=char_count></span>글자</td>
</tr>
</table></td>
<td bgcolor="#f7f7f7"></td>
<td width="10" background="<?=$board_skin_path?>/img/right_bg.gif" > </td>
</tr>
<tr>
<td bordercolor="#CCCCCC" background="<?=$board_skin_path?>/img/left_bg.gif"></td>
<td colspan="2" align="left" valign="top" bgcolor="#f7f7f7" class='vc_pad1'>
<TEXTAREA id='wr_content' name='wr_content' class='vc_textarea' rows="10" itemname="내용" required ONKEYUP="check_byte('wr_content', 'char_count');"></TEXTAREA>
<script language="JavaScript"> check_byte('wr_content', 'char_count'); </script>
</td>
<td align="center" valign="middle" bgcolor="#f7f7f7">
<? if ($is_guest) { ?>
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td width="80" height="20" align="right"><font class="mystyle">이름</FONT></td>
<td><INPUT type=text maxLength=20 size=15 name="wr_name" itemname="이름" required></td>
</tr>
<tr>
<td width="80" height="20" align="right"><font class="mystyle">패스워드</FONT></td>
<td><INPUT type=password maxLength=20 size=15 name="wr_password" itemname="패스워드" required></td>
</tr>
<tr>
<td width="80" height="20" align="right"><font class="mystyle">이메일</FONT></td>
<td><INPUT type=text maxLength="100" name="wr_email" itemname="E-mail" email></td>
</tr>
<tr>
<td width="80" height="20" align="right"><font class="mystyle">홈페이지</FONT></td>
<td><INPUT type=text maxLength="100" name="wr_homepage" itemname="홈페이지"></td>
</tr>
<? if ($is_norobot) { ?>
<tr>
<td width="80" height="20" align="right"><?=$norobot_str?></td>
<td><INPUT title="왼쪽의 글자중 빨간글자만 순서대로 입력하세요." type="input" name="wr_key" itemname="자동등록방지" required></td>
</tr>
<? } ?>
</table>
<? } ?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><INPUT type="image" width="80" height="25" src="<?=$board_skin_path?>/img/ok_button.gif" border=0 accesskey='s'></td>
</tr>
</table></td>
<td bordercolor="#CCCCCC" background="<?=$board_skin_path?>/img/right_bg.gif"></td>
</tr>
<tr>
<td width="10" ><img src="<?=$board_skin_path?>/img/left_down.gif" width="10" height="10"></td>
<td colspan="3" background="<?=$board_skin_path?>/img/width_bg_down.gif"></td>
<td width="10" ><img src="<?=$board_skin_path?>/img/right_down.gif" width="10" height="10"></td>
</tr>
</table>
</form>
</span>
<!-- 코멘트 입력 테이블 끝 -->
</td>
</tr>
</table>
열어 놓으려면 어떻게 해야 할까요
http://cafe3.ktdom.com/thailove/gb/bbs/board.php?bo_table=qna_thai&wr_id=734
<!-- 코멘트 리스트 -->
<?
for ($i=0; $i<count($list); $i++) {
$comment_id = $list[$i][wr_id];
?>
<a name="c_<?=$comment_id?>"></a>
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td valign=top><? for ($k=0; $k<strlen($list[$i][wr_comment_reply]); $k++) echo " "; ?></td>
<td width='100%'>
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="10" ><img src="<?=$board_skin_path?>/img/left_top.gif" width="10" height="10"></td>
<td colspan="2" background="<?=$board_skin_path?>/img/width_bg_top.gif"></td>
<td width="10" ><img src="<?=$board_skin_path?>/img/right_top.gif" width="10" height="10"></td>
</tr>
<tr>
<td rowspan="2" bordercolor="#CCCCCC" background="<?=$board_skin_path?>/img/left_bg.gif"></td>
<td width="40%" align="left" valign="top" bgcolor="#f7f7f7" class='vc_pad1'><?=$list[$i][name]?><? if ($is_ip_view) { echo " ({$list[$i][ip]})"; } ?></td>
<td width="60%" align="right" valign="top" bgcolor="#f7f7f7" class='vc_pad1'>
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width='' height=16 align=right>
<!-- <?=$list[$i][wr_comment_reply]?> -->
<? if ($list[$i][is_reply]) { echo "<a href=\"javascript:comment_box('{$comment_id}', 'c');\"><img src='$board_skin_path/img/btn_comment_reply.gif' border=0 align=absmiddle></a> "; } ?>
<? if ($list[$i][is_edit]) { echo "<a href=\"javascript:comment_box('{$comment_id}', 'cu');\"><img src='$board_skin_path/img/btn_comment_update.gif' border=0 align=absmiddle></a> "; } ?>
<? if ($list[$i][is_del]) { echo "<a href=\"javascript:comment_delete('{$list[$i][del_link]}');\"><img src='$board_skin_path/img/btn_comment_delete.gif' border=0 align=absmiddle></a> "; } ?>
<td width="110" align="right" valign="bottom" style="PADDING-RIGHT: 5px"><font class="mystyle"><?=$list[$i][datetime]?></FONT></td>
</tr>
</table></td>
<td rowspan="2" bordercolor="#CCCCCC" background="<?=$board_skin_path?>/img/right_bg.gif"></td>
</tr>
<tr>
<td colspan="2" align="left" bgcolor="#FFFFFF" class='vc_pad1' height="50" style='word-break:break-all;'>
<!-- 코멘트 출력 -->
<span class="vc_content"><?=$list[$i][content]?></span>
<? if ($list[$i][trackback]) { echo "<p>".$list[$i][trackback]."</p>"; } ?>
<textarea id='save_comment_<?=$comment_id?>' style='display:none;'><?=get_text($list[$i][wr_content], 0)?></textarea>
<span id='edit_<?=$comment_id?>' style='display:none;'></span><!-- 수정 -->
<span id='reply_<?=$comment_id?>' style='display:none;'></span><!-- 답변 -->
</td>
</tr>
<tr>
<td width="10"><img src="<?=$board_skin_path?>/img/left_down.gif" width="10" height="10"></td>
<td colspan="2" background="<?=$board_skin_path?>/img/width_bg_down.gif"></td>
<td width="10"><img src="<?=$board_skin_path?>/img/right_down.gif" width="10" height="10"></td>
</tr>
</table></td>
</tr>
</table>
<br>
<? } ?>
<!-- 코멘트 리스트 -->
<? if ($is_comment_write) { ?>
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td height=30 align=right><a href="javascript:comment_box('', 'c');"><img src='<?=$board_skin_path?>/img/btn_comment_insert.gif' border=0 align=absmiddle></a></td>
</tr>
<tr>
<td>
<!-- 코멘트 입력테이블시작 -->
<span id=comment_write style='display:none;'>
<form name="fviewcomment" method="post" action="./write_comment_update.php" onsubmit="return fviewcomment_submit(this);" autocomplete="off">
<input type=hidden name=w id=w value='c'>
<input type=hidden name=bo_table value='<?=$bo_table?>'>
<input type=hidden name=wr_id value='<?=$wr_id?>'>
<input type=hidden name=comment_id id='comment_id' value=''>
<input type=hidden name=sfl value='<?=$sfl?>' >
<input type=hidden name=stx value='<?=$stx?>'>
<input type=hidden name=spt value='<?=$spt?>'>
<input type=hidden name=page value='<?=$page?>'>
<input type=hidden name=cwin value='<?=$cwin?>'>
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="10" ><img src="<?=$board_skin_path?>/img/left_top.gif" width="10" height="10"></td>
<td colspan="3" background="<?=$board_skin_path?>/img/width_bg_top.gif"></td>
<td width="10" ><img src="<?=$board_skin_path?>/img/right_top.gif" width="10" height="10"></td>
</tr>
<tr>
<td width="10" background="<?=$board_skin_path?>/img/left_bg.gif" > </td>
<td colspan='2' width='60%' bgcolor="#f7f7f7">
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width=50% valign=bottom>
<SPAN style="CURSOR: pointer;" onclick="textarea_decrease('wr_content', 10);"><img src="<?=$board_skin_path?>/img/up.gif" width="16" height="16"></SPAN>
<SPAN style="CURSOR: pointer;" onclick="textarea_original('wr_content', 10);"><img src="<?=$board_skin_path?>/img/start.gif" width="16" height="16"></SPAN>
<SPAN style="CURSOR: pointer;" onclick="textarea_increase('wr_content', 10);"><img src="<?=$board_skin_path?>/img/down.gif" width="16" height="16"></SPAN>
</td>
<td width=50% class=mystyle align=right><span id=char_count></span>글자</td>
</tr>
</table></td>
<td bgcolor="#f7f7f7"></td>
<td width="10" background="<?=$board_skin_path?>/img/right_bg.gif" > </td>
</tr>
<tr>
<td bordercolor="#CCCCCC" background="<?=$board_skin_path?>/img/left_bg.gif"></td>
<td colspan="2" align="left" valign="top" bgcolor="#f7f7f7" class='vc_pad1'>
<TEXTAREA id='wr_content' name='wr_content' class='vc_textarea' rows="10" itemname="내용" required ONKEYUP="check_byte('wr_content', 'char_count');"></TEXTAREA>
<script language="JavaScript"> check_byte('wr_content', 'char_count'); </script>
</td>
<td align="center" valign="middle" bgcolor="#f7f7f7">
<? if ($is_guest) { ?>
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td width="80" height="20" align="right"><font class="mystyle">이름</FONT></td>
<td><INPUT type=text maxLength=20 size=15 name="wr_name" itemname="이름" required></td>
</tr>
<tr>
<td width="80" height="20" align="right"><font class="mystyle">패스워드</FONT></td>
<td><INPUT type=password maxLength=20 size=15 name="wr_password" itemname="패스워드" required></td>
</tr>
<tr>
<td width="80" height="20" align="right"><font class="mystyle">이메일</FONT></td>
<td><INPUT type=text maxLength="100" name="wr_email" itemname="E-mail" email></td>
</tr>
<tr>
<td width="80" height="20" align="right"><font class="mystyle">홈페이지</FONT></td>
<td><INPUT type=text maxLength="100" name="wr_homepage" itemname="홈페이지"></td>
</tr>
<? if ($is_norobot) { ?>
<tr>
<td width="80" height="20" align="right"><?=$norobot_str?></td>
<td><INPUT title="왼쪽의 글자중 빨간글자만 순서대로 입력하세요." type="input" name="wr_key" itemname="자동등록방지" required></td>
</tr>
<? } ?>
</table>
<? } ?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><INPUT type="image" width="80" height="25" src="<?=$board_skin_path?>/img/ok_button.gif" border=0 accesskey='s'></td>
</tr>
</table></td>
<td bordercolor="#CCCCCC" background="<?=$board_skin_path?>/img/right_bg.gif"></td>
</tr>
<tr>
<td width="10" ><img src="<?=$board_skin_path?>/img/left_down.gif" width="10" height="10"></td>
<td colspan="3" background="<?=$board_skin_path?>/img/width_bg_down.gif"></td>
<td width="10" ><img src="<?=$board_skin_path?>/img/right_down.gif" width="10" height="10"></td>
</tr>
</table>
</form>
</span>
<!-- 코멘트 입력 테이블 끝 -->
</td>
</tr>
</table>
댓글 전체

게시판관리에서 댓글쓰기 권한을 낮추어 보세요....^^
댓글쓰기 권한은 1입니다. 비회원

비회원가능권한인데 왜그런가 모르겠네요...
일단 이곳저곳을 확인해봐야 할것 같긴한데
그냥
<? if ($is_comment_write) { ?>
을
<?
$is_comment_write =1;
if ($is_comment_write) {
?>
로 바꿔보세요..
일단 이곳저곳을 확인해봐야 할것 같긴한데
그냥
<? if ($is_comment_write) { ?>
을
<?
$is_comment_write =1;
if ($is_comment_write) {
?>
로 바꿔보세요..
자바스크립트로 버튼을 눌렀을때 쓰기 창이 열리게끔 되어있는것 같은데... 어디를 수정해 줘야 할지....
기본 스킨과 비교...!

<span id=comment_write style='display:none;'>
이부분을 수정해 보세요.
이부분을 수정해 보세요.
<span id=comment_write style='display:;'>
이렇게 바꾸니까 되는 군요.
감사합니다.
이렇게 바꾸니까 되는 군요.
감사합니다.