안녕하세요 유튜브 동영상관련해서 질문좀 드립니다.
질답게시판이 지금 등록이 안되서 요기에 질문좀 드립니다. "죄송합니다"
게시판에서 현재는 유튜뷰 동영상 소스를 긁어다가 플래쉬로 업로드 하고있는데요 이거를 그냥 동영상주소를
관련링크1#에 입력하면 동영상이 업로드 되게끔 구현 할려고 하는데요 너무 어렵네요 고수님들 한수 부탁합니다.
"감사합니다"
댓글 2개
11년 전
어렵지 않아요.
해당 주소를 내용에 넣게 합니다.
그리고 view.skin.php에 content라고 된 것을 wr_content로 고치면 본문 안에 나오게 됩니다.
물론 html 허용을 체크해야 겠지요.
해당 주소를 내용에 넣게 합니다.
그리고 view.skin.php에 content라고 된 것을 wr_content로 고치면 본문 안에 나오게 됩니다.
물론 html 허용을 체크해야 겠지요.
11년 전
민기만님 안되는데요 그렇게 간단하게 될수가 없을거라고 생각한는데요 아래 소스보시면 제가 지금 사용하고있지는 않지만
동영상 최신글인데요 관련링크#1에 링크걸면 바로 동영상 썸네일이 출력되고 내용보기도 가능하거든요 그래서 오늘 이소스를 보면서 적용해 볼려고 했는데 어렵더라구요 ㅡ.ㅡ
<?php
if (!defined("_GNUBOARD_")) exit; //개별 페이지 접근 불가
global $is_admin, $member;
$youtube_width = 500; //레이어 팝업 동영상 가로 크기
$youtube_height = 370; //레이어 팝업 동영상 세로 크기
$youtube_autoplay = 1; //레이어 팝업 동영상 자동재생 여부(자동재생하지 않으려면 '0' 입력)
?>
<script type="text/javascript" src="<?php echo $latest_skin_path; ?>/fancyzoom.js"></script>
<style type="text/css">
.mov_title_wrap {width:100%; height:26px; border:1px solid #ccc}
.mov_title a:link, .mov_title a:visited, .mov_title a:active, .mov_title a:hover {float:left; text-decoration:none; padding-left:8px; white-space:nowrap; font:bold 12px gulim, tahoma; color:#222; line-height:28px}
.mov_right_wrap {float:right; margin:3px 8px 0 0; width:150px}
.mov_btn_admin {float:right; margin:1px 1px 0; background:url(<?php echo $latest_skin_path; ?>/img/icon.gif) -5px 0; width:10px; height:18px}
.mov_btn_write {float:right; margin:1px 1px 0; background:url(<?php echo $latest_skin_path; ?>/img/icon.gif) -15px 0; width:20px; height:18px}
.mov_btn_more {float:right; margin:1px 1px 0; background:url(<?php echo $latest_skin_path; ?>/img/icon.gif) -35px 0; width:10px; height:18px}
.mov_latest_wrap {clear:both; position:relative}
.mov_latest_wrap ul.mov_list {clear:both; position:relative; margin:10px 0 0 0; padding:0; list-style:none; text-align:left}
.mov_latest_wrap ul.mov_list li {margin:5px 0; padding-left:10px; height:95px; border-bottom:1px dotted #ebebeb; font:normal 12px gulim, dotum; color:#999}
.mov_latest_wrap ul.mov_list .list_thumb {float:left}
.mov_latest_wrap ul.mov_list .list_explain {float:left; padding:2px 10px 0 10px}
.list_title_movie {padding-top:35px; padding-left:10px; font:bold 12px tahoma, gulim; color:#555}
.list_title_movie a:link, .list_title_movie a:visited, .list_title_movie a:active, .list_title_movie a:hover {text-decoration:none; color:#555}
.mov_no_list {padding:10px 0; font:normal 12px tahoma, gulim; color:#999; text-align:center}
</style>
<div class="mov_latest_wrap">
<div class="mov_title_wrap">
<div class="mov_title"><a href="<?php echo $g4[bbs_path]; ?>/board.php?bo_table=<?php echo $bo_table; ?>"><?php echo $board[bo_subject]; ?></a></div>
<div class="mov_right_wrap">
<div class="mov_btn_more"><a href="<?php echo $g4[bbs_path] ?>/board.php?bo_table=<?php echo $bo_table ?>"><img src="<?php echo $latest_skin_path; ?>/img/none.gif" width="10" height="18" border="0" alt="더보기"></a></div>
<?php if ($member[mb_level] >= $board[bo_write_level]) { ?>
<div class="mov_btn_write"><a href="<?php echo $g4[bbs_path]; ?>/write.php?bo_table=<?php echo $bo_table; ?><?php echo $write_href; ?>"><img src="<?php echo $latest_skin_path; ?>/img/none.gif" width="20" height="18" border="0" alt="글쓰기"></a></div>
<?php } ?>
<?php if ($is_admin == "super" || $is_auth) { ?>
<div class="mov_btn_admin"><a href="<?php echo $g4[path]; ?>/adm/board_form.php?w=u&bo_table=<?php echo $bo_table; ?>"><img src="<?php echo $latest_skin_path; ?>/img/none.gif" width="10" height="18" border="0" alt="게시판설정"></a></div>
<?php } ?>
</div>
</div>
<?php if (count($list) == 0) { ?>
<div class="mov_no_list">게시물이 없습니다.</div>
<?php } else { ?>
<ul class="mov_list">
<?php for ($i = 0; $i < count($list); $i++) {
$youtube_url = strstr($list[$i]['wr_link1'], '=');
$youtube_url = explode('&', $youtube_url);
$youtube_url = str_replace('=', '', $youtube_url[0]);
?>
<li>
<div class="list_thumb"><a href="#pic-<?php echo $bo_table; ?>_<?php echo $i; ?>" rel="next"><img src="http://img.youtube.com/vi/<?php echo $youtube_url; ?>/3.jpg" width="120" height="90" border="0" alt="" /></a> </div>
<div id="pic-<?php echo $bo_table; ?>_<?php echo $i; ?>" class="hide_movie">
<iframe src="http://www.youtube.com/embed/<?php echo $youtube_url; ?>?hl=ko_KR&version=3&rel=0&autoplay=<?php echo $youtube_autoplay; ?>" width="<?php echo $youtube_width; ?>" height="<?php echo $youtube_height; ?>" frameborder="0" allowfullscreen></iframe>
</div>
<div class="list_explain">
<div class="list_title_movie"><a href="<?php echo $list[$i]['href']; ?>"><?php echo $list[$i]['subject']; ?></a></div>
</div>
</li>
<?php } ?>
</ul>
<?php } ?>
</div>
동영상 최신글인데요 관련링크#1에 링크걸면 바로 동영상 썸네일이 출력되고 내용보기도 가능하거든요 그래서 오늘 이소스를 보면서 적용해 볼려고 했는데 어렵더라구요 ㅡ.ㅡ
<?php
if (!defined("_GNUBOARD_")) exit; //개별 페이지 접근 불가
global $is_admin, $member;
$youtube_width = 500; //레이어 팝업 동영상 가로 크기
$youtube_height = 370; //레이어 팝업 동영상 세로 크기
$youtube_autoplay = 1; //레이어 팝업 동영상 자동재생 여부(자동재생하지 않으려면 '0' 입력)
?>
<script type="text/javascript" src="<?php echo $latest_skin_path; ?>/fancyzoom.js"></script>
<style type="text/css">
.mov_title_wrap {width:100%; height:26px; border:1px solid #ccc}
.mov_title a:link, .mov_title a:visited, .mov_title a:active, .mov_title a:hover {float:left; text-decoration:none; padding-left:8px; white-space:nowrap; font:bold 12px gulim, tahoma; color:#222; line-height:28px}
.mov_right_wrap {float:right; margin:3px 8px 0 0; width:150px}
.mov_btn_admin {float:right; margin:1px 1px 0; background:url(<?php echo $latest_skin_path; ?>/img/icon.gif) -5px 0; width:10px; height:18px}
.mov_btn_write {float:right; margin:1px 1px 0; background:url(<?php echo $latest_skin_path; ?>/img/icon.gif) -15px 0; width:20px; height:18px}
.mov_btn_more {float:right; margin:1px 1px 0; background:url(<?php echo $latest_skin_path; ?>/img/icon.gif) -35px 0; width:10px; height:18px}
.mov_latest_wrap {clear:both; position:relative}
.mov_latest_wrap ul.mov_list {clear:both; position:relative; margin:10px 0 0 0; padding:0; list-style:none; text-align:left}
.mov_latest_wrap ul.mov_list li {margin:5px 0; padding-left:10px; height:95px; border-bottom:1px dotted #ebebeb; font:normal 12px gulim, dotum; color:#999}
.mov_latest_wrap ul.mov_list .list_thumb {float:left}
.mov_latest_wrap ul.mov_list .list_explain {float:left; padding:2px 10px 0 10px}
.list_title_movie {padding-top:35px; padding-left:10px; font:bold 12px tahoma, gulim; color:#555}
.list_title_movie a:link, .list_title_movie a:visited, .list_title_movie a:active, .list_title_movie a:hover {text-decoration:none; color:#555}
.mov_no_list {padding:10px 0; font:normal 12px tahoma, gulim; color:#999; text-align:center}
</style>
<div class="mov_latest_wrap">
<div class="mov_title_wrap">
<div class="mov_title"><a href="<?php echo $g4[bbs_path]; ?>/board.php?bo_table=<?php echo $bo_table; ?>"><?php echo $board[bo_subject]; ?></a></div>
<div class="mov_right_wrap">
<div class="mov_btn_more"><a href="<?php echo $g4[bbs_path] ?>/board.php?bo_table=<?php echo $bo_table ?>"><img src="<?php echo $latest_skin_path; ?>/img/none.gif" width="10" height="18" border="0" alt="더보기"></a></div>
<?php if ($member[mb_level] >= $board[bo_write_level]) { ?>
<div class="mov_btn_write"><a href="<?php echo $g4[bbs_path]; ?>/write.php?bo_table=<?php echo $bo_table; ?><?php echo $write_href; ?>"><img src="<?php echo $latest_skin_path; ?>/img/none.gif" width="20" height="18" border="0" alt="글쓰기"></a></div>
<?php } ?>
<?php if ($is_admin == "super" || $is_auth) { ?>
<div class="mov_btn_admin"><a href="<?php echo $g4[path]; ?>/adm/board_form.php?w=u&bo_table=<?php echo $bo_table; ?>"><img src="<?php echo $latest_skin_path; ?>/img/none.gif" width="10" height="18" border="0" alt="게시판설정"></a></div>
<?php } ?>
</div>
</div>
<?php if (count($list) == 0) { ?>
<div class="mov_no_list">게시물이 없습니다.</div>
<?php } else { ?>
<ul class="mov_list">
<?php for ($i = 0; $i < count($list); $i++) {
$youtube_url = strstr($list[$i]['wr_link1'], '=');
$youtube_url = explode('&', $youtube_url);
$youtube_url = str_replace('=', '', $youtube_url[0]);
?>
<li>
<div class="list_thumb"><a href="#pic-<?php echo $bo_table; ?>_<?php echo $i; ?>" rel="next"><img src="http://img.youtube.com/vi/<?php echo $youtube_url; ?>/3.jpg" width="120" height="90" border="0" alt="" /></a> </div>
<div id="pic-<?php echo $bo_table; ?>_<?php echo $i; ?>" class="hide_movie">
<iframe src="http://www.youtube.com/embed/<?php echo $youtube_url; ?>?hl=ko_KR&version=3&rel=0&autoplay=<?php echo $youtube_autoplay; ?>" width="<?php echo $youtube_width; ?>" height="<?php echo $youtube_height; ?>" frameborder="0" allowfullscreen></iframe>
</div>
<div class="list_explain">
<div class="list_title_movie"><a href="<?php echo $list[$i]['href']; ?>"><?php echo $list[$i]['subject']; ?></a></div>
</div>
</li>
<?php } ?>
</ul>
<?php } ?>
</div>
게시글 목록
| 번호 | 제목 |
|---|---|
| 1716761 | |
| 1716759 | |
| 1716743 | |
| 1716734 | |
| 1716733 | |
| 1716728 | |
| 1716724 | |
| 1716722 | |
| 1716711 | |
| 1716704 | |
| 1716687 | |
| 1716675 | |
| 1716673 | |
| 1716669 | |
| 1716658 | |
| 1716656 | |
| 1716655 | |
| 1716652 | |
| 1716635 | |
| 1716627 | |
| 1716623 | |
| 1716616 | |
| 1716608 | |
| 1716606 | |
| 1716597 | |
| 1716593 | |
| 1716586 | |
| 1716569 | |
| 1716548 | |
| 1716543 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기