동영상 게시판 뷰에서 동영상 부터 나오게 하려면요~

동영상 게시판 뷰에서 동영상 부터 나오게 하려면요~

QA

동영상 게시판 뷰에서 동영상 부터 나오게 하려면요~

본문

 

86f5e05b76dc7a0c58640a84d19f80b9_1411632645_4576.PNG 

동영상 게시판 올리기부분 인데요. 

이게 편집기 창이 잘 안먹어서
하단에 링크와 파일을 사용하고 있어요.

근데 이것을 뷰에서 보면 사진 그다음 영상 순으로 나오거든요.
이것을 영상 그다음 사진 순으로 보여주고 싶어요.
방법이 없을까요?
어느 부분의 소스를 수정하면되는지 알려주시면 고맙겠습니다.

뷰스킨의 소스는
아래 올립니다.

사실 사진은 유튜 링크건 사진을 목록에 보여줄 수  없어서  올리는 거거든요
동영상이  주요한 건데 게시판을 열면 사진부터 나와서 좀 그렇거든요.

한 수 가르침 부탁드려요~ 꾸벅^^__^^;

 

[code]

 

 



/**
 * Bechu-Basic Skin for Gnuboard4
 *
 * Copyright (c) 2008 Choi Jae-Young <www.miwit.com>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  *** 개인정보보호를 위한 전화번호 노출방지 ***  USA
 */

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

$mw_is_view = true;
$mw_is_list = false;
$mw_is_write = false;

include_once("$board_skin_path/mw.lib/mw.skin.basic.lib.php");
include("view_head.skin.php");

?>
<script type="text/javascript">
document.title = "<?=strip_tags(addslashes($view[wr_subject]))?>";
</script>
<!--
<link type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/themes/ui-lightness/jquery-ui.css" rel="stylesheet" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/jquery-ui.min.js"></script>
-->
<link type="text/css" href="<?=$board_skin_path?>/mw.js/ui-lightness/jquery-ui-1.8.19.custom.css" rel="stylesheet" />
<script type="text/javascript" src="<?=$board_skin_path?>/mw.js/jquery-ui-1.8.19.custom.min.js"></script>
<script type="text/javascript" src="<?=$board_skin_path?>/mw.js/tooltip.js"></script>

<script type="text/javascript" src="<?=$board_skin_path?>/mw.js/syntaxhighlighter/scripts/shCore.js"></script>
<script type="text/javascript" src="<?=$board_skin_path?>/mw.js/syntaxhighlighter/scripts/shBrushPhp.js"></script>
<link type="text/css" rel="stylesheet" href="<?=$board_skin_path?>/mw.js/syntaxhighlighter/styles/shCore.css"/>
<link type="text/css" rel="stylesheet" href="<?=$board_skin_path?>/mw.js/syntaxhighlighter/styles/shThemeDefault.css"/>
<script type="text/javascript">
SyntaxHighlighter.config.clipboardSwf = '<?=$board_skin_path?>/mw.js/syntaxhighlighter/scripts/clipboard.swf';
SyntaxHighlighter.all();
</script>
<link rel="stylesheet" href="<?=$board_skin_path?>/style.common.css?<?=filemtime("$board_skin_path/style.common.css")?>" type="text/css">

<script type="text/javascript" src="<?=$board_skin_path?>/mw.js/ZeroClipboard.js?time=<?=time()?>"></script>
<script type="text/javascript">
function initClipboard() {
    clipBoardView = new ZeroClipboard.Client();
    ZeroClipboard.setMoviePath("<?=$board_skin_path?>/mw.js/ZeroClipboard.swf");
    clipBoardView.addEventListener('mouseOver', function (client) {
        clipBoardView.setText($("#post_url").text());
    });
    clipBoardView.addEventListener('complete', function (client) {
        alert("클립보드에 복사되었습니다. \'Ctrl+V\'를 눌러 붙여넣기 해주세요.");
    }); 
    clipBoardView.glue("post_url_copy");
}
$(document).ready(function () {
    if ($("#post_url").text()) {
        initClipboard();
    }
});
</script>
<!--
<script type="text/javascript">
function initClipboard() {
    var clip = new ZeroClipboard(document.getElementById("post_url_copy"), {
        moviePath: "<?=$board_skin_path?>/mw.js/ZeroClipboard.swf"
    });

    clip.on( "load", function(client) {
        // alert( "movie is loaded" );
        clip.setText($("#post_url").text());

        client.on( "complete", function(client, args) {
        // `this` is the element that was clicked
            clip.setText($("#post_url").text());
            alert("클립보드에 복사되었습니다. \'Ctrl+V\'를 눌러 붙여넣기 해주세요.");
        });
    });
}
$(document).ready(function () {
    if ($("#post_url").text()) {
        initClipboard();
    }
});
</script>
-->

<? if ($mw_basic[cf_source_copy]) { // 출처 자동 복사 ?>
<? $copy_url = $shorten ? $shorten : set_http("{$g4[url]}/{$g4[bbs]}/board.php?bo_table={$bo_table}&wr_id={$wr_id}"); ?>
<script type="text/javascript" src="<?=$board_skin_path?>/mw.js/autosourcing.open.compact.js"></script>
<style type="text/css">
DIV.autosourcing-stub { display:none }
DIV.autosourcing-stub-extra { position:absolute; opacity:0 }
</style>

 

 

 


<script type="text/javascript">
AutoSourcing.setTemplate("<p style='margin:11px 0 7px 0;padding:0'> <a href='{link}' target='_blank'> [출처] {title} - {link}</a> </p>");
AutoSourcing.setString(<?=$wr_id?> ,"<?=$config[cf_title];//$view[wr_subject]?>", "<?=$view[wr_name]?>", "<?=$copy_url?>");
AutoSourcing.init( 'view_%id%' , true);
</script>
<? } ?>

