밑줄을 지우고 싶은데..

밑줄을 지우고 싶은데..

QA

밑줄을 지우고 싶은데..

답변 1

본문

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

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

 

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

 

68a22dd130a02b19fb1884cf3d4611d2_1408598667_1613.jpg


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<count($list); $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 = "<img src='".$thumb. "' style='border: 0px solid silver; margin-right:5px' align='left' title='".$f_title." Hit: ".$list[$i]['wr_hit']."'>";
  }
  //----------------------------------------------------------------

  if ($list[$i]['comment_cnt']){
    $comment_cnt ="<a href=\"javascript:{$list[$i][comment_href]}\">{$list[$i]['comment_cnt']}</a>";
  }

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

      ?><div style='width:100%;border-bottom:1px dashed silver;margin-top:3px;'>
      <div style='width:100%;border:0px solid silver;margin:0;padding-top:3px;'><a href="<?=$list[$i]['href']?>" style="font-family:;font-size:9px;font-weight:bold;"><?=$subject?></a><?=$list[$i]['comment_cnt']?> <?=$list[$i]['icon_new']?></div>
      <div style="width:100%;text-align:left;line-height:125%;font-size:9.5pt;margin-right:1; margin-left:1;"><?=$wr_content?></div>
      <div style='clear:both;'></div>
      </div><?
    }
    else{//이미지,제목,쪽글 표시

      $subject = ($list[$i]['is_notice'])?"<a href='".$list[$i]['href']."' style='color:#333333;font-weight:bold;'>".$list[$i]['subject']."</a>":"<a href='".$list[$i]['href']."' style='font-weight:bold;'>".$list[$i]['subject']."</a>";
      $wr_content = "<a href='{$list[$i]['href']}'>".cut_str(strip_tags($list[$i]['wr_content']), 145, '...')."</a>";
     
      ?><div style='width:100%;border-bottom:1px dashed silver;margin-top:3px;'>
      <div style='width:100%;border:0px solid silver;margin:0;padding-top:3px;'><a href="<?=$list[$i]['href']?>" style="font-family:;font-size:9px;font-weight:bold;"><?=$subject?></a><?=$list[$i]['comment_cnt']?> <?=$list[$i]['icon_new']?></div>
      <div style="width:100%;text-align:left;line-height:125%;font-size:9.5pt;margin-right:1; margin-left:1;"><a href="<?=$list[$i]['href']?>"><?=$img?></a><?=$wr_content?></div>
      <div style='clear:both;'></div>
      </div><?
    }
  }
  else {//세번째 글 이후 (제목, 날짜만)
    ?><?

  }
}//for

if (count($list) == 0){
  ?><div style='width:100%;border:0px solid silver;margin:0;'>자료가 없습니다.</div><?
}
?>​

이 질문에 댓글 쓰기 :

답변 1

<div style='width:100%;border-bottom:1px dashed silver;margin-top:3px;'>에서

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

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 10,637
© SIRSOFT
현재 페이지 제일 처음으로