테스트 사이트 - 개발 중인 베타 버전입니다

관리자에서 제목 100 200으로 해도 ...으로 나옵니다.

믹스디자인 10년 전 조회 2,057

갤러리 스킨의 소스는 아래와같구요~~

관리자에서 제목 100 200으로 해도 ...으로 나옵니다.

한줄로 나옵니다.

100..200.. 으로 길게하면 두줄로 나오게 할수없을까요??

 

http://myvi.co.kr/bbs/board.php?bo_table=download_11">http://myvi.co.kr/bbs/board.php?bo_table=download_11

 

 

 

 

 

 

// 제목이 두줄로 표시되는 경우 이 코드를 사용해 보세요. // 제목

$board[bo_1] = "125"; $board[bo_2] = "125"; $board[bo_3] = "100";

if (!$board[bo_1]) alert("게시판 설정 : 여분 필드 1 에 목록에서 보여질 이미지의 폭을 설정하십시오. (픽셀 단위)"); if (!$board[bo_2]) alert("게시판 설정 : 여분 필드 2 에 목록에서 보여질 이미지의 높이을 설정하십시오. (픽셀 단위)"); if (!$board[bo_3]) alert("게시판 설정 : 여분 필드 3 에 목록에서 보여질 이미지의 질(quality)을 비율로 설정하십시오. (100 이하)"); if (!function_exists("imagecopyresampled")) alert("GD 2.0.1 이상 버전이 설치되어 있어야 사용할 수 있는 갤러리 게시판 입니다.");

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

@mkdir($thumb_path, 0707); @chmod($thumb_path, 0707);

$mod = $board[bo_gallery_cols]; $td_width = (int)(100 / $mod);

?>

       
        Total        

= 100)   {    $ing="[작업완료]";    //$homepageurl=$list[wr_link1];    if($list[$i][wr_link1]) $homepageurl="";   }  else $ing="";    $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 계산,, 썸네일은 가로 정렬임으로 세로가 동일해야 함 */       /*     $rate = $board[bo_1] / $size[0];    $height = (int)($size[1] * $rate);

   $dst = imagecreatetruecolor($board[bo_1], $height);    imagecopyresampled($dst, $src, 0, 0, 0, 0, $board[bo_1], $height, $size[0], $size[1]);    imagepng($dst, $thumb_path.'/'.$list[$i][wr_id], $board[bo_2]);    chmod($thumb_path.'/'.$list[$i][wr_id], 0606);       */

   $rate = $board[bo_2] / $size[1];    $width = (int)($size[0] * $rate);          //echo "rate : $rate ,width : $width, $height : $board[bo_2] ";    if($width <= $board[bo_1]) { //width가 지정된 사이즈보다 작을경우 rate 비율로 썸네일 생성     $dst = imagecreatetruecolor($width, $board[bo_2]);     imagecopyresampled($dst, $src, 0, 0, 0, 0, $width, $board[bo_2], $size[0], $size[1]);     imagejpeg($dst, $thumb_path.'/'.$list[$i][wr_id], $board[bo_2]);    } else {     $rate = $board[bo_1] / $size[0];     $height = (int)($size[1] * $rate);

    $dst = imagecreatetruecolor($board[bo_1], $height);     imagecopyresampled($dst, $src, 0, 0, 0, 0, $board[bo_1], $height, $size[0], $size[1]);     imagejpeg($dst, $thumb_path.'/'.$list[$i][wr_id], $board[bo_2]);    }          chmod($thumb_path.'/'.$list[$i][wr_id], 0606);

  }  }

  $photo_view = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];  if (file_exists($thumb)){   $img = "";  }

 

    $title = "클릭하시면 해당 사이트로 이동합니다.";     $content = cut_str(get_text($list[$i][wr_content]), 80);     //$img = "$g4[path]/data/file/$bo_table/".urlencode($list[$i][file][0][file]);     //if (!file_exists($img) || !$list[$i][file][0][file])  if ( !$list[$i][file][0][file])         $img = "";     $href = "$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}&no=1";     $view_href = "";     //if ($is_admin)         $view_href = "";

    $checkbox = "";     if ($is_checkbox)         $checkbox = "";

 if($list[$i][wr_2]) $btimg_dc="";  else $btimg_dc="";

 $btimg_order="$board_skin_path/img/bt_order.gif";  $btimg_view="$board_skin_path/img/bt_view.gif";

 $order_href="";

    $tr = "";     if ($i && $i%$board[bo_gallery_cols]==0)         $tr = "

";     echo "$tr";     $subject = "".cut_str($list[$i][subject],20)."";

 echo "

"; }

// 나머지 td 를 채운다. $cnt = $i%$mod; if ($cnt)     for ($i=$cnt; $i<$mod; $i++)         echo "

\n";

if ($i == 0)     echo "

"; ?>
";  echo "";  echo "";  echo "";  echo ""; // 제목  echo "";  // 카테고리  echo "";      // 작성자  if ($is_checkbox) {  echo "";  }  echo "
";  echo "
{$view_href}{$img}
";  echo "
$subject
{$list[$i][ca_name]}
{$list[$i][name]}
$checkbox
";  echo "
 게시물이 없습니다.

   
                                   

   

       

 
 

    "; } ?>     ", $write_pages);     $write_pages = str_replace("이전", "", $write_pages);     $write_pages = str_replace("다음", "", $write_pages);     $write_pages = str_replace("맨끝", "", $write_pages);     $write_pages = preg_replace("/([0-9]*)<\/span>/", "$1", $write_pages);     $write_pages = preg_replace("/([0-9]*)<\/b>/", "$1", $write_pages);     ?>         "; } ?>

and or

 

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

답변 1개

10년 전

게시판 관리자에서 하는 게 아니라 이 부분에서 하고 있네요.

$subject = "".cut_str($list[$i][subject],20).""; 

 

숫자 20을 수정해보세요. 

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

답변에 대한 댓글 1개

익명닉네임
10년 전
작은별 님 방식대로 해도되지만 .. 좀더 편리 하게 하는방법은 20 숫자를$board[bo_subject_len] 로 해주셔도됩니다. ㅎㅎ

$subject = "<span $style>".cut_str($list[$i][subject],$board[bo_subject_len])."</span>";

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

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

로그인