<? if ($mw_basic[cf_content_align] && $write[wr_align]) { ?>
<style>
#view_content { text-align:<?=$write[wr_align]?>; }
</style>
<? } ?>


<!-- 게시글 보기 시작 -->
<table width="<?=$bo_table_width?>" align="center" cellpadding="0" cellspacing="0"><tr><td valign="top" id=mw_basic>

<?  if ($mw_basic['cf_include_head'] && file_exists($mw_basic['cf_include_head']) && strstr($mw_basic[cf_include_head_page], '/v/'))
    include_once($mw_basic[cf_include_head]); ?>
<? if ($mw_basic[cf_type] != "desc") { /* 웹진형 게시판이 아닐때 */ ?>
<!--<div style="border:1px dotted #ddd; padding:8px 18px 18px 18px; margin-bottom:10px; background-color:#f5f6f6;">
<h2 style="color:#CC0000;"><?=$board[bo_subject]?></h2>
를 찾아주셔서 감사합니다. 오늘 하루도 즐거운 시간되세요!
</div>-->
<? } ?>


<!--<? if ($mw_basic[cf_type] == "desc") { /* 웹진형 게시판일때 광고만 노출*/ ?>
<div style="margin-bottom:10px;">
<iframe scrolling="no" src="http://minishop.linkprice.com/minishop.php?minishop_id=neoclick_cpc1&affiliate_id=A100266790&width=728&height=102&border=Y&arr_style=W&code=MPK_linkprice_550" width="728" height="102" border="0" frameborder="0" marginwidth="0" marginheight="0" leftmargin="0" topmargin="0"></iframe>
</div>
<? } ?>-->

<body>

<div id="align">
<div id="layout">

<div id="header">

<!--------------------top----------------------------------------------------------------->


<table border="0" width="1200" height="141" align="center" bgcolor="white">
 
 

  <tr>

   <td height="30" class="tdc" width="1200" colspan="3"><iframe src="http://realauto.godohosting.com/mw-builder/bbs/top_top.php" width="1200" height="30" frameborder="0" scrolling="no"></iframe><hr color="black"></td>
  </tr>


 
 
 <tr>

  <td width="200"><a href="http://realauto.godohosting.com/index.php"><img src="http://realauto.godohosting.com/images/logo.JPG" border="0"></a></td>

  <td width="900">

 

<iframe src="http://realauto.godohosting.com/cssmenu/menu.php" width="900" height="110" frameborder="0" scrolling="no"></iframe>

 


  </td>

  <td width="100"> </td>

 </tr>

 </table>

<!----------------------------------------------------------------------------------------->

</div> <!-- 헤더 끝 -->


<div id="leftside">
<br><br>
<iframe src="http://realauto.godohosting.com/sidemenu/sidemenu.php" width="200" height="700" frameborder="0" scrolling="no"></iframe>
</div><!--leftside 메뉴 끝-->

 

 

<div id="content">


