밑줄하고 굵게 없애주세요. > 그누4 질문답변

그누4 질문답변

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

밑줄하고 굵게 없애주세요. 정보

밑줄하고 굵게 없애주세요.

본문

1번소스
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$img_width = 70;
$img_height = 50;
$img_quality = 100;

if (!function_exists("imagecopyresampled")) alert("GD 2.0.1 이상 버전이 설치되어 있어야 사용할 수 있는 갤러리 게시판 입니다.");

$data_path = $g4[path]."/data/file/$bo_table";
$thumb_path = $data_path.'/thumb';
$ym = date("ym", $g4[server_time]);

@mkdir($thumb_path, 0707);
@chmod($thumb_path, 0707);
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<? for ($i=0; $i<count($list); $i++) { ?>
<? if ($i==0) { ?>
  <tr>
    <td colspan="2">
<?

$title = cut_str($list[$i][subject], 100, '..');//본문 글 줄이는 함수
//썸네일 생성
$thumfile = "";
    $thumb = $thumb_path.'/'.$list[$i][wr_id];
    // 썸네일 이미지가 존재하지 않는다면
    if (!file_exists($thumb)) {
        $file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
        // 업로드된 파일이 이미지라면
        if (preg_match("/\.(jp[e]?g|gif|png)$/i", $file) && file_exists($file)) {
            $size = getimagesize($file);
            if ($size[2] == 1)
                $src = imagecreatefromgif($file);
            else if ($size[2] == 2)
                $src = imagecreatefromjpeg($file);
            else if ($size[2] == 3)
                $src = imagecreatefrompng($file);
            else
                break;

            $rate = $img_width / $size[0];
            $height = (int)($size[1] * $rate);

            // 계산된 썸네일 이미지의 높이가 설정된 이미지의 높이보다 작다면
            if ($height < $img_height)
                // 계산된 이미지 높이로 복사본 이미지 생성
                $dst = imagecreatetruecolor($img_width, $height);
            else
                // 설정된 이미지 높이로 복사본 이미지 생성
                $dst = imagecreatetruecolor($img_width, $img_height);
            imagecopyresampled($dst, $src, 0, 0, 0, 0, $img_width, $height, $size[0], $size[1]);
            imagejpeg($dst, $thumb_path.'/'.$list[$i][wr_id], $img_quality);
            chmod($thumb_path.'/'.$list[$i][wr_id], 0606);
        } else { //게디터에서 삽입한 이미지 뽑자ㅠㅠ
$edit_img = $list[$i]['wr_content'];
if (eregi("data/cheditor4/{$ym}/[^<>]*\.(gif|jpg|png|bmp)", $edit_img, $tmp)) { // data/geditor------
$file = './' . $tmp[0]; // 파일명
$size = getimagesize($file);
if ($size[2] == 1)
$src = imagecreatefromgif($file);
else if ($size[2] == 2)
$src = imagecreatefromjpeg($file);
else if ($size[2] == 3)
$src = imagecreatefrompng($file);
else
break;

$rate = $img_width / $size[0];
$height = (int)($size[1] * $rate);

// 계산된 썸네일 이미지의 높이가 설정된 이미지의 높이보다 작다면
if ($height < $img_height)
// 계산된 이미지 높이로 복사본 이미지 생성
$dst = imagecreatetruecolor($img_width, $height);
else
// 설정된 이미지 높이로 복사본 이미지 생성
$dst = imagecreatetruecolor($img_width, $img_height);
imagecopyresampled($dst, $src, 0, 0, 0, 0, $img_width, $height, $size[0], $size[1]);
imagejpeg($dst, $thumb_path.'/'.$list[$i][wr_id], $img_quality);
chmod($thumb_path.'/'.$list[$i][wr_id], 0606);
}
    }
}

    if (file_exists($thumb))
        $thumfile = "<a href='{$list[$i][href]}'><img src='$thumb' width='{$img_width}' height='{$img_height}' border='0' style='border:0 #eee solid' onmouseover=this.style.filter='alpha(opacity=80)' onmouseout=this.style.filter=''></a>";
else
//이미지가 없으면
$thumfile="<a href='{$list[$i][href]}'><img src='$latest_skin_path/img/noimg.gif' width='{$img_width}' height='{$img_height}' style='border:0 #E7E7E7 solid'></a>";
//이미지가 아니네
        if(preg_match("/\.(swf|wma|asf)$/i","$file") && file_exists($file))
      { $thumfile = "<script>doc_write(flash_movie('$file', 'flash$i', '$img_width', '$img_height', 'transparent'));</script>"; }
?>
<table width="100%" cellpadding=0 cellspacing=0 border=0>
<tr>
<td width="2"></td>
<td width="80" style="padding:10px 0 0 0;">
<a href='<?=$list[$i][href]?>'><?=$thumfile?></a>
</td>
<td valign=top style="line-height:15px; padding:10px 10px 0 0;letter-spacing:-1px;">
<a href='<?=$list[$i][href]?>'><b><?=$title?></b></a><br>
<font color='#666666' style="color:#747172;"><?=cut_str(strip_tags($list[$i][wr_content]),110,"..")?></font>
</td>
</tr>
<tr><td  colspan="2" height=3></td></tr>
<tr><td  colspan="2" height=1 bgcolor='#f6f6f6'></td></tr>
<tr><td  colspan="2" height=3></td></tr>
</table>
</td></tr>
 <? }else{?>
<tr><td width="89%"><span style='color:#CECECE;font-weight:bold;'>-</span>
<?
        echo "<a href='{$list[$i][href]}'>";
        echo "{$list[$i][subject]}";
        echo "</a>";
        ?></td><td width="11%"><font color='#999999'><?=$list[$i][datetime2]?></font></td>
  </tr>
  <? } ?>
  <? } ?>
  <? if (count($list) == 0) { echo "<tr><td colspan=3 align=center height=100>자료가 없습니다.</td></tr>"; } ?>
</table>
<!-- 게시판 목록 끝 -->


<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="5"></td>
</tr>
</table>

2번소스
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<style type="text/css">
.vzLtText {margin-bottom:10px;}
.vzLtText h2 {margin-bottom:5px; padding-bottom:5px; font-size:14px; border-bottom:2px solid #aaa;}
.vzLtText li {height:29px; line-height:29px; border-bottom:1px solid #ddd;}
.vzLtText li em {color:#ff6c00 !important; font-size:11px;}
.vzLtText li img {vertical-align:middle; _position:absolute;}
</style>

<!-- 최근게시물 : <?=$board[bo_subject]?> -->
<div class="vzLtText">
<h2><a href="<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>" ><?=$board[bo_subject]?></a></h2>
<ul>
    <?
    for ($i=0; $i<count($list); $i++) {
        $li = $list[$i];

        echo "<li>";
        if ($li[icon_reply]) echo $li[icon_reply]." ";
        echo "<a href='$li[href]'>$li[subject]</a>";
        if ($li[wr_comment]) echo " <em>($li[wr_comment])</em>";
        echo $li[icon_new]    ? " ".$li[icon_new]    : "";
        echo "</li>\n";
    }

    if ($i==0) { echo "<li>게시물이 없습니다.</li>"; }
    ?>
    </ul>
</div>
<!-- 최근게시물 : <?=$board[bo_subject]?> -->

어찌없애는지 궁금합니다.

밑줄하고 굵게 없애주세요.
부탁드립니다.
어디에 어떤소스를 바꿔야될지....모르겠습니다.
링크#1 참고하시면되겠습니다.

댓글 전체

전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

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