2026, 새로운 도약을 시작합니다.

밑줄을 지우고 싶은데.. 채택완료

올라온 최근글 스킨을 수정해서 사용할려고 하는데

막히는 부분이 있어서 도움을 구해 봅니다.

 

각 글마다  밑줄이 있는거 그거 지워 버릴려면 어찌 해야 하나요?

 




http://ktcpg.com/bbs/bbs/main20.php">http://ktcpg.com/bbs/bbs/main20.php

 

 

아래 소스 입니다.

 

if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

//링크 썸네일 게시판을 위해 수정 - 2007년 1월 22일 월요일 - 플록
if (!function_exists("imagecopyresampled")) alert("GD 2.0.1 이상 버전이 설치되어 있어야 사용할 수 있는 갤러리 게시판 입니다.");

include_once($latest_skin_path . "/Ylink_thumb.lib.php");//본문 링크 이미지 썸네일 생성

//여분필드 기본값 설정 - 리자언니 free_img3 스킨에서
if (empty($board['bo_1'])) {
  $board['bo_1'] = "100,100";
  $sql = " update ".$g4['board_table']." set bo_1 = '".$board['bo_1']."' where bo_table = '".$bo_table."' ";
  sql_query($sql);
}
list($w, $h) = explode(",", $board['bo_1']);
if (empty($board['bo_2'])) {
  $board['bo_2'] = "100";
  $sql = " update ".$g4['board_table']." set bo_2 = '".$board['bo_2']."' where bo_table = '".$bo_table."' ";
  sql_query($sql);
}
if (empty($board['bo_3'])) {
  $board['bo_3'] = "280";
  $sql = " update ".$g4['board_table']." set bo_3 = '".$board['bo_3']."' where bo_table = '".$bo_table."' ";
  sql_query($sql);
}

list($w, $h) = explode(",", $board['bo_1']);

$data_path = $g4['path'] . "/data/file/" . $bo_table;
$thumb_path = $data_path . '/thumb';

if (!is_dir($thumb_path)) {
  @mkdir($thumb_path, 0707);
  @chmod($thumb_path, 0707);
}
?>

for ($i=0; $i  //------------------------------
  //본문에 링크한 이미지 레코드별 배열 - 한페이지에서 중복사용가능
  $re = '/src[ =]+[\'"]([^\'"]+\.(?:gif|jpg|png|bmp))[\'"]/i';
  preg_match_all($re, $list[$i]['wr_content'], $match, PREG_PATTERN_ORDER);
  //$imgs[$i] = $match[1][0]; //$url = $match[1][0];

  $dest_link[] = array( 'wr_id' => $list[$i]['wr_id'], 'url' => $match[1]);
  //print_r2($dest_link[$i]);
  $url = $dest_link[$i]['url']['0'];//첫번째 링크된 이미지, 두번째는 $dest_link[$i]['url'][1]
  //------------------------------
  $save_dir = $thumb_path;//임시 저장경로
  $referer = "";//속일 리퍼러, 넣지 않아도 됨

  $thumb = $save_dir . '/s_' . base64_encode($url);
  //썸네일이 없다면 본문 첫번째 링크된 이미지 파일의 썸네일을 생성합니다.
  if (!file_exists($thumb)) {
    //if ((is_file($url)) && (!file_exists($thumb))) {//원본이미지 있고 썸네일 없을때
    //유효하지 않는 링크에 대한 에러를 표시하지 않는다.
    $result = @Ymake_sumnail_remoteimage($url, $save_dir, $w, $h, $referer);
  }

  //링크에서 파일명 가져옴
  $filename = strrchr($url,"/");
  $filename = substr($filename, 1);
  $filename = urlencode($filename); //타이틀

  //------------------------------
  //첨부파일1번이 있다면 우선사용합니다.
  if ($list[$i]['file'][0]['file']){
    $filename = $list[$i]['file'][0]['file'];  //첫번째 이미지 파일로 지정
    $dest_file = $data_path .'/'. $filename;//원본 이미지

    if (preg_match("/\.(jp[e]?g|gif|png)$/i", $filename) && file_exists($dest_file)){

      $thumb = $thumb_path.'/' . $filename;

      if (!file_exists($thumb)){

        $size = getimagesize($dest_file);
        if ($size[2] == 1)
          $src = imagecreatefromgif($dest_file);
        else if ($size[2] == 2)
          $src = imagecreatefromjpeg($dest_file);
        else if ($size[2] == 3)
          $src = imagecreatefrompng($dest_file);
        else
          break;
        if ($size[0] >= $size[1]){
          $rate = $w / $size[0];
          $width = $w;
          $height = (int)($size[1] * $rate);
        }
        else{
          $rate = $h / $size[1];
          $width = (int)($size[0] * $rate);
          $height = $h;
        }
        $dst = imagecreatetruecolor($width, $height);
        imagecopyresampled($dst, $src, 0, 0, 0, 0, $width, $height, $size[0], $size[1]);
        imagejpeg($dst, $thumb, $board['bo_2']);
        chmod($thumb, 0707);

      }
    }
  }

  //----------------------------------------------------------------
  $f_title = $list[$i]['file'][0]['file']?" ".$list[$i]['file'][0]['source']."":"".$filename."";

  if (file_exists($thumb)){
    $img = "";
  }
  //----------------------------------------------------------------

  if ($list[$i]['comment_cnt']){
    $comment_cnt ="{$list[$i]['comment_cnt']}";
  }

  if (($i==0)||($i==1)||($i==2)){//세번째 까지 이미지 제어
   
    if ((empty($list[$i][file][0][file])) && (empty($url))) {//파일1,링크1 체크 - 제목,쪽글만 표시
      $subject = ($list[$i]['is_notice'])?"".$list[$i]['subject']."":"".$list[$i]['subject']."";
      $wr_content = "".cut_str(strip_tags($list[$i]['wr_content']), 145, '...')."";

      ?>


     

     

     

     
    }
    else{//이미지,제목,쪽글 표시

      $subject = ($list[$i]['is_notice'])?"".$list[$i]['subject']."":"".$list[$i]['subject']."";
      $wr_content = "".cut_str(strip_tags($list[$i]['wr_content']), 145, '...')."";
     
      ?>


     

     

     

     
    }
  }
  else {//세번째 글 이후 (제목, 날짜만)
    ?>

  }
}//for

if (count($list) == 0){
  ?>

자료가 없습니다.
}
?>​

답변 1개

채택된 답변
+20 포인트

에서

붉은 부분 삭제하시면 되겠습니다.

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

감사합니다.
잘 해결 됐습니다.

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인

전체 질문 목록

🐛 버그신고