<!-- 분류 셀렉트 박스, 게시물 몇건, 관리자화면 링크 -->
<!--<table width="100%">-->
<table width="950" align="center">
<? if ($is_admin) { ?>
<tr height="25">
    <td width="30%">
        <form name="fcategory_view" method="get" style="margin:0;">
        <? if ($is_category && !$mw_basic[cf_category_tab]) { ?>
            <select name=sca onchange="location='<?=$category_location?>'+this.value;">
            <? if (!$mw_basic[cf_default_category]) { ?> <option value=''>전체</option> <? } ?>
            <?=$category_option?>
            </select>
        <? } ?>
        </form>
    </td>
    <td align="right">
  <? if ($mw_basic[cf_social_commerce]) { ?>
        <span class=mw_basic_total style="cursor:pointer;" onclick="win_open('<?=$social_commerce_path?>/order_list.php?bo_table=<?=$bo_table?>', 'order_list', 'width=800,height=600,scrollbars=1');">[주문내역]</span>
        <? } ?>
        <? include("$board_skin_path/mw.proc/mw.smart-alarm-config.php") ?>
        <span class=mw_basic_total>총 게시물 <?=number_format($total_count)?>건, 최근 <?=number_format($new_count)?> 건</span>
        <? if ($is_admin && $mw_basic[cf_collect] == 'rss-collect' && file_exists("$g4[path]/plugin/rss-collect/_lib.php")) {?>
        <img src="<?=$g4[path]?>/plugin/rss-collect/img/btn_collect.png" align="absmiddle" style="cursor:pointer;" onclick="win_open('<?=$g4[path]?>/plugin/rss-collect/config.php?bo_table=<?=$bo_table?>', 'rss_collect', 'width=800,height=600,scrollbars=1')">
        <? } ?>
  <? if ($is_admin && $mw_basic[cf_collect] == 'youtube' && file_exists("$g4[path]/plugin/youtube-collect/_lib.php")) {?>
        <img src="<?=$g4[path]?>/plugin/youtube-collect/img/btn_collect.png" align="absmiddle" style="cursor:pointer;" onclick="win_open('<?=$g4[path]?>/plugin/youtube-collect/config.php?bo_table=<?=$bo_table?>', 'youtube_collect', 'width=800,height=600,scrollbars=1')">
        <? } ?>
        <a style="cursor:pointer" class="tooltip"
            title="읽기:<?=$board[bo_read_point]?>,
            쓰기:<?=$board[bo_write_point]?><?
            if ($mw_basic[cf_contents_shop_write]) { echo " ($mw_cash[cf_cash_name]$mw_basic[cf_contents_shop_write_cash]$mw_cash[cf_cash_unit])"; } ?>,
            댓글:<?=$board[bo_comment_point]?>,
            다운:<?=$board[bo_download_point]?>"><!--
        --><img src='<?=$board_skin_path?>/img/btn_info.gif' border=0 align=absmiddle></a>
        <? if ($mw_basic[cf_social_commerce] && $rss_href && file_exists("$social_commerce_path/img/xml.png")) { ?>
            <a href='<?=$social_commerce_path?>/xml.php?bo_table=<?=$bo_table?>'><img src='<?=$social_commerce_path?>/img/xml.png' border=0 align=absmiddle></a>
        <? } else if ($rss_href) { ?><a href='<?=$rss_href?>'><img src='<?=$board_skin_path?>/img/btn_rss.gif' border=0 align=absmiddle></a><?}?>
        <? if ($is_admin == "super") { ?><a href="<?=$config_href?>"><img src="<?=$board_skin_path?>/img/btn_config.gif" title="스킨설정" border="0" align="absmiddle"></a><?}?>
        <? if ($admin_href) { ?><a href="<?=$admin_href?>"><img src="<?=$board_skin_path?>/img/btn_admin.gif" title="관리자" width="63" height="22" border="0" align="absmiddle"></a><?}?>
    </td>
</tr>
<? } else { // 비회원 ?>
<tr height="32">
    <td width="30%" style="padding-top:5px; padding-bottom:5px;">
        <? echo "<a href=\"$list_href\"><img src='$board_skin_path/img/btn_list.gif' border='0' align='absmiddle'></a> "; ?>
    </td>
    <td align="right" style="padding-top:8px;">
     <span class=mw_basic_total>게시물 <span style="color:#3399FF; font-weight:bold;"><?=number_format($total_count)?></span>개의 게시글이 있습니다.</span>
    </td>
</tr>
<? } ?>
</table>

<?
if ($is_category && $mw_basic[cf_category_tab]) {
    $category_list = explode("|", $board[bo_category_list]);
?>
<div class="category_tab">
<ul>
    <? if (!$mw_basic[cf_default_category]) { ?>
    <li <? if (!$sca) echo "class='selected'";?>><div><a href="<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>">전체</a></div></li>
    <? } ?>
    <? for ($i=0, $m=sizeof($category_list); $i<$m; $i++) { ?>
    <li <? if (urldecode($sca) == $category_list[$i]) echo "class='selected'";?>><div><a
        href="<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>&sca=<?=urlencode($category_list[$i])?>"><?=$category_list[$i]?></a></div></li>
    <? } ?>
</ul>
</div>
<? } ?>

<?// include_once("$board_skin_path/mw.proc/mw.list.hot.skin.php"); ?>


<script type="text/javascript">
<?  if (!$mw_basic[cf_category_tab]) { ?>
if ('<?=$sca?>') document.fcategory_view.sca.value = '<?=urlencode($sca)?>';
<? } ?>
</script>

<? include_once("$board_skin_path/mw.proc/mw.notice.top.php") ?>

<? include_once("$board_skin_path/mw.proc/mw.search.top.php") ?>

<? include_once("$board_skin_path/mw.proc/mw.cash.membership.skin.php") ?>
<? /* ?>
<!-- 링크 버튼 -->
<?
ob_start();
?>
<!--<table width=100%>-->
<table width="950" align="center">
<tr height=35>
    <td>
        <? if ($search_href) { echo "<a href=\"$search_href\"><img src='$board_skin_path/img/btn_search_list.gif' border='0' align='absmiddle'></a> "; } ?>
        <? echo "<a href=\"$list_href\"><img src='$board_skin_path/img/btn_list.gif' border='0' align='absmiddle'></a> "; ?>

        <? if ($write_href) { echo "<a href=\"$write_href\"><img src='$board_skin_path/img/btn_write.gif' border='0' align='absmiddle'></a> "; } ?>
        <? if ($reply_href) { echo "<a href=\"$reply_href\"><img src='$board_skin_path/img/btn_reply.gif' border='0' align='absmiddle'></a> "; } ?>

        <? if ($update_href) { echo "<a href=\"$update_href\"><img src='$board_skin_path/img/btn_update.gif' border='0' align='absmiddle'></a> "; } ?>
        <? if ($delete_href) { echo "<a href=\"$delete_href\"><img src='$board_skin_path/img/btn_delete.gif' border='0' align='absmiddle'></a> "; } ?>

        <? //if ($good_href) { echo "<a href=\"$good_href\" target='hiddenframe'><img src='$board_skin_path/img/btn_good.gif' border='0' align='absmiddle'></a> "; } ?>
        <? //if ($nogood_href) { echo "<a href=\"$nogood_href\" target='hiddenframe'><img src='$board_skin_path/img/btn_nogood.gif' border='0' align='absmiddle'></a> "; } ?>

        <? //if ($scrap_href) { echo "<a href=\"javascript:;\" onclick=\"win_scrap('$scrap_href');\"><img src='$board_skin_path/img/btn_scrap.gif' border='0' align='absmiddle'></a> "; } ?>

    </td>
    <td align=right>
        <? if ($prev_href) { echo "<input type=image src=\"$board_skin_path/img/btn_prev.gif\" onclick=\"location.href='$prev_href'\" title=\"$prev_wr_subject\" accesskey='b'> "; } ?>
        <? if ($next_href) { echo "<input type=image src=\"$board_skin_path/img/btn_next.gif\" onclick=\"location.href='$next_href'\" title=\"$next_wr_subject\" accesskey='n'> "; } ?>
    </td>
</tr>
</table>
<?
$link_buttons = ob_get_contents();
ob_end_flush();
?>
<? */ ?>

<!---여기서 부터가 박스부분-------------->
<!-- 제목, 글쓴이, 날짜, 조회, 추천, 비추천 -->

<article>
<table width="950" align="center" cellspacing="0" cellpadding="0" style="border-top:1px solid #dae4e4; border-left:1px solid #dae4e4; border-right:1px solid #dae4e4;">
<tr><td valign="top">
<table width="950" cellspacing="0" cellpadding="0" align="center">
<tr>
    <td>
  <!-- 게시판 타이틀부분 -->
  <table width="950" border="0" cellspacing="0" cellpadding="0" style="background-color:#f5f8f9; padding:10px;">
  <tr>
    <td width="950" align="center" class=mw_basic_view_subject>
     <header>
        <h1><img src="<?=$board_skin_path?>/img/qna_q_icon.gif" align=absmiddle border="0" style="margin-right:10px;" />
  <? if ($view[wr_is_mobile]) echo "<img src='$board_skin_path/img/icon_mobile.png' class='mobile_icon'>"; ?>
        <? if ($is_category) { echo ($category_name ? "[$view[ca_name]] " : ""); } ?>
        <?=cut_hangul_last(get_text($view[wr_subject]))?> <?=$view[icon_secret]?></h1>
        <? if ($mw_basic[cf_reward]) echo " <img src='$board_skin_path/img/btn_reward_$reward[re_status].gif' align='absmiddle'>"; ?>
        <? if ($mw_basic[cf_attribute] == 'qna' && !$view[is_notice]) { ?>
        <img src="<?=$board_skin_path?>/img/icon_qna_<?=$view[wr_qna_status]?>.png" align="absmiddle"></span> <?}?>
      </header>
     </td>
    
 <?
        $tmpsize = array(0, 0);
        $is_comment_image = false;
        $comment_image = mw_get_noimage();
        if ($mw_basic[cf_attribute] != "$view[mb_id]" && !$view[wr_anonymous] && $view[mb_id] && file_exists("$comment_image_path/{$view[mb_id]}")) {
            $comment_image = "$comment_image_path/{$view[mb_id]}";
            $is_comment_image = true;
            $tmpsize = @getImageSize($comment_image);
        }
   
        $signature = preg_replace("/<a[\s]+href=[\'\"](http:[^\'\"]+)[\'\"][^>]+>(.*)<\/a>/i", "[$1 $2]", $signature);
        $signature = nl2br(strip_tags($signature));
        $signature = preg_replace("/\[([^\s]+) ([^\]]+)\]/i", "<a href='$1'>$2</a>", $signature);
        //$signature = htmlspecialchars($signature);
    ?>
     <td width="90" class="mw_basic_view_subject_img" valign="middle" align="center">

        <img src="<?=$comment_image?>" class="comment_image_view" onclick="mw_image_window(this, <?=$tmpsize[0]?>, <?=$tmpsize[1]?>);">

                <? if (($is_member && $view[mb_id] == $member[mb_id] && !$view[wr_anonymous]) || $is_admin) { ?>
                <div style="margin:0 0 0 10px;"><a href="javascript:mw_member_photo('<?=$view[mb_id]?>')"
                    style="font:normal 11px 'gulim'; color:#888; text-decoration:none;"><? echo $is_comment_image ? "사진변경" : "사진등록"; ?></a></div>
                <? } ?>
                <script type="text/javascript">
                function mw_member_photo(mb_id) {
                    win_open('<?=$board_skin_path?>/mw.proc/mw.comment.image.php?bo_table=<?=$bo_table?>&mb_id='+mb_id,'comment_image','width=500,height=350');
                }
                </script>

      </td>
  </tr>
  <tr>
    <td colspan="2" height="32">
    <? if ($mw_basic[cf_contents_shop]) { // 배추 컨텐츠샵 ?>
 <strong>가격</strong> :
 <span class="mw_basic_contents_price"><?=$mw_price?></span>
      
 <? } ?>
        <? //if ($mw_basic[cf_attribute] != "anonymous") { ?>
 <span class=mw_basic_view_name> <?=$view[name]?>
        <? if ($mw_basic[cf_icon_level] && !$view[wr_anonymous] && $mw_basic[cf_attribute] != "anonymous" && $write[mb_id] && $write[mb_id] != $config[cf_admin]) { ?>
        <span class="icon_level<?=mw_get_level($write[mb_id])+1?>" style="border:1px solid #ddd;">                 </span>
        <? } ?>
 <? if ($is_ip_view && $ip) { ?>
  (<?=$ip?>)
        <? if ($is_admin) { ?>
            <img src="<?=$board_skin_path?>/img/btn_ip.gif" align=absmiddle title='IP조회' style="cursor:pointer" onclick="btn_ip('<?=$view[wr_ip]?>')">
            <img src="<?=$board_skin_path?>/img/btn_ip_search.gif" align=absmiddle title='IP검색' style="cursor:pointer" onclick="btn_ip_search('<?=$view[wr_ip]?>')">
        <? } ?>
 <? //} // mw_basic[cf_attribute] != 'anonymous'?>
 </span>
        <? } ?>
        날짜 : <span class=mw_basic_view_datetime><?=substr($view[wr_datetime],0,10)." (".get_yoil($view[wr_datetime]).") ".substr($view[wr_datetime],11,5)?></span>
        조회 : <span class=mw_basic_view_hit><?=$view[wr_hit]?></span>
        <? /*if ($is_good) { ?>추천 : <span class=mw_basic_view_good><?=$view[wr_good]?></span><?}*/?>
        <? /*if ($is_nogood) { ?>비추천 : <span class=mw_basic_view_nogood><?=$view[wr_nogood]?></span><?}*/?>
        <? if ($singo_href) { ?><a href="<?=$singo_href?>"><img src="<?=$board_skin_path?>/img/btn_singo2.gif" align=absmiddle title='신고'></a><?}?>
        <? if ($print_href) { ?><a href="<?=$print_href?>"><img src="<?=$board_skin_path?>/img/btn_print.gif" align=absmiddle title='인쇄'></a><?}?>
    </td>
  </tr>
</table>
 <!-- 게시판 타이틀부분 end-->
    </td>
</tr>
<?  if ($mw_basic[cf_umz]) { // 짧은 글주소 사용 ?>
<tr><td height=1 bgcolor=#E7E7E7></td></tr>
<tr>
    <td height=30 class=mw_basic_view_title>
        글주소 : <span id="post_url"><?=$view[wr_umz]?></span>
        <img src="<?=$board_skin_path?>/img/copy.png" id="post_url_copy" align="absmiddle">
        <? if ($is_admin) { ?>
        <span id='btn_get_umz'><a><img src="<?=$board_skin_path?>/img/reumz.png" align="absmiddle"/></a></span>
        <script type="text/javascript">
        $(document).ready(function () {
            $("#btn_get_umz a").css("cursor", "pointer");
            $("#btn_get_umz").bind("click", function () {
                tmp = $("#btn_get_umz").html();
                $("#btn_get_umz").html("<img src='<?=$board_skin_path?>/img/icon_loading.gif' height='16' align='absmiddle'/>");
                $.get("<?=$board_skin_path?>/mw.proc/mw.umz.php", { 'bo_table':'<?=$bo_table?>', 'wr_id':'<?=$wr_id?>' }, function (url) {
                    if (url)
                        $("#post_url").text(url);
                    $("#btn_get_umz").html(tmp);
                });
            });
        });
        </script>
        <?} ?>
    </td>
</tr>
<? } ?>

<? if ($mw_basic[cf_shorten]) { ?>
<tr><td height=1 bgcolor=#E7E7E7></td></tr>
<tr>
    <td height=30 class=mw_basic_view_title>
        글주소 : <span id="post_url"><?=$shorten?></span>
        <img src="<?=$board_skin_path?>/img/copy.png" id="post_url_copy" align="absmiddle">
    </td>
</tr>
<? } ?>

<? if ($mw_basic[cf_include_file_head]) { echo "<tr><td>"; @include_once($mw_basic[cf_include_file_head]); echo "</td></tr>"; } ?>

<? if ($mw_basic[cf_file_head]) { echo "<tr><td>$mw_basic[cf_file_head]</td></tr>"; } ?>
<?
// 가변 파일
$cnt = 0;
for ($i=0; $i<count($view[file]); $i++) {
    if ($view[file][$i][source] && !$view[file][$i][view] && !$view[file][$i][movie]) {
        $cnt++;
?>
<tr><td height=1 bgcolor=#E7E7E7></td></tr>
<tr>
    <td class=mw_basic_view_file>
        <a href="javascript:file_download('<?=$view[file][$i][href]?>', '<?=$i?>');" title="<?=$view[file][$i][content]?>">
        <img src="<?=$board_skin_path?>/img/icon_file_down.gif" align=absmiddle>
        <?=$view[file][$i][source]?></a>
        <span class=mw_basic_view_file_info> (<?=$view[file][$i][size]?>), Down : <?=$view[file][$i][download]?>, <?=$view[file][$i][datetime]?></span>
  <? if ($good_href) { ?>
        <img src="<?=$board_skin_path?>/img/btn_down_good.png" align="absmiddle" style="cursor:pointer;" onclick="mw_good_act_nocancel('good')"/>
        <? } ?>
    </td>
</tr>
<?
    }
}

// 링크
$cnt = 0;
for ($i=1; $i<=$g4[link_count]; $i++) {
    if ($view[link][$i]) {
        $cnt++;
        $link = cut_str($view[link][$i], 70);
?>
<tr><td height=1 bgcolor=#E7E7E7></td></tr>
<tr>
    <td class=mw_basic_view_link>
        <img src='<?=$board_skin_path?>/img/icon_link.gif' align=absmiddle>
        <a href='<?=$view[link_href][$i]?>' target='<?=$view[link_target][$i]?>'><?=$link?></a>
        <span class=mw_basic_view_link_info>(<?=$view[link_hit][$i]?>)</span>
        <span><img src="<?=$board_skin_path?>/img/qr.png" class="qr_code" value="<?=$view[link][$i]?>" align="absmiddle"></span>
    </td>
</tr>
<?
    }
}
?>

