코멘트에 회원사진 뜨게하는데요.. > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

코멘트에 회원사진 뜨게하는데요.. 정보

코멘트에 회원사진 뜨게하는데요..

본문

사진처럼
동그라미친 부분에 선이 짤려서 나오네요.......
소스는 다음과 같이 코딩했습니다


<!-- 코멘트 리스트 -->
<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><? for ($k=0; $k<strlen($list[$i][wr_comment_reply]); $k++) echo "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"; ?></td>
    <td width='100%'>

        <table border=0 cellpadding=0 cellspacing=0 width=100%>
        <tr>
            <td height=1 colspan=3 bgcolor="#dddddd"><td>
        </tr>

        <tr>
            <td height=1 colspan=3></td>

        </tr>
        <tr>
<!-- 회원사진 출력 -->
<?
$mb_dir = substr($list[$i][mb_id],0,2);
$photo_file2 =  "{$g4[path]}/data/member/{$mb_dir}/{$list[$i][mb_id]}.jpg";
if (file_exists($photo_file2)) { 
echo "<td width='90' valign='top' align='left'><table width='84' height='5' cellpadding='0' cellspacing='0'><tr><td></td></tr></table><table width='84' height='84' cellpadding='2' cellspacing='0' bgcolor='E1E1E1'><tr><td><table width='80' height='80' cellpadding='4' cellspacing='0'><tr><td bgcolor='FFFFFF'>";
echo "<p align='center'><img src='{$photo_file2}' border='0' align='center'></p>";
echo "</td></tr></table></td></tr></table><table width='84' height='5' cellpadding='0' cellspacing='0'><tr><td></td></tr></table></td><td width='2' bgcolor='E1E1E1'></td><td width='3'></td>"; 
}else{
echo "<td width='90' valign='top' align='left'><table width='84' height='5' cellpadding='0' cellspacing='0'><tr><td></td></tr></table><table width='84' height='84' cellpadding='2' cellspacing='0' bgcolor='E1E1E1'><tr><td><table width='80' height='80' cellpadding='4' cellspacing='0'><tr><td bgcolor='FFFFFF'>";
echo "<p align='center'></p>";
echo "</td></tr></table></td></tr></table><table width='84' height='5' cellpadding='0' cellspacing='0'><tr><td></td></tr></table></td><td width='2' bgcolor='E1E1E1'></td><td width='3'></td>"; 
}
?>
            <td valign=top>
                <div style="height:28px; background:url(<?=$board_skin_path?>/img/co_title_bg.gif); clear:both; line-height:28px;">
                <div style="float:left; margin:2px 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:5px;">
                <? if ($is_ip_view) { echo "&nbsp;<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> "; } ?>
                &nbsp;
                </div>
                </div>

                <!-- 코멘트 출력 -->
                <div style='line-height:20px; padding:7px; word-break:break-all; overflow:hidden; clear:both; '>
                <?
                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);
                $str = preg_replace("/\[\<a\s.*href\=\"(http|https|ftp)\:\/\/([^[:space:]]+)\.(swf)\".*\<\/a\>\]/i", "<script>doc_write(flash_movie('$1://$2.$3'));</script>", $str);

<... 이하생략 ... >





흠 왜이럴까요 ㅠㅠ

댓글 전체

전체 10 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT