그누보드 첨부파일목록 없애거나 가리고 싶은데 도움 좀 받을수있을까요^^;;? 채택완료
그누보드 첨부파일목록 없애거나 가리고 싶은데 도움 좀 받을수있을까요^^;;?
실제 사이트 바로가기 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개
해당 스킨 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>
지우거나 주석 처리 하면 되겠네요.
댓글을 작성하려면 로그인이 필요합니다.
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);
?>
$(document).ready(function() {
$('.fancybox').fancybox();
});
$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);
}
}
}
?>
var mp3jNew_0 = [
{name: "", mp3: "/", artist: ""},
{name: "", mp3: "/", artist: ""}];
- 청취 :
- 추천 :
- 분류 : if ($is_category) { echo ($category_name ? "[$view[ca_name]]" : ""); } ?>
// 파일 출력
$v_img_count = count($view['file']);
if($v_img_count) {
echo "
echo "
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 "
}
}
echo "
echo "
}
} else {
if(!$view[wr_6]) {
// 파일 출력
$v_img_count = count($view['file']);
if($v_img_count) {
echo "
echo "
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 "
}
}
echo "
echo "
}
} 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 "
?>
// 동영상
// 링크 : 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);
}
?>
- =$view[wr_related]?> ,
●?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 '';
} 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
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 »
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']) { ?> } } ?> 첨부파일 '' DATE :
if (implode('', $view['link'])) {
?>
| 링크 '' |
| 회 연결 |
|---|
// 코멘트 입출력
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
$(function() {
$("a.view_file_download").click(function() {
var msg = "파일을 다운로드 하시면 포인트가 차감(점)됩니다.\n\n포인트는 게시물당 한번만 차감되며 다음에 다시 다운로드 하셔도 중복하여 차감하지 않습니다.\n\n그래도 다운로드 하시겠습니까?";
if(confirm(msg)) {
var href = $(this).attr("href")+"&js=on";
$(this).attr("href", href);
return true;
} else {
return false;
}
});
});
<
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인