<script type="text/javascript">
$(document).ready(function () {
    $("#mw_basic").append("<div id='qr_code_layer'>QR CODE</div>");
    $(".qr_code").css("cursor", "pointer");
    $(".qr_code").toggle(function () {
        var url = $(this).attr("value");
        var x = $(this).offset().top;
        var y = $(this).offset().left;

        //$(".qr_code").append("<div");
        $("#qr_code_layer").hide("fast");

        $("#qr_code_layer").css("position", "absolute");
        $("#qr_code_layer").css("top", x + 20);
        $("#qr_code_layer").css("left", y);
        $("#qr_code_layer").html("<div class='qr_code_google'><img src='http://chart.apis.google.com/chart?cht=qr&chld=H|2&chs=100&chl="+url+"'></div>");
        $("#qr_code_layer").html($("#qr_code_layer").html() + "<div class='qr_code_info'>모바일로 QR코드를 스캔하면 웹사이트 또는 모바일사이트에 바로 접속할 수 있습니다.</div>");
        $("#qr_code_layer").show("fast");
    }, function () {
        $("#qr_code_layer").hide("fast");
    });
});
</script>
<style type="text/css">
#qr_code_layer { display:none; position:absolute; background-color:#fff; border:2px solid #ccc; padding:10px; width:280px; }
#qr_code_layer .qr_code_google { border:5px solid #469CE0; float:left; }
#qr_code_layer .qr_code_google img { width:100px; height:100px; }
#qr_code_layer .qr_code_info { float:left; margin:0 0 0 10px; width:115px; font:normal 12px 'gulim'; line-height:18px; color:#555; }
</style>

<? if ($mw_basic[cf_file_tail]) { echo "<tr><td>$mw_basic[cf_file_tail]</td></tr>"; } ?>

<? if ($mw_basic[cf_include_file_tail]) { echo "<tr><td>"; @include_once($mw_basic[cf_include_file_tail]); echo "</td></tr>"; } ?>
<? /* ?>
<? if ($is_admin || $history_href || $is_singo_admin) { ?>
<tr><td height=1 bgcolor=#E7E7E7></td></tr>
<tr>
    <td height=40 class="func_buttons">
        <?
        ob_start();
        if ($is_singo_admin && $view[mb_id] != $member[mb_id]) {
            echo "<span><a href=\"javascript:btn_intercept('{$write[mb_id]}', '{$write[wr_ip]}')\">";
            echo "<img src='$board_skin_path/img/btn_intercept.gif' border='0' align='absmiddle'></a></span>";

        }
        if ($history_href) {
            echo "<span><a href=\"$history_href\"><img src='$board_skin_path/img/btn_history.gif' border='0' align='absmiddle'></a></span>";
        }
 if ($is_admin) {
            if ($download_log_href) {
                echo "<span><a href=\"$download_log_href\"><img src='$board_skin_path/img/btn_download_log.gif' border='0' align='absmiddle'></a></span>";
            }
            if ($link_log_href) {
                echo "<span><a href=\"$link_log_href\"><img src='$board_skin_path/img/btn_link_log.gif' border='0' align='absmiddle'></a></span>";
            }
            if ($copy_href) {
                echo "<span><a href=\"$copy_href\"><img src='$board_skin_path/img/btn_copy.gif' border='0' align='absmiddle'></a></span>";
            }
            if ($move_href) {
                echo "<span><a href=\"$move_href\"><img src='$board_skin_path/img/btn_move.gif' border='0' align='absmiddle'></a></span>";
            }
            if ($is_category) {
                echo "<span><a href=\"javascript:mw_move_cate_one();\"><img src=\"$board_skin_path/img/btn_select_cate.gif\" border=\"0\" align='absmiddle'></a></span>";
            }
            if ($nosecret_href) {
                echo "<span><a href=\"$nosecret_href\"><img src='$board_skin_path/img/btn_nosecret.gif' border='0' align='absmiddle'></a></span>";
            }
            if ($secret_href) {
                echo "<span><a href=\"$secret_href\"><img src='$board_skin_path/img/btn_secret.gif' border='0' align='absmiddle'></a></span>";
            }

            echo "<span><a href=\"javascript:btn_now()\"><img src='$board_skin_path/img/btn_now.gif' border='0' align='absmiddle'></a></span>";

            if ($view[is_notice]) $btn_notice = '_off'; else $btn_notice = '';
            echo "<span><a href=\"javascript:btn_notice()\"><img src='$board_skin_path/img/btn_notice{$btn_notice}.gif'";
            echo " border='0' align='absmiddle'></a></span>";

            if ($view[wr_comment_hide]) $btn_comment_hide = '_no'; else $btn_comment_hide = '';
            echo "<span><img src='$board_skin_path/img/btn_comment_hide{$btn_comment_hide}.gif' ";
            echo "onclick='btn_comment_hide()' style='cursor:pointer' align='absmiddle'></span>";

            if ($is_admin == "super") {
                echo "<span><img src=\"$board_skin_path/img/btn_member_email.gif\" style=\"cursor:pointer;\" ";
                echo "onclick=\"void(mw_member_email())\" align=\"absmiddle\"></span>";
            }

            $row = sql_fetch("select * from $mw[popup_notice_table] where bo_table = '$bo_table' and wr_id = '$wr_id'", false);
            if ($row) { $btn_popup = '_off'; $is_popup = true; } else { $btn_popup = ''; $is_popup = false; }
            echo "<span><a href=\"javascript:btn_popup()\"><img src='$board_skin_path/img/btn_popup{$btn_popup}.png' border='0' align='absmiddle'></a></span>";

            echo "<span><a href=\"javascript:void(btn_copy_new())\"><img src='$board_skin_path/img/btn_copy_new.png' border='0' align='absmiddle'></a></span>";

            if ($write[wr_view_block]) { $btn_block = '_off'; } else { $btn_block = ''; }
            echo "<span><a href=\"javascript:btn_view_block()\"><img src='$board_skin_path/img/btn_view_block{$btn_block}.png' ";
            echo "border='0' align='absmiddle'></a></span>";
        }
        $mw_admin_button = ob_get_contents();
        ob_end_flush();
        ?>
        <div class="block"></div>
    </td>
</tr>
<? } ?>
<? */ ?>
<? if ($mw_basic[cf_social_commerce]) { ?>
<tr>
    <td>
        <? include("$social_commerce_path/view.skin.php") ?>
    </td>
</tr>
<? } ?>

