갤러리 게시판 리스트에서 cheditor5로 올린 이미지가 노출이 되게 하고 싶습니다. 채택완료
갤러리 게시판 리스트 페이지에서 cheditor5로 올린 이미지들이 노출이 되게 하고 싶습니다.
어찌어찌 해봐도 도통 해답이 나오질 않고 있습니다.ㅠㅠ;;;
아래는 list.php파일 소스입니다.
고수님들의 도움 부탁드립니다.^^
------------------------------------------------------------------------------
// 굿빌더 버젼 3.3
// 작성일자: 2013.07.03
// 작성자: 굿빌더, http://www.goodbuilder.co.kr">http://www.goodbuilder.co.kr
?>
/// 웹진 형태의 게시판 스킨 good_webzine2_me 버젼 1.0
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$board_skin_path/skin.lib.php"); //썸네일 이미지 함수
// image width, height
if($board[bo_1] and $board[bo_2] and $board[bo_3]) {
$image_width = $board[bo_1];
$image_height = $board[bo_2];
$image_quality = $board[bo_3];
} else if($g4[default_thumb_width] and $g4[default_thumb_height] and $g4[default_thumb_quality]) {
$image_width = $g4[default_thumb_width];
$image_height = $g4[default_thumb_height];
$image_quality = $g4[default_thumb_quality];
} else {
$image_width = 75;
$image_height = 60;
$image_quality = 100;
}
$image_div_width = $image_width + 7;
$image_div_height = $image_height + 5;
$image_border_style = "style='border:1px solid #dddddd' onmouseover=\"this.style.borderColor='#386eff'\" onmouseout=\"this.style.borderColor='#dddddd'\"";
// 썸네일 저장 디렉터리
$data_path = $g4[path]."/data/file/$bo_table";
/// $thumb_path = $data_path.'/thumbs';
$thumb_path = $data_path.'/thumb';
@mkdir($thumb_path, 0707);
@chmod($thumb_path, 0707);
// 선택옵션으로 인해 셀합치기가 가변적으로 변함
$colspan = 5;
//if ($is_category) $colspan++;
if ($is_checkbox) $colspan++;
if ($is_good) $colspan++;
if ($is_nogood) $colspan++;
$colspan_minus2 = $colspan - 2; ///***
$title_bg = "#F8F8F9";
$border_bg = "#E5E5E5";
$border_bottom_bg = "#E5E5E5";
// 내용 표시 길이
$content_len = 200;
// 이미지 출력 갯수.
$num_of_images_default = 5;
// 제목이 두줄로 표시되는 경우 이 코드를 사용해 보세요.
//
?>
if ('=$sca?>') document.fcategory.sca.value = '=$sca?>';
if ('=$stx?>') {
document.fsearch.sfl.value = '=$sfl?>';
document.fsearch.sop.value = '=$sop?>';
}
window.onload=function() {
resizeBoardImage(=(int)$board[bo_image_width]?>);
drawFont();
}
if ($is_checkbox) { ?>
function all_checked(sw) {
var f = document.fboardlist;
for (var i=0; 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 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(); } } ?>
답변 3개
에 넣으라는게 아니구요 거기 있다는거여요
리스트에 서 cheditor5 올려 으면 보통 http://ruwa64-065.fmcity.com/WebMysql/sql.php?db=cjlove_cj033&table=g5_write_free&token=18751440b46bef53a28957a9c88e9c1d&sql_query=SELECT+%2A+FROM+%60g5_write_free%60+ORDER+BY+%60g5_write_free%60.%60wr_content%60+ASC">wr_content 저장 되자나요
여기서 그걸 추출 하는 소스가 있다고 애기한건데요
댓글을 작성하려면 로그인이 필요합니다.
알려주신대로 적용했는데, 이번엔 리스트 페이지가 아예 나오질 않고 있어서요..^^;;
common.lib에서 정확히 어느 부분에 넣으면 되는지 알려주시면 감사드리겠습니다~!!
댓글을 작성하려면 로그인이 필요합니다.
/lib/common.lib.php
// 에디터 이미지 얻기 function get_editor_image($contents, $view=true) { if(!$contents) return false;
// $contents 중 img 태그 추출
if ($view)
$pattern = "/]*)>/iS";
else
$pattern = "/
]*src=[\'\"]?([^>\'\"]+[^>\'\"]+)[\'\"]?[^>]*>/";
preg_match_all($pattern, $contents, $matchs);
return $matchs; }
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인


", $write_pages);
", $write_pages);
", $write_pages);
", $write_pages);