에디터 이미지 최신글
같은 최신글 스킨 이미지 썼는데
물론 테이블은 다릅니다.
http://enerpol.net/epbrd/data/cheditor4/1309/9jgOtwlR8SQkIndR4Lz9os.jpg
보드 경로(epbrd)가 들어가 제대로 나옴
http://www.enerpol.net/data/cheditor4/1309/FrSw82SifQpuhia1WPgHsswOQEwByXr.jpg
보드 경로(epbrd)가 들어가지 않아 엑박
앞 www 도 붙는것과 않붙는것에서 차이가 있네요
왜 이러는 걸까요??
<? for ($i=0; $i<count($list); $i++) {
$img="";
$imgtype=substr($list[$i][file][0][file], strrpos($list[$i][file][0][file], ".")+1);
//echo $imgtype;
if($img==""){
if(strtolower($imgtype)!="jpg" && strtolower($imgtype)!="gif"){
preg_match_all("/<img [^<>]*src\=[(\"|')]{0,1}([^(\"|')>]*)/i", $list[$i][wr_content], $img_list);
$img=$img_list[1][0];
}else{
if(strpos($file[bf_file], "./")!==null)
$img = "$g4[path]/data/file/$bo_table/".substr($list[$i][file][0][file], strrpos($list[$i][file][0][file], "/"));
else
$img = "$g4[path]/data/file/$bo_table/".urlencode($list[$i][file][0][file]);
}
}
//if (!file_exists($img) || !$list[$i][file][0][file])
if($img=="")
$img = "$latest_skin_path/img/no_image.gif";
?>
물론 테이블은 다릅니다.
http://enerpol.net/epbrd/data/cheditor4/1309/9jgOtwlR8SQkIndR4Lz9os.jpg
보드 경로(epbrd)가 들어가 제대로 나옴
http://www.enerpol.net/data/cheditor4/1309/FrSw82SifQpuhia1WPgHsswOQEwByXr.jpg
보드 경로(epbrd)가 들어가지 않아 엑박
앞 www 도 붙는것과 않붙는것에서 차이가 있네요
왜 이러는 걸까요??
<? for ($i=0; $i<count($list); $i++) {
$img="";
$imgtype=substr($list[$i][file][0][file], strrpos($list[$i][file][0][file], ".")+1);
//echo $imgtype;
if($img==""){
if(strtolower($imgtype)!="jpg" && strtolower($imgtype)!="gif"){
preg_match_all("/<img [^<>]*src\=[(\"|')]{0,1}([^(\"|')>]*)/i", $list[$i][wr_content], $img_list);
$img=$img_list[1][0];
}else{
if(strpos($file[bf_file], "./")!==null)
$img = "$g4[path]/data/file/$bo_table/".substr($list[$i][file][0][file], strrpos($list[$i][file][0][file], "/"));
else
$img = "$g4[path]/data/file/$bo_table/".urlencode($list[$i][file][0][file]);
}
}
//if (!file_exists($img) || !$list[$i][file][0][file])
if($img=="")
$img = "$latest_skin_path/img/no_image.gif";
?>
|
댓글을 작성하시려면 로그인이 필요합니다.
댓글 4개
글쓰기 등록 된 후의 경로말고 등록전 에디터에 이미지 넣으신 후 에디터상의 소스 보기를 말하는 겁니다.
우선 확인 하시고 www 와 없을 때 에디터 상에서 확인해 보세요.
그게 우선 시 되야 할 것 같습니다.
최신글 경로 앞에 보드경로를 지정해주세요.
만약 소스 수정에 어려움이 있으시다면
해당 data 폴더를 우선 해당경로에 다시 업로드후
썸네일 생성시 저장주소를 다시 코딩해줘야할듯합니다