<?
$bomb = sql_fetch(" select * from $mw[bomb_table] where bo_table = '$bo_table' and wr_id = '$wr_id' ");
if ($bomb) {
?>
<tr>
    <td>
        <div class="mw_basic_view_bomb">
        <img src="<?=$board_skin_path?>/img/icon_bomb.gif" align="absmiddle"> 
        이 게시물이 자동 폭파되기까지 <span id="bomb_end_timer"></span> 남았습니다.
  </div>
        <script type="text/javascript">
        var bomb_end_time = <?=(strtotime($bomb[bm_datetime])-$g4[server_time])?>;
        function bomb_run_timer()
        {
            var timer = document.getElementById("bomb_end_timer");

            dd = Math.floor(bomb_end_time/(60*60*24));
            hh = Math.floor((bomb_end_time%(60*60*24))/(60*60));
            mm = Math.floor(((bomb_end_time%(60*60*24))%(60*60))/60);
            ii = Math.floor((((bomb_end_time%(60*60*24))%(60*60))%60));

            var str = "";

            if (dd > 0) str += dd + "일 ";
            if (hh > 0) str += hh + "시간 ";
            if (mm > 0) str += mm + "분 ";
            str += ii + "초 ";

            //timer.style.color = "#FF6C00";
            timer.style.color = "#FF0000";
            timer.style.fontWeight = "bold";
            timer.innerHTML = str;

            bomb_end_time--;

            if (bomb_end_time <= 0)  {
                clearInterval(bomb_tid);
                location.href = "<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>";
            }
        }
        bomb_run_timer();
        bomb_tid = setInterval('bomb_run_timer()', 1000);
        </script>
    </td>
</tr>
<? } ?>

