코멘트답변시 화살표아이콘에 관하여 정보
코멘트답변시 화살표아이콘에 관하여본문
위에 이미지에서 보시다싶이, 코멘트답변시에 화살표를 출력하는데, 답변글에 답변을 하면 화살표가 저렇게 하나씩 추가돼서 나오네요.....
아래는 코멘트리스트 스킨입니다.고수님들, 봐주시고 해결해주십시요.
********************************
<!-- 코멘트 리스트 -->
<div id="commentContents">
<?
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 border=0>
<tr>
<td valign=top style='padding-top:23px;'><? for ($k=0; $k<strlen($list[$i][wr_comment_reply]); $k++) echo "<img src='$board_skin_path/img/co_re.gif' border=0> "; ?></td>
<td width='100%'>
<table border=0 cellpadding=0 cellspacing=0 width=100%>
<tr>
<td height=1 colspan=2></td>
</tr>
<tr>
<td width=58 valign=top style='padding:0 5px 0 0;' class=member_img>
<?
$mb_1 = "{$g4[path]}/data/member_image/".substr($list[$i][mb_id],0,2)."/{$list[$i][mb_id]}.gif";
if (file_exists($mb_1)) {
echo "<img src='$mb_1'>";
} else {
echo "<img src='$g4[path]/img/member.png'>";
}
?>
</td>
<td valign=top bgcolor=#ffffff style="border-left:3px #f9f9f9 solid;">
<div style="height:30px; border-left:3px #b9c695 solid; clear:both; line-height:28px; background:#f9f9f9;">
<div style="float:left; margin:3px 0 0 2px;">
<strong><?=$list[$i][name]?></strong>
<span style="color:#888888; font-size:11px;"><?=$list[$i][datetime]?></span>
</div>
<div style="float:right; margin-top:2px;">
<? if ($is_ip_view) { echo " <span style=\"color:#B2B2B2; font-size:11px;\">{$list[$i][ip]}</span>"; } ?>
<? if ($list[$i][is_reply]) { echo "<a href=\"javascript:comment_box('{$comment_id}', 'c');\"><img src='$board_skin_path/img/co_btn_reply.gif' border=0 align=absmiddle alt='답변'></a> "; } ?>
<? if ($list[$i][is_edit]) { echo "<a href=\"javascript:comment_box('{$comment_id}', 'cu');\"><img src='$board_skin_path/img/co_btn_modify.gif' border=0 align=absmiddle alt='수정'></a> "; } ?>
<? if ($list[$i][is_del]) { echo "<a href=\"javascript:comment_delete('{$list[$i][del_link]}');\"><img src='$board_skin_path/img/co_btn_delete.gif' border=0 align=absmiddle alt='삭제'></a> "; } ?>
</div>
</div>
<!-- 코멘트 출력 -->
<div style='line-height:20px; padding:7px; word-break:break-all; overflow:hidden; clear:both; background:#ffffff;'>
<?
if (strstr($list[$i][wr_option], "secret")) echo "<span style='color:#ff6600;'>*</span> ";
$str = $list[$i][content];
if (strstr($list[$i][wr_option], "secret"))
$str = "<span class='small' style='color:#ff6600;'>$str</span>";
$str = preg_replace("/\[\<a\s.*href\=\"(http|https|ftp|mms)\:\/\/([^[:space:]]+)\.(mp3|wma|wmv|asf|asx|mpg|mpeg)\".*\<\/a\>\]/i", "<script>doc_write(obj_movie('$1://$2.$3'));</script>", $str);
// FLASH XSS 공격에 의해 주석 처리 - 110406
//$str = preg_replace("/\[\<a\s.*href\=\"(http|https|ftp)\:\/\/([^[:space:]]+)\.(swf)\".*\<\/a\>\]/i", "<script>doc_write(flash_movie('$1://$2.$3'));</script>", $str);
$str = preg_replace("/\[\<a\s*href\=\"(http|https|ftp)\:\/\/([^[:space:]]+)\.(gif|png|jpg|jpeg|bmp)\"\s*[^\>]*\>[^\s]*\<\/a\>\]/i", "<img src='$1://$2.$3' id='target_resize_image[]' onclick='image_window(this);' border='0'>", $str);
echo $str;
?>
</div>
<? if ($list[$i][trackback]) { echo "<p>".$list[$i][trackback]."</p>"; } ?>
<span id='edit_<?=$comment_id?>' style='display:none;'></span><!-- 수정 -->
<span id='reply_<?=$comment_id?>' style='display:none;'></span><!-- 답변 -->
</div>
<input type=hidden id='secret_comment_<?=$comment_id?>' value="<?=strstr($list[$i][wr_option],"secret")?>">
<textarea id='save_comment_<?=$comment_id?>' style='display:none;'><?=get_text($list[$i][content1], 0)?></textarea></td>
</tr>
<tr>
<td height=5 colspan=2></td>
</tr>
</table>
</td>
</tr>
</table>
<? } ?>
</div>
<!-- 코멘트 리스트 -->
잘 부탁드립니다.^^
아래는 코멘트리스트 스킨입니다.고수님들, 봐주시고 해결해주십시요.
********************************
<!-- 코멘트 리스트 -->
<div id="commentContents">
<?
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 border=0>
<tr>
<td valign=top style='padding-top:23px;'><? for ($k=0; $k<strlen($list[$i][wr_comment_reply]); $k++) echo "<img src='$board_skin_path/img/co_re.gif' border=0> "; ?></td>
<td width='100%'>
<table border=0 cellpadding=0 cellspacing=0 width=100%>
<tr>
<td height=1 colspan=2></td>
</tr>
<tr>
<td width=58 valign=top style='padding:0 5px 0 0;' class=member_img>
<?
$mb_1 = "{$g4[path]}/data/member_image/".substr($list[$i][mb_id],0,2)."/{$list[$i][mb_id]}.gif";
if (file_exists($mb_1)) {
echo "<img src='$mb_1'>";
} else {
echo "<img src='$g4[path]/img/member.png'>";
}
?>
</td>
<td valign=top bgcolor=#ffffff style="border-left:3px #f9f9f9 solid;">
<div style="height:30px; border-left:3px #b9c695 solid; clear:both; line-height:28px; background:#f9f9f9;">
<div style="float:left; margin:3px 0 0 2px;">
<strong><?=$list[$i][name]?></strong>
<span style="color:#888888; font-size:11px;"><?=$list[$i][datetime]?></span>
</div>
<div style="float:right; margin-top:2px;">
<? if ($is_ip_view) { echo " <span style=\"color:#B2B2B2; font-size:11px;\">{$list[$i][ip]}</span>"; } ?>
<? if ($list[$i][is_reply]) { echo "<a href=\"javascript:comment_box('{$comment_id}', 'c');\"><img src='$board_skin_path/img/co_btn_reply.gif' border=0 align=absmiddle alt='답변'></a> "; } ?>
<? if ($list[$i][is_edit]) { echo "<a href=\"javascript:comment_box('{$comment_id}', 'cu');\"><img src='$board_skin_path/img/co_btn_modify.gif' border=0 align=absmiddle alt='수정'></a> "; } ?>
<? if ($list[$i][is_del]) { echo "<a href=\"javascript:comment_delete('{$list[$i][del_link]}');\"><img src='$board_skin_path/img/co_btn_delete.gif' border=0 align=absmiddle alt='삭제'></a> "; } ?>
</div>
</div>
<!-- 코멘트 출력 -->
<div style='line-height:20px; padding:7px; word-break:break-all; overflow:hidden; clear:both; background:#ffffff;'>
<?
if (strstr($list[$i][wr_option], "secret")) echo "<span style='color:#ff6600;'>*</span> ";
$str = $list[$i][content];
if (strstr($list[$i][wr_option], "secret"))
$str = "<span class='small' style='color:#ff6600;'>$str</span>";
$str = preg_replace("/\[\<a\s.*href\=\"(http|https|ftp|mms)\:\/\/([^[:space:]]+)\.(mp3|wma|wmv|asf|asx|mpg|mpeg)\".*\<\/a\>\]/i", "<script>doc_write(obj_movie('$1://$2.$3'));</script>", $str);
// FLASH XSS 공격에 의해 주석 처리 - 110406
//$str = preg_replace("/\[\<a\s.*href\=\"(http|https|ftp)\:\/\/([^[:space:]]+)\.(swf)\".*\<\/a\>\]/i", "<script>doc_write(flash_movie('$1://$2.$3'));</script>", $str);
$str = preg_replace("/\[\<a\s*href\=\"(http|https|ftp)\:\/\/([^[:space:]]+)\.(gif|png|jpg|jpeg|bmp)\"\s*[^\>]*\>[^\s]*\<\/a\>\]/i", "<img src='$1://$2.$3' id='target_resize_image[]' onclick='image_window(this);' border='0'>", $str);
echo $str;
?>
</div>
<? if ($list[$i][trackback]) { echo "<p>".$list[$i][trackback]."</p>"; } ?>
<span id='edit_<?=$comment_id?>' style='display:none;'></span><!-- 수정 -->
<span id='reply_<?=$comment_id?>' style='display:none;'></span><!-- 답변 -->
</div>
<input type=hidden id='secret_comment_<?=$comment_id?>' value="<?=strstr($list[$i][wr_option],"secret")?>">
<textarea id='save_comment_<?=$comment_id?>' style='display:none;'><?=get_text($list[$i][content1], 0)?></textarea></td>
</tr>
<tr>
<td height=5 colspan=2></td>
</tr>
</table>
</td>
</tr>
</table>
<? } ?>
</div>
<!-- 코멘트 리스트 -->
잘 부탁드립니다.^^
댓글 전체
<? for ($k=0; $k<strlen($list[$i][wr_comment_reply]); $k++) echo "<img src='$board_skin_path/img/co_re.gif' border=0> "; ?>
=>
<?echo "<img src='$board_skin_path/img/co_re.gif' border=0> "; ?>
이렇게 바꿔보세요
=>
<?echo "<img src='$board_skin_path/img/co_re.gif' border=0> "; ?>
이렇게 바꿔보세요
넓은마인드님,
저렇게 하니간, 화살표는 하나씩 출력이 되는데, 젤 처음에 단 코멘트에도 리플화살표가 나오네요....
저렇게 하니간, 화살표는 하나씩 출력이 되는데, 젤 처음에 단 코멘트에도 리플화살표가 나오네요....
<? for ($k=0; $k<strlen($list[$i][wr_comment_reply]); $k++){
if($k== strlen($list[$i][wr_comment_reply])-1) {
echo "<img src='$board_skin_path/img/co_re.gif' border=0> ";
}else{
echo " ";
}
} ?>
이렇게 해보세요.
if($k== strlen($list[$i][wr_comment_reply])-1) {
echo "<img src='$board_skin_path/img/co_re.gif' border=0> ";
}else{
echo " ";
}
} ?>
이렇게 해보세요.
넓은마인드님,
감사합니다. 잘 됩니다.^^
감사합니다. 잘 됩니다.^^