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

그누보드 첨부파일목록 없애거나 가리고 싶은데 도움 좀 받을수있을까요^^;;? 채택완료

하늘제사장 10년 전 조회 3,706

그누보드 첨부파일목록 없애거나 가리고 싶은데 도움 좀 받을수있을까요^^;;?

 

실제 사이트 바로가기 http://gimdaeman.dothome.co.kr/gnuboard5/bbs/board.php?bo_table=Gallery&wr_id=4">http://gimdaeman.dothome.co.kr/gnuboard5/bbs/board.php?bo_table=Gallery&wr_id=4

 


 

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

답변 2개

채택된 답변
+20 포인트
10년 전

해당 스킨 view.skin.php 에서 주석처리 하면 됩니다.

 

</p><p><?php if($cnt) { ?></p><p>    <!-- 첨부파일 시작 { --></p><p>    <section id="bo_v_file"></p><p>        <h2>첨부파일</h2></p><p>        <ul></p><p>        <?php</p><p>        // 가변 파일</p><p>        for ($i=0; $i<count($view['file']); $i++) {</p><p>            if (isset($view['file'][$i]['source']) && $view['file'][$i]['source'] && !$view['file'][$i]['view']) {</p><p>         ?></p><p>            <li></p><p>                <a href="<?php echo $view['file'][$i]['href'];  ?>" class="view_file_download"></p><p>                    <img src="<?php echo $board_skin_url ?>/img/icon_file.gif" alt="첨부"></p><p>                    <strong><?php echo $view['file'][$i]['source'] ?></strong></p><p>                    <?php echo $view['file'][$i]['bf_content'] ?> (<?php echo $view['file'][$i]['size'] ?>)</p><p>                </a></p><p>                <span class="bo_v_file_cnt"><?php echo $view['file'][$i]['download'] ?>회 다운로드</span></p><p>                <span>DATE : <?php echo $view['file'][$i]['datetime'] ?></span></p><p>            </li></p><p>        <?php</p><p>            }</p><p>        }</p><p>         ?></p><p>        </ul></p><p>    </section></p><p>    <!-- } 첨부파일 끝 --></p><p>    <?php } ?> </p><p>

 

이 부분 에서

 

</p><p> <a href="<?php echo $view['file'][$i]['href'];  ?>" class="view_file_download"></p><p>                    <img src="<?php echo $board_skin_url ?>/img/icon_file.gif" alt="첨부"></p><p>                    <strong><?php echo $view['file'][$i]['source'] ?></strong></p><p>                    <?php echo $view['file'][$i]['bf_content'] ?> (<?php echo $view['file'][$i]['size'] ?>)</p><p>                </a></p><p>                <span class="bo_v_file_cnt"><?php echo $view['file'][$i]['download'] ?>회 다운로드</span> </p><p>

 

지우거나 주석 처리 하면 되겠네요.

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

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

G
10년 전

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

include_once(G5_LIB_PATH.'/thumbnail.lib.php');

 

// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨

add_stylesheet('', 0);

add_stylesheet('', 1);

if($board[bo_2] == "black") { 

add_stylesheet('', 2);

}

if($view[wr_7] == 1) { 

add_stylesheet('', 3);

}

// add_stylesheet('', 4);

// add_stylesheet('', 5);

?>

 

 

 

 

Home

 

 

?

단축키

Prev이전 문서

Next다음 문서

+

-

Up

Down

Comment

Files첨부파일

목록목록으로

수정

 

 

 

In

by

">posted

조회 수 댓글

조회 수 댓글

?

단축키

Prev이전 문서

Next다음 문서

+

-

Up

Down

Comment

Files

목록

 

 

        $v_img_count = count($view['file']);

        if($v_img_count) {

 

            for ($i=0; $i<=count($view['file']); $i++) {

                if ($view['file'][$i]['view']) {

                    //echo $view['file'][$i]['view'];

$upfile = $view['file'][$i]['path']."/".$view['file'][$i]['file'];

// $filepath = G5_PATH."/data/file/$bo_table";

$filepath = "../data/file/$bo_table";

$fileurl = G5_DATA_URL."/file/$bo_table";

$thumbs[$i] = thumbnail($view['file'][$i]['file'], $filepath, $filepath, 274, 274, false, true);

                }

            }

        }

 

?>

 

<?php echo $view[subject]?>

 

 

<?php echo $view[subject]?>

 

  • 청취 :
  • 추천 :
  • 분류 : [$view[ca_name]]" : ""); } ?>

 

        // 파일 출력

        $v_img_count = count($view['file']);

        if($v_img_count) {

            echo "

\n";

            echo "

\n";

 

            for ($i=1; $i<=count($view['file']); $i++) {

                if ($view['file'][$i]['view']) {

                    //echo $view['file'][$i]['view'];

                    $str = get_view_thumbnail($view['file'][$i]['view']);

$str=str_replace("bbs/view_image.php?bo_table={$bo_table}&fn=", "data/file/{$bo_table}/", $str);

$str=str_replace("bbs/view_image.php?fn=%2Fdata%2Feditor%2F", "data/editor/", $str);

$str=str_replace("%2F", "/", $str);

$str=str_replace("target=\"_blank\" class=\"view_image\"", "data-fancybox-group='{$bo_table}' class='fancybox'", $str);

 

echo "

".$str."
";                    

                }

            }

 

            echo "

\n";

            echo "

\n";

        }

        } else {

 

if(!$view[wr_6]) {

// 파일 출력

$v_img_count = count($view['file']);

if($v_img_count) {

echo "

\n";

echo "

\n";

 

for ($i=0; $i<=count($view['file']); $i++) {

if ($view['file'][$i]['view']) {

$str = get_view_thumbnail($view['file'][$i]['view']); 

$str=str_replace("bbs/view_image.php?bo_table={$bo_table}&fn=", "data/file/{$bo_table}/", $str);

$str=str_replace("bbs/view_image.php?fn=%2Fdata%2Feditor%2F", "data/editor/", $str);

$str=str_replace("%2F", "/", $str);

$str=str_replace("target=\"_blank\" class=\"view_image\"", "data-fancybox-group='{$bo_table}' class='fancybox'", $str);

 

echo "

".$str."
";

}

}

 

echo "

\n";

echo "

\n";

}

} else {

 

}

}

?>

 

if($view[wr_6] == 1) {

$str = get_view_thumbnail($view['rich_content']);

} else {

$str = get_view_thumbnail($view['content']);

}

$str=str_replace("bbs/view_image.php?bo_table={$bo_table}&fn=", "data/file/{$bo_table}/", $str);

$str=str_replace("bbs/view_image.php?fn=%2Fdata%2Feditor%2F", "data/editor/", $str);

$str=str_replace("%2F", "/", $str);

$str=str_replace("target=\"_blank\" class=\"view_image\"", "data-fancybox-group='{$bo_table}' class='fancybox'", $str);

 

echo "

".$str."
"; 

?>

 

// 동영상

// 링크 : https://http://www.youtube.com/watch?feature=player_detailpage&v=Xc1KaePfc6Q">www.youtube.com/watch?feature=player_detailpage&v=Xc1KaePfc6Q

$youtube_link = $view['wr_10'];

$youtube_url = parse_url($youtube_link);

parse_str($youtube_url['query']);

 

// 다음팟 http://tvpot.daum.net/v/vf1f9xx6oCXBCGGx8GJRC8t">http://tvpot.daum.net/v/vf1f9xx6oCXBCGGx8GJRC8t

$daumpot_url = $view['wr_10'];

$daum_find = "daum";

if(strpos($daumpot_url, $daum_find)){

$daumpot_limit = parse_url($daumpot_url, PHP_URL_PATH);

$daumpot_limit = str_replace("/v/", "", $daumpot_limit);

}

?>

 

 

TAG •

  • ,

?Who's

$mb_dir = substr($member['mb_id'],0,2);

$photo_path = G5_DATA_PATH.'/member/'.$mb_dir;

$photo_file = G5_DATA_URL.'/member/'.$mb_dir.'/thumb-'.$member['mb_id'].'_2_60x60.jpg';

$photo_data = G5_DATA_PATH.'/member/'.$mb_dir.'/thumb-'.$member['mb_id'].'_2_60x60.jpg';

 

if (file_exists($photo_data)) {

echo 'profile image';

} else {

echo "?";

}

?>

$prev_img = goto_img($prev_href); 

$filepath = "../data/file/$bo_table";

$fileurl = G5_DATA_URL."/file/$bo_table";

$prev_img_thumb = thumbnail($prev_img, $filepath, $filepath, 160, 100, true, true);

$prev_img_thumb = $fileurl."/".$prev_img_thumb;

if (!$prev_img) $prev_img_thumb = $board_skin_url."/img/no_img_zine.jpg";

?>

« Prev

<?php echo cut_str($prev_wr_subject,40) ?>by

$next_img = goto_img($next_href); 

$filepath = "../data/file/$bo_table";

$fileurl = G5_DATA_URL."/file/$bo_table";

$next_img_thumb = thumbnail($next_img, $filepath, $filepath, 160, 100, true, true); 

$next_img_thumb = $fileurl."/".$next_img_thumb;

if (!$next_img) $next_img_thumb = $board_skin_url."/img/no_img_zine.jpg";

?>

Next »

<?php echo cut_str($next_wr_subject,40) ?>by

function goto_img($str){ 

global $g5, $bo_table; 

$str = explode("wr_id=", $str); 

$str = explode("&", $str[1]); 

$wr_id_in = $str[0]; 

$sql = " select bf_file  from $g5[board_file_table] where wr_id = $wr_id_in and bo_table = '$bo_table' and (bf_type = '1' || bf_type = '2' || bf_type = '3') order by bf_no limit 1"; 

$row = sql_fetch($sql); 

return $row[bf_file]; 

?> 

       

       

       

            if($board['bo_use_good'] || $board['bo_use_nogood']) {

        ?>

       

            }

        }

        ?>

   

    if ($view['file']['count']) {

        $cnt = 0;

        for ($i=0; $i

            if (isset($view['file'][$i]['source']) && $view['file'][$i]['source'] && !$view['file'][$i]['view'])

                $cnt++;

        }

    }

     ?>

       

        // 가변 파일

        for ($i=0; $i

            if (isset($view['file'][$i]['source']) && $view['file'][$i]['source'] && !$view['file'][$i]['view']) {

         ?>

       

            }

        }

         ?>

Atachment
첨부파일 ''

  • 첨부 ,

DATE :

   

    if (implode('', $view['link'])) {

     ?>

       

        // 링크

        $cnt = 0;

        for ($i=1; $i<=count($view['link']); $i++) {

            if ($view['link'][$i]) {

                $cnt++;

                $link = cut_str($view['link'][$i], 70);

         ?>

       

            }

        }

         ?>

   

 

   

   include_once($board_skin_path."/view.sns.skin.php");

   ?>

 

   

    // 코멘트 입출력

   include_once('./view_comment.php');

    ?>

 


Designed by sketchbooks.co.kr / sketchbook5 board skin

나눔글꼴 설치 안내

이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는 나눔글꼴을 설치해야 합니다.

http://hangeul.naver.com/">http://hangeul.naver.com/" target="_blank"> 설치

취소

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5