<tr>
    <td class="mw_basic_view_content">
        <p>
        <div style="height:14px;"><!-- --></div>
        <div id=view_<?=$wr_id?>>

        <? @include_once($mw_basic[cf_include_view_head])?>

        <?=bc_code($mw_basic[cf_content_head], 1, 1)?>

        <div id="view_content">

        <? if ($mw_basic[cf_reward] && $reward[url]) { // 리워드 ?>
        <style type="text/css">
        .reward_button { background:url(<?=$board_skin_path?>/img/btn_reward_click.jpg) no-repeat; width:140px; height:60px; cursor:pointer; margin:0 0 10px 0; }
        .reward_click { margin:10px 0 10px 0; font-weight:bold; }
        .reward_info { margin:0 0 30px 0; }
        </style>
        <div class="reward_button" onclick="<?=$reward[script]?>"></div>
        <div class="reward_click">↑ 위 배너를 클릭하시면 됩니다 </div>
        <div class="reward_info">
        <div class="point">적립 : <?=number_format($reward[re_point])?> P</div>
        <div class="edate">마감 : <?=$reward[re_edate]?></div>
        </div>
        <? } ?>

        <?  if ($mw_basic['cf_lightbox'] && $mw_basic['cf_lightbox'] <= $mb['mb_level'] && $view['wr_lightbox']) { ?>
        <script> board_skin_path = "<?=$board_skin_path?>"; </script>
        <script src="<?=$board_skin_path?>/mw.js/lightbox/js/jquery-1.7.2.min.js"></script>
        <script src="<?=$board_skin_path?>/mw.js/lightbox/js/lightbox.js"></script>
        <link href="<?=$board_skin_path?>/mw.js/lightbox/css/lightbox.css" rel="stylesheet" />

        <div class="lightbox_container">
        <?
        mw_make_lightbox();
        for ($i=$file_start; $i<=$view['file']['count']; $i++) {
            $file = $view['file'][$i];
            if (!$file['view']) continue;
            if ($cf_img_1_noview) {
                $cf_img_1_noview = false;
                continue;
            }
            $lightbox_file = "{$file['path']}/{$file['file']}";
            $lightbox_thumb = "{$lightbox_path}/{$wr_id}-{$i}";

            echo "\n<a href=\"{$lightbox_file}\" rel=\"lightbox[roadtrip]\"><img src=\"{$lightbox_thumb}\"></a>";
        }
        ?>
        </div>
        <? } ?>

        <?echo $view[rich_content]; // view_image($view, '0', '') 과 같은 코드를 사용할 경우?>

  <?=bc_code($mw_basic[cf_content_add], 1, 1)?>
        <? @include_once($mw_basic[cf_include_view])?>

        </div>

        <? if ($mw_basic[cf_zzal] && $file_viewer) { ?>
        <div class=mw_basic_view_zzal>
            <input type=button id=zzbtn value="<?=$view[wr_zzal]?> 보기" onclick="zzalview()" class=mw_basic_view_zzal_button>

            <script language=javascript>
            function zzalview()
            {
                var zzb = document.getElementById("zzb");
                var btn = document.getElementById("zzbtn");
                if (zzb.style.display == "none")
                {
                    zzb.style.display = "block";
                    btn.value = "<?=$view[wr_zzal]?> 가리기";
                    //resizeBoardImage(650);
                }
                else
                {
                    zzb.style.display = "none";
                    btn.value = "<?=$view[wr_zzal]?> 보기";
                }
            }
            </script>

            <div id=zzb style="display:none; margin-top:20px;"><?=$file_viewer?></div>
        </div>
        <? } ?>

        <?php
        if (!$ob_exam_flag) echo $ob_exam;
        if (!$ob_marketdb_flag) echo $ob_marketdb;
        ?>

 
        <!-- 테러 태그 방지용 --></xml></xmp><a href=""></a><a href=''></a>

        <? if ($mw_basic[cf_ccl] && $view[wr_ccl][by]) { ?>
        <div class=mw_basic_ccl>
        <a rel="license" href="<?=$view[wr_ccl][link]?>" title="<?=$view[wr_ccl][msg]?>" target=_blank>
        <img src="<?=$board_skin_path?>/mw.ccl/ccls_by.gif">
        <? if ($view[wr_ccl][nc] == "nc") { ?><img src="<?=$board_skin_path?>/mw.ccl/ccls_nc.gif"><? } ?>
        <? if ($view[wr_ccl][nd] == "nd") { ?><img src="<?=$board_skin_path?>/mw.ccl/ccls_nd.gif"><? } ?>
        <? if ($view[wr_ccl][nd] == "sa") { ?><img src="<?=$board_skin_path?>/mw.ccl/ccls_sa.gif"><? } ?>
        </a>
        </div>
        <? } ?>

        <? if ($board[bo_use_good] || $board[bo_use_nogood]) { // 추천, 비추천?>
            <div id="mw_good"></div>

            <script type="text/javascript">
            function mw_good_load() {
                $.get("<?=$board_skin_path?>/mw.proc/mw.good.php?bo_table=<?=$bo_table?>&wr_id=<?=$wr_id?>", function (data) {
                    $("#mw_good").html(data);
                });
            }
            function mw_good_act(good) {
                if (good == "nogood") {
                    flag = false;
                    $.ajax({
                        url: "<?=$board_skin_path?>/mw.proc/mw.good.confirm.php",
                        type: "post",
                        async: false,
                        data: { 'bo_table':'<?=$bo_table?>', 'wr_id':'<?=$wr_id?>' },
                        success: function (str) {
                            if (str == 'true') {
                                flag = true;
                            }
                        }
                    });

                    if (!flag && !confirm("정말 비추천하시겠습니까?")) return;
                }

                $.get("<?=$board_skin_path?>/mw.proc/mw.good.act.php?bo_table=<?=$bo_table?>&wr_id=<?=$wr_id?>&good="+good, function (data) {
                    alert(data);
                    mw_good_load();
                });
            }
            function mw_good_act_nocancel(good) {
                $.get("<?=$board_skin_path?>/mw.proc/mw.good.act.php?bo_table=<?=$bo_table?>&wr_id=<?=$wr_id?>&good="+good+"&no_cancel=1", function (data) {
                    alert(data);
                    mw_good_load();
                });
            }

            mw_good_load();
            </script>
        <? } ?>

        <?=bc_code($mw_basic[cf_content_tail], 1, 1)?>

        <? @include_once($mw_basic[cf_include_view_tail])?>

        </div>
        </p>
        <div style="height:24px; clear:both;"><!-- --></div>
    </td>
</tr>

 

<? if ($mw_basic[cf_talent_market]) { ?>
<tr>
    <td>
        <?php echo $talent_market_content; ?>
    </td>
</tr>
<? } ?>

<? if ($mw_basic[cf_google_map] && trim($write[wr_google_map]) && !$google_map_is_view

이 질문에 댓글 쓰기 :

답변 1

가장 간단한 방법으로는 

 

내용부분에 동영상을 넣으려고 하지 마시고

여분필드를 활용하여 넣으시는 방법이 있습니다.

 

<tr>

<td class=write_head>동영상</td>

<td>

<? if ($is_dhtml_editor) { ?>

            <?=cheditor2('wr_1', $write[wr_1]);?>

        <? } else { ?>

<textarea id="wr_1" name="wr_1" style='width:100%;' rows=20 itemname="동영상">

        <?=$write[wr_1]?></textarea>

        <? } ?>

</td>

</tr> 

 

write.skin.php 부분에 위의 내용을 넣어서 여분필드1에 동영상 소스가 들어갈 수 있게 해주시구요.

뷰 페이지에서는 본 소스를 출력 시켜야 하기 때문에

<?php echo $view['wr_1'];?>를 넣어주세요.

답변을 작성하시기 전에 로그인 해주세요.
전체 12
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT