동영상(미디어)게시판 풀셋 정보
게시판 동영상(미디어)게시판 풀셋관련링크
http://www.kpam.org/board/
1231회 연결
첨부파일
본문
동영상(미디어)게시판 풀셋
최근게시물까지 올렸습니다.
예전에 제가 올린 최근 게시물은 썸네일 받아 오기가 안되더군요.
그래서 조금 에디트해서 썸네일까지 받아 오기를 했습니다.
물론 폴더 img 안에 no_image는 다른 것으로 바꾸어 사용하세요. 밑에 사용하고 있는 주소 올립니다.
참~ 집회 영상 베스트 부분은 포함되어 있지 않습니다.
최근게시물까지 올렸습니다.
예전에 제가 올린 최근 게시물은 썸네일 받아 오기가 안되더군요.
그래서 조금 에디트해서 썸네일까지 받아 오기를 했습니다.
물론 폴더 img 안에 no_image는 다른 것으로 바꾸어 사용하세요. 밑에 사용하고 있는 주소 올립니다.
참~ 집회 영상 베스트 부분은 포함되어 있지 않습니다.
추천
9
9
댓글 전체
깔끔한것이 이쁘네요~ 잘쓰겠습니다~~
멋진 스킨 감사합니다.
잘쓸게요
한가지 더 물어보기싶은거는데요
위에 베스트 10 이걸 어떻게 넣어야되는것인지 저도 만들고 싶어요
답변 감사하겠습니다.
잘쓸게요
한가지 더 물어보기싶은거는데요
위에 베스트 10 이걸 어떻게 넣어야되는것인지 저도 만들고 싶어요
답변 감사하겠습니다.
사실 제가 그누보드 기반인 오누리 빌더를 사용하고 있거든요.. 그것은 자동적으로 나오더군요...
오누리 보드 소스를 확인해 보시는 것이 좋을 것같습니다.
참고로 이 소스가 아닐 듯?
<?
if (!defined("_GNUBOARD_")) exit; // °³º° ÆäÀÌÁö Á¢±Ù ºÒ°¡
?>
<? for ($i=0; $i<count($list); $i++) { ?>
<div style='word-break:break-all;height:20px;padding:0 0 0 5px;'>
<?
$la_style1 = "font-family:µ¸¿ò; font-size:9pt;";
//echo $list[$i][icon_reply] . " ";
echo "<img src='$latest_skin_path/img/num_$i.gif' border='0'> <a href='{$list[$i][href]}' style='vertical-align:2px;'>";
if ($list[$i][is_notice]) {
echo "<span style=\"$la_style1\">{$list[$i][subject]}</span>";
} else {
echo "<span style=\"$la_style1\">{$list[$i][subject]}</span>";
}
echo "</a>";
?>
</div>
<? } ?>
참~ 요즘 오누리빌더1.6인가 그냥 배포하던데요.. 예전에는 포인트있어야 받을 수 있었는데 그냥 배포하더라고요... 거기 보시면 유용할 듯합니다.
오누리 보드 소스를 확인해 보시는 것이 좋을 것같습니다.
참고로 이 소스가 아닐 듯?
<?
if (!defined("_GNUBOARD_")) exit; // °³º° ÆäÀÌÁö Á¢±Ù ºÒ°¡
?>
<? for ($i=0; $i<count($list); $i++) { ?>
<div style='word-break:break-all;height:20px;padding:0 0 0 5px;'>
<?
$la_style1 = "font-family:µ¸¿ò; font-size:9pt;";
//echo $list[$i][icon_reply] . " ";
echo "<img src='$latest_skin_path/img/num_$i.gif' border='0'> <a href='{$list[$i][href]}' style='vertical-align:2px;'>";
if ($list[$i][is_notice]) {
echo "<span style=\"$la_style1\">{$list[$i][subject]}</span>";
} else {
echo "<span style=\"$la_style1\">{$list[$i][subject]}</span>";
}
echo "</a>";
?>
</div>
<? } ?>
참~ 요즘 오누리빌더1.6인가 그냥 배포하던데요.. 예전에는 포인트있어야 받을 수 있었는데 그냥 배포하더라고요... 거기 보시면 유용할 듯합니다.
감사합니다. 베스트10 엑박님이 올려주신것 검색해 보시면 있을겁니다.
Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in /web/home/bogo/html/skin/board/moviefl/list.skin.php on line 81
Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /web/home/bogo/html/skin/board/moviefl/list.skin.php on line 82
Warning: imagepng(): supplied argument is not a valid Image resource in /web/home/bogo/html/skin/board/moviefl/list.skin.php on line 83
Warning: chmod() [function.chmod]: No such file or directory in /web/home/bogo/html/skin/board/moviefl/list.skin.php on line 84
이에러는 어떻게 해결하는건지 알려주시면 감사 ^^
Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /web/home/bogo/html/skin/board/moviefl/list.skin.php on line 82
Warning: imagepng(): supplied argument is not a valid Image resource in /web/home/bogo/html/skin/board/moviefl/list.skin.php on line 83
Warning: chmod() [function.chmod]: No such file or directory in /web/home/bogo/html/skin/board/moviefl/list.skin.php on line 84
이에러는 어떻게 해결하는건지 알려주시면 감사 ^^
몇줄 찾아서 삭제 처리 해주면 ok 입니다.
글쓰기 눌러서 글 올릴거 작성하고 쓰기 버튼을 클릭하면 자바스크립트 오류뜨던데
이건 왜 그런건가요?
"페이지에 오류가 있습니다." 음...이런 메세지가 뜨던데...
이건 왜 그런건가요?
"페이지에 오류가 있습니다." 음...이런 메세지가 뜨던데...
utf-8 도 좀 만들어 주세요...
이미지만 올리면 오류 뜨고 81부터 84 라인 작제 하면 되긴하는데 이미지가 나오질 않아요...
혹시 방법좀 알려주세요..ㅜㅜ
혹시 방법좀 알려주세요..ㅜㅜ
저도 조천사님과 같은 형태의 에러가 나오네요.. 확인 좀 부탁드립니다.. ^^;
에러나는곳 moviefl/list.skin.php 의 81,82,83,84 주석처리 하시면 잘돌아갑니다.
저두 프로그램쪽은 전혀 모릅니다...연후아빠님스킨에서 list.skin.php이것만 올려보세요...
정확한건 잘 모르지만...암튼 전 됐네용 ㅋ~~~
글구 이미지 사이즈 수정은 각자가 알아서...
66번째줄하고 88번째줄...정도 될꺼예요...
참고로...
100% 200%요게 오류나던데...이것도 마찬가지로 movie.php요거만 올리세요...
정확한건 잘 모르지만...암튼 전 됐네용 ㅋ~~~
글구 이미지 사이즈 수정은 각자가 알아서...
66번째줄하고 88번째줄...정도 될꺼예요...
참고로...
100% 200%요게 오류나던데...이것도 마찬가지로 movie.php요거만 올리세요...
감사합니다.^^
감사 꾸벅~^^
저처럼 그누보드 4.3에선 안되시는 분들~
도움이 되고자 메모 남깁니다
4.3이전버전에 lib폴더에 있는 cheditor.lib.php를 ftp의 lib폴더에 넣으세요
그리고 리스트에서 업로드한 캡쳐이미지 안보이시는 분은
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=60923&sca=&sfl=wr_subject%7C%7Cwr_content&stx=%B5%BF%BF%B5%BB%F3&sop=and&page=2
이 스킨에서 list.skin.php만 덮어씌우세요 ㄱ-
잘나옵니다 -ㅇ-
도움이 되고자 메모 남깁니다
4.3이전버전에 lib폴더에 있는 cheditor.lib.php를 ftp의 lib폴더에 넣으세요
그리고 리스트에서 업로드한 캡쳐이미지 안보이시는 분은
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=60923&sca=&sfl=wr_subject%7C%7Cwr_content&stx=%B5%BF%BF%B5%BB%F3&sop=and&page=2
이 스킨에서 list.skin.php만 덮어씌우세요 ㄱ-
잘나옵니다 -ㅇ-
님 고맙습니다. 헤메고 있다 혹시나 해서 봣는데..^^
list.skin.php 수정하세요...
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$img_width = '100'; //썸네일 가로길이 $img_w
$img_height = '100'; //썸네일 세로길이 $height
$img_quality = '9'; //퀼리티 100이하로 설정 버젼에 따라 다름
if (!function_exists("imagecopyresampled")) alert("GD 2.0.1 이상 버전이 설치되어 있어야 사용할 수 있는 갤러리 게시판 입니다.");
$data_path = $g4[path]."/data/file/$bo_table";
$thumb_path = $data_path.'/thumb105'; //썸네일 이미지 생성 디렉토리
@mkdir($thumb_path, 0707);
@chmod($thumb_path, 0707);
$mod = $board[bo_gallery_cols];
$td_width = (int)(100 / $mod);
// 선택옵션으로 인해 셀합치기가 가변적으로 변함
$colspan = 5;
if ($is_category) $colspan++;
if ($is_checkbox) $colspan++;
if ($is_good) $colspan++;
if ($is_nogood) $colspan++;
// 제목이 두줄로 표시되는 경우 이 코드를 사용해 보세요.
// <nobr style='display:block; overflow:hidden; width:000px;'>제목</nobr>
?>
<!-- 게시판 목록 시작 -->
<table width="<?=$width?>" align=center cellpadding=0 cellspacing=0><tr><td>
<!-- 분류 셀렉트 박스, 게시물 몇건, 관리자화면 링크 -->
<table width="100%" cellspacing="0" cellpadding="0">
<tr height="25">
<? if ($is_category) { ?><form name="fcategory" method="get"><td width="50%"><select name=sca onchange="location='<?=$category_location?>'+this.value;"><option value=''>전체</option><?=$category_option?></select></td></form><? } ?>
<td align="right" style="font:normal 11px tahoma; color:#BABABA;">
Total <?=number_format($total_count)?>
<? if ($rss_href) { ?><a href='<?=$rss_href?>'><img src='<?=$board_skin_path?>/img/btn_rss.gif' 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>
<tr><td height=5></td></tr>
</table>
<form name="fboardlist" method="post" style="margin:0px;">
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
<input type="hidden" name="sfl" value="<?=$sfl?>">
<input type="hidden" name="stx" value="<?=$stx?>">
<input type="hidden" name="spt" value="<?=$spt?>">
<input type="hidden" name="page" value="<?=$page?>">
<input type="hidden" name="sw" value="">
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td colspan='6' height=2 bgcolor="#0A7299"></td>
</tr>
<tr>
<?
for ($i=0; $i<count($list); $i++)
{
if ($i && $i%$mod==0)
echo "</tr><tr>";
$img = "<img src='$board_skin_path/img/noimg.gif' border=0 width='100' height='100' align='absmiddle'>";
$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 = $img_width / $size[0];
$height = (int)($size[1] * $rate);
// 계산된 썸네일 이미지의 높이가 설정된 이미지의 높이보다 작다면
//if ($height < $img_height)
// 계산된 이미지 높이로 복사본 이미지 생성
//$dst = imagecreatetruecolor($img_width, $height);
//else
// 설정된 이미지 높이로 복사본 이미지 생성
$dst = imagecreatetruecolor($img_width, $img_height);
//$dst = imagecreatetruecolor($img_w, $height);
imagecopyresampled($dst, $src, 0, 0, 0, 0, $img_width, $height, $size[0], $size[1]);
imagepng($dst, $thumb_path.'/'.$list[$i][wr_id], $img_quality);
chmod($thumb_path.'/'.$list[$i][wr_id], 0606);
}
}
if (file_exists($thumb))
$img = "<img src='$thumb' border=0>";
$style = "";
if ($list[$i][icon_new])
$style = ""; // 읽지 않은 글?? style='font-weight:bold;' 추가
$subject = "<span $style>". $list[$i][subject] ."</span>";
$subject = cut_str(get_text($list[$i][subject]), 20);
$comment_cnt = "";
if ($list[$i][comment_cnt])
$comment_cnt = " <a href=\"{$list[$i][comment_href]}\"><span style='font-size:7pt;'>{$list[$i][comment_cnt]}</span></a>";
echo "<td width='{$td_width}%' align=center valign=top style='word-break:break-all;'>";
echo "<table>";
echo "<tr><td height=5></td></tr>";
echo "<tr><td align=center width='100' height='$height' style='width:$img_wpx;height:$heightpx;border:1px solid #CCCCCC; padding:3px'><div style='width:$img_wpx; height:$heightpx; position: relative; overflow:hidden;' align=center><a href='{$list[$i][href]}' onfocus='this.blur()'>$img</a></div></td></tr>";
echo "<tr><td align=center width='100'><a href='{$list[$i][href]}' onfocus='this.blur()'>$subject</a>{$comment_cnt}</td></tr>";
echo "<tr><td align=center width='100'>";
?>
<a href="javascript://" onclick="window.open('<?=$board_skin_path?>/movie.php?bo_table=<?=$bo_table?>&wr_id=<?=$list[$i][wr_id]?>', '', 'scrollbars=no,resizeable=no,toolbar=no,status=no,top=00,left=100,width=810,height=557');"><img src="<?=$board_skin_path?>/img/gohome.gif" border="0"/></a>
<?
echo "</td></tr>";
if ($is_category) echo "<tr><td align=center><a href='{$list[$i][ca_name_href]}'><font color=#B9B9B9>[{$list[$i][ca_name]}]</font></a></td></tr>";
if ($is_checkbox) echo "<tr><td align=center><input type=checkbox name=chk_wr_id[] value='{$list[$i][wr_id]}'></td></tr>";
echo "<tr><td height=5></td></tr>";
echo "</table></td>\n";
}
// 나머지 td
$cnt = $i%$mod;
if ($cnt)
for ($i=$cnt; $i<$mod; $i++)
echo "<td width='{$td_width}%'> </td>";
?>
</tr>
<? if (count($list) == 0) { echo "<tr><td colspan='$mod' height=100 align=center>게시물이 없습니다.</td></tr>"; } ?>
</table>
</form>
<!-- 페이지 -->
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" align="center" height=30 valign=bottom>
<? if ($prev_part_href) { echo "<a href='$prev_part_href'><img src='$board_skin_path/img/btn_search_prev.gif' border=0 align=absmiddle title='이전검색'></a>"; } ?>
<?
// 기본으로 넘어오는 페이지를 아래와 같이 변환하여 이미지로도 출력할 수 있습니다.
//echo $write_pages;
$write_pages = str_replace("처음", "<img src='$board_skin_path/img/begin.gif' border='0' align='absmiddle' title='처음'>", $write_pages);
$write_pages = str_replace("이전", "<img src='$board_skin_path/img/prev.gif' border='0' align='absmiddle' title='이전'>", $write_pages);
$write_pages = str_replace("다음", "<img src='$board_skin_path/img/next.gif' border='0' align='absmiddle' title='다음'>", $write_pages);
$write_pages = str_replace("맨끝", "<img src='$board_skin_path/img/end.gif' border='0' align='absmiddle' title='맨끝'>", $write_pages);
$write_pages = preg_replace("/<span>([0-9]*)<\/span>/", "<b><font style=\"font-family:tahoma; font-size:11px; color:#000000\">$1</font></b>", $write_pages);
$write_pages = preg_replace("/<b>([0-9]*)<\/b>/", "<b><font style=\"font-family:tahoma; font-size:11px; color:#E15916;\">$1</font></b>", $write_pages);
?>
<?=$write_pages?>
<? if ($next_part_href) { echo "<a href='$next_part_href'><img src='$board_skin_path/img/btn_search_next.gif' border=0 align=absmiddle title='다음검색'></a>"; } ?>
</td>
</tr>
</table>
<!-- 링크 버튼, 검색 -->
<form name=fsearch method=get style="margin:0px;">
<input type=hidden name=bo_table value="<?=$bo_table?>">
<input type=hidden name=sca value="<?=$sca?>">
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width="50%" height="40">
<? if ($list_href) { ?><a href="<?=$list_href?>"><img src="<?=$board_skin_path?>/img/btn_list.gif" border="0"></a><? } ?>
<? if ($write_href) { ?><a href="<?=$write_href?>"><img src="<?=$board_skin_path?>/img/btn_write.gif" border="0"></a><? } ?>
<? if ($is_checkbox) { ?>
<a href="javascript:select_delete();"><img src="<?=$board_skin_path?>/img/btn_select_delete.gif" border="0"></a>
<a href="javascript:select_copy('copy');"><img src="<?=$board_skin_path?>/img/btn_select_copy.gif" border="0"></a>
<a href="javascript:select_copy('move');"><img src="<?=$board_skin_path?>/img/btn_select_move.gif" border="0"></a>
<? } ?>
</td>
<td width="50%" align="right">
<select name=sfl>
<option value='wr_subject'>제목</option>
<option value='wr_content'>내용</option>
<option value='wr_subject||wr_content'>제목+내용</option>
<option value='mb_id,1'>회원아이디</option>
<option value='mb_id,0'>회원아이디(코)</option>
<option value='wr_name,1'>이름</option>
<option value='wr_name,0'>이름(코)</option>
</select><input name=stx maxlength=15 size=10 itemname="검색어" required value='<?=$stx?>'><select name=sop>
<option value=and>and</option>
<option value=or>or</option>
</select>
<input type=image src="<?=$board_skin_path?>/img/search_btn.gif" border=0 align=absmiddle></td>
</tr>
</table>
</form>
</td></tr></table>
<script language="JavaScript">
if ('<?=$sca?>') document.fcategory.sca.value = '<?=$sca?>';
if ('<?=$stx?>') {
document.fsearch.sfl.value = '<?=$sfl?>';
document.fsearch.sop.value = '<?=$sop?>';
}
</script>
<? if ($is_checkbox) { ?>
<script language="JavaScript">
function all_checked(sw) {
var f = document.fboardlist;
for (var i=0; i<f.length; i++) {
if (f.elements[i].name == "chk_wr_id[]")
f.elements[i].checked = sw;
}
}
function check_confirm(str) {
var f = document.fboardlist;
var chk_count = 0;
for (var i=0; i<f.length; i++) {
if (f.elements[i].name == "chk_wr_id[]" && f.elements[i].checked)
chk_count++;
}
if (!chk_count) {
alert(str + "할 게시물을 하나 이상 선택하세요.");
return false;
}
return true;
}
// 선택한 게시물 삭제
function select_delete() {
var f = document.fboardlist;
str = "삭제";
if (!check_confirm(str))
return;
if (!confirm("선택한 게시물을 정말 "+str+" 하시겠습니까?\n\n한번 "+str+"한 자료는 복구할 수 없습니다"))
return;
f.action = "./delete_all.php";
f.submit();
}
// 선택한 게시물 복사 및 이동
function select_copy(sw) {
var f = document.fboardlist;
if (sw == "copy")
str = "복사";
else
str = "이동";
if (!check_confirm(str))
return;
var sub_win = window.open("", "move", "left=50, top=50, width=500, height=550, scrollbars=1");
f.sw.value = sw;
f.target = "move";
f.action = "./move.php";
f.submit();
}
</script>
<? } ?>
<!-- 게시판 목록 끝 -->
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$img_width = '100'; //썸네일 가로길이 $img_w
$img_height = '100'; //썸네일 세로길이 $height
$img_quality = '9'; //퀼리티 100이하로 설정 버젼에 따라 다름
if (!function_exists("imagecopyresampled")) alert("GD 2.0.1 이상 버전이 설치되어 있어야 사용할 수 있는 갤러리 게시판 입니다.");
$data_path = $g4[path]."/data/file/$bo_table";
$thumb_path = $data_path.'/thumb105'; //썸네일 이미지 생성 디렉토리
@mkdir($thumb_path, 0707);
@chmod($thumb_path, 0707);
$mod = $board[bo_gallery_cols];
$td_width = (int)(100 / $mod);
// 선택옵션으로 인해 셀합치기가 가변적으로 변함
$colspan = 5;
if ($is_category) $colspan++;
if ($is_checkbox) $colspan++;
if ($is_good) $colspan++;
if ($is_nogood) $colspan++;
// 제목이 두줄로 표시되는 경우 이 코드를 사용해 보세요.
// <nobr style='display:block; overflow:hidden; width:000px;'>제목</nobr>
?>
<!-- 게시판 목록 시작 -->
<table width="<?=$width?>" align=center cellpadding=0 cellspacing=0><tr><td>
<!-- 분류 셀렉트 박스, 게시물 몇건, 관리자화면 링크 -->
<table width="100%" cellspacing="0" cellpadding="0">
<tr height="25">
<? if ($is_category) { ?><form name="fcategory" method="get"><td width="50%"><select name=sca onchange="location='<?=$category_location?>'+this.value;"><option value=''>전체</option><?=$category_option?></select></td></form><? } ?>
<td align="right" style="font:normal 11px tahoma; color:#BABABA;">
Total <?=number_format($total_count)?>
<? if ($rss_href) { ?><a href='<?=$rss_href?>'><img src='<?=$board_skin_path?>/img/btn_rss.gif' 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>
<tr><td height=5></td></tr>
</table>
<form name="fboardlist" method="post" style="margin:0px;">
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
<input type="hidden" name="sfl" value="<?=$sfl?>">
<input type="hidden" name="stx" value="<?=$stx?>">
<input type="hidden" name="spt" value="<?=$spt?>">
<input type="hidden" name="page" value="<?=$page?>">
<input type="hidden" name="sw" value="">
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td colspan='6' height=2 bgcolor="#0A7299"></td>
</tr>
<tr>
<?
for ($i=0; $i<count($list); $i++)
{
if ($i && $i%$mod==0)
echo "</tr><tr>";
$img = "<img src='$board_skin_path/img/noimg.gif' border=0 width='100' height='100' align='absmiddle'>";
$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 = $img_width / $size[0];
$height = (int)($size[1] * $rate);
// 계산된 썸네일 이미지의 높이가 설정된 이미지의 높이보다 작다면
//if ($height < $img_height)
// 계산된 이미지 높이로 복사본 이미지 생성
//$dst = imagecreatetruecolor($img_width, $height);
//else
// 설정된 이미지 높이로 복사본 이미지 생성
$dst = imagecreatetruecolor($img_width, $img_height);
//$dst = imagecreatetruecolor($img_w, $height);
imagecopyresampled($dst, $src, 0, 0, 0, 0, $img_width, $height, $size[0], $size[1]);
imagepng($dst, $thumb_path.'/'.$list[$i][wr_id], $img_quality);
chmod($thumb_path.'/'.$list[$i][wr_id], 0606);
}
}
if (file_exists($thumb))
$img = "<img src='$thumb' border=0>";
$style = "";
if ($list[$i][icon_new])
$style = ""; // 읽지 않은 글?? style='font-weight:bold;' 추가
$subject = "<span $style>". $list[$i][subject] ."</span>";
$subject = cut_str(get_text($list[$i][subject]), 20);
$comment_cnt = "";
if ($list[$i][comment_cnt])
$comment_cnt = " <a href=\"{$list[$i][comment_href]}\"><span style='font-size:7pt;'>{$list[$i][comment_cnt]}</span></a>";
echo "<td width='{$td_width}%' align=center valign=top style='word-break:break-all;'>";
echo "<table>";
echo "<tr><td height=5></td></tr>";
echo "<tr><td align=center width='100' height='$height' style='width:$img_wpx;height:$heightpx;border:1px solid #CCCCCC; padding:3px'><div style='width:$img_wpx; height:$heightpx; position: relative; overflow:hidden;' align=center><a href='{$list[$i][href]}' onfocus='this.blur()'>$img</a></div></td></tr>";
echo "<tr><td align=center width='100'><a href='{$list[$i][href]}' onfocus='this.blur()'>$subject</a>{$comment_cnt}</td></tr>";
echo "<tr><td align=center width='100'>";
?>
<a href="javascript://" onclick="window.open('<?=$board_skin_path?>/movie.php?bo_table=<?=$bo_table?>&wr_id=<?=$list[$i][wr_id]?>', '', 'scrollbars=no,resizeable=no,toolbar=no,status=no,top=00,left=100,width=810,height=557');"><img src="<?=$board_skin_path?>/img/gohome.gif" border="0"/></a>
<?
echo "</td></tr>";
if ($is_category) echo "<tr><td align=center><a href='{$list[$i][ca_name_href]}'><font color=#B9B9B9>[{$list[$i][ca_name]}]</font></a></td></tr>";
if ($is_checkbox) echo "<tr><td align=center><input type=checkbox name=chk_wr_id[] value='{$list[$i][wr_id]}'></td></tr>";
echo "<tr><td height=5></td></tr>";
echo "</table></td>\n";
}
// 나머지 td
$cnt = $i%$mod;
if ($cnt)
for ($i=$cnt; $i<$mod; $i++)
echo "<td width='{$td_width}%'> </td>";
?>
</tr>
<? if (count($list) == 0) { echo "<tr><td colspan='$mod' height=100 align=center>게시물이 없습니다.</td></tr>"; } ?>
</table>
</form>
<!-- 페이지 -->
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" align="center" height=30 valign=bottom>
<? if ($prev_part_href) { echo "<a href='$prev_part_href'><img src='$board_skin_path/img/btn_search_prev.gif' border=0 align=absmiddle title='이전검색'></a>"; } ?>
<?
// 기본으로 넘어오는 페이지를 아래와 같이 변환하여 이미지로도 출력할 수 있습니다.
//echo $write_pages;
$write_pages = str_replace("처음", "<img src='$board_skin_path/img/begin.gif' border='0' align='absmiddle' title='처음'>", $write_pages);
$write_pages = str_replace("이전", "<img src='$board_skin_path/img/prev.gif' border='0' align='absmiddle' title='이전'>", $write_pages);
$write_pages = str_replace("다음", "<img src='$board_skin_path/img/next.gif' border='0' align='absmiddle' title='다음'>", $write_pages);
$write_pages = str_replace("맨끝", "<img src='$board_skin_path/img/end.gif' border='0' align='absmiddle' title='맨끝'>", $write_pages);
$write_pages = preg_replace("/<span>([0-9]*)<\/span>/", "<b><font style=\"font-family:tahoma; font-size:11px; color:#000000\">$1</font></b>", $write_pages);
$write_pages = preg_replace("/<b>([0-9]*)<\/b>/", "<b><font style=\"font-family:tahoma; font-size:11px; color:#E15916;\">$1</font></b>", $write_pages);
?>
<?=$write_pages?>
<? if ($next_part_href) { echo "<a href='$next_part_href'><img src='$board_skin_path/img/btn_search_next.gif' border=0 align=absmiddle title='다음검색'></a>"; } ?>
</td>
</tr>
</table>
<!-- 링크 버튼, 검색 -->
<form name=fsearch method=get style="margin:0px;">
<input type=hidden name=bo_table value="<?=$bo_table?>">
<input type=hidden name=sca value="<?=$sca?>">
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width="50%" height="40">
<? if ($list_href) { ?><a href="<?=$list_href?>"><img src="<?=$board_skin_path?>/img/btn_list.gif" border="0"></a><? } ?>
<? if ($write_href) { ?><a href="<?=$write_href?>"><img src="<?=$board_skin_path?>/img/btn_write.gif" border="0"></a><? } ?>
<? if ($is_checkbox) { ?>
<a href="javascript:select_delete();"><img src="<?=$board_skin_path?>/img/btn_select_delete.gif" border="0"></a>
<a href="javascript:select_copy('copy');"><img src="<?=$board_skin_path?>/img/btn_select_copy.gif" border="0"></a>
<a href="javascript:select_copy('move');"><img src="<?=$board_skin_path?>/img/btn_select_move.gif" border="0"></a>
<? } ?>
</td>
<td width="50%" align="right">
<select name=sfl>
<option value='wr_subject'>제목</option>
<option value='wr_content'>내용</option>
<option value='wr_subject||wr_content'>제목+내용</option>
<option value='mb_id,1'>회원아이디</option>
<option value='mb_id,0'>회원아이디(코)</option>
<option value='wr_name,1'>이름</option>
<option value='wr_name,0'>이름(코)</option>
</select><input name=stx maxlength=15 size=10 itemname="검색어" required value='<?=$stx?>'><select name=sop>
<option value=and>and</option>
<option value=or>or</option>
</select>
<input type=image src="<?=$board_skin_path?>/img/search_btn.gif" border=0 align=absmiddle></td>
</tr>
</table>
</form>
</td></tr></table>
<script language="JavaScript">
if ('<?=$sca?>') document.fcategory.sca.value = '<?=$sca?>';
if ('<?=$stx?>') {
document.fsearch.sfl.value = '<?=$sfl?>';
document.fsearch.sop.value = '<?=$sop?>';
}
</script>
<? if ($is_checkbox) { ?>
<script language="JavaScript">
function all_checked(sw) {
var f = document.fboardlist;
for (var i=0; i<f.length; i++) {
if (f.elements[i].name == "chk_wr_id[]")
f.elements[i].checked = sw;
}
}
function check_confirm(str) {
var f = document.fboardlist;
var chk_count = 0;
for (var i=0; i<f.length; i++) {
if (f.elements[i].name == "chk_wr_id[]" && f.elements[i].checked)
chk_count++;
}
if (!chk_count) {
alert(str + "할 게시물을 하나 이상 선택하세요.");
return false;
}
return true;
}
// 선택한 게시물 삭제
function select_delete() {
var f = document.fboardlist;
str = "삭제";
if (!check_confirm(str))
return;
if (!confirm("선택한 게시물을 정말 "+str+" 하시겠습니까?\n\n한번 "+str+"한 자료는 복구할 수 없습니다"))
return;
f.action = "./delete_all.php";
f.submit();
}
// 선택한 게시물 복사 및 이동
function select_copy(sw) {
var f = document.fboardlist;
if (sw == "copy")
str = "복사";
else
str = "이동";
if (!check_confirm(str))
return;
var sub_win = window.open("", "move", "left=50, top=50, width=500, height=550, scrollbars=1");
f.sw.value = sw;
f.target = "move";
f.action = "./move.php";
f.submit();
}
</script>
<? } ?>
<!-- 게시판 목록 끝 -->
감사합니다. 잘 사용하겠습니다.
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/hosting_users/mukyo/www/skin/board/moviefl/view.skin.php on line 376
이런에러는 무었이지요?
사용상에 문제가 있습니다.
이런에러는 무었이지요?
사용상에 문제가 있습니다.
글쓰기를 누르면 아래와 같은 에러가 뜹니다...도움부탁드릴게요
Warning: main(../lib/cheditor.lib.php): failed to open stream: No such file or directory in /home/hosting_users/jebu/www/skin/board/moviefl/write.skin.php on line 4
Warning: main(): Failed opening '../lib/cheditor.lib.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/jebu/www/skin/board/moviefl/write.skin.php on line 4
Fatal error: Call to undefined function: cheditor1() in /home/hosting_users/jebu/www/skin/board/moviefl/write.skin.php on line 9
Warning: main(../lib/cheditor.lib.php): failed to open stream: No such file or directory in /home/hosting_users/jebu/www/skin/board/moviefl/write.skin.php on line 4
Warning: main(): Failed opening '../lib/cheditor.lib.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/jebu/www/skin/board/moviefl/write.skin.php on line 4
Fatal error: Call to undefined function: cheditor1() in /home/hosting_users/jebu/www/skin/board/moviefl/write.skin.php on line 9
그누보드 4.3X 버전 이하를 받으세요.
압축해제후 lib/cheditor.lib.php 파일을 기존에 설치하신 그누보드 경로의 같은 폴더에 올리시기 바랍니다.
4.3X이전 버전의 cheditor와 스킨이 안 맞아서 생기는 오류입니다.
이전버전에 cheditor 라는 에디터 폴더가 있는데요. 저는 그것도 통째로 올렸습니다.
write.php에서 자바스크립트 에러가 나서요.^^
압축해제후 lib/cheditor.lib.php 파일을 기존에 설치하신 그누보드 경로의 같은 폴더에 올리시기 바랍니다.
4.3X이전 버전의 cheditor와 스킨이 안 맞아서 생기는 오류입니다.
이전버전에 cheditor 라는 에디터 폴더가 있는데요. 저는 그것도 통째로 올렸습니다.
write.php에서 자바스크립트 에러가 나서요.^^
감사합니다...
utf-8버젼좀...ㅜㅜ
변환해서 해 보고있는데 안되네요... 동영상이 안나와요...
변환해서 해 보고있는데 안되네요... 동영상이 안나와요...
동영상2011-2
오오 좋은 스킨 감사합니다~ ^^