웹마스터 팁

https://github.com/xpressengine/xe-core/issues/790
위 글타래를 보고 글타래 안에 있는 @proglos 님 팁과 @bj람보님이 제안해준 방법을 조합시켜 사용중에 있습니다. 저는 이렇게 하니 
아직까지 100%는 아니지만 섬네일 미싱 이슈가 가장 줄어들었습니다.
아직 https 로 된 외부이미지는 못가져오는 듯 합니다. 다음CDN/루리웹등과 같은 사이트의 이미지는 랜덤하게 미싱하는 경우가 있습니다.
 
document.item.php 에서 아래 부분을 Replace 해주세요.
 
    // If not exists, file an image file from the content
        if(!$source_file)
        {
            $content = $this->get('content');
            $target_src = null;
            preg_match_all('/<\s*img[^>]*src\s*=\s*["\']?([^"\']*)/i', $content, $matches, PREG_SET_ORDER);
            $cnt = count($matches);
            for($i=0;$i<$cnt;$i++)
            {
                $target_src = trim($matches[$i][1]);                
                if(preg_match('/\/(common|modules|widgets|addons|layouts)\//i', $target_src)) continue;
                else
                {
                    if(!preg_match('/^(http|https):\/\//i',$target_src)) $target_src = Context::getRequestUri().$target_src;
 
                    $tmp_file = sprintf('./files/cache/tmp/%d', md5(rand(111111,999999).$this->document_srl));
                    if(!is_dir('./files/cache/tmp')) FileHandler::makeDir('./files/cache/tmp');
                    FileHandler::getRemoteFile($target_src, $tmp_file);
                    if(!file_exists($tmp_file)) continue;
                    else
                    {
                        list($_w, $_h, $_t, $_a) = getimagesize($tmp_file);
                        // if($_w<$width || $_h<$height) continue;
 
                        $source_file = $tmp_file;
                        $is_tmp_file = true;
                        break;
                    }
                }
            }
        }
제목 글쓴이 날짜
ㅎㅎ, 이곳에도 Html 적용이 되네요. [3] file 눈과비 2007.12.14
Layout.html 화일의 SEC(순서도)도를 그려봤습니다. [9] file SensePlus1 2007.12.14
페이지가 갑자기 하얀화면으로 나올경우에는 이렇게 해보십시오. [9] file 하나로45 2007.12.13
외부페이지에서 위젯사용하지 않고 로그인 정보 다루기. [5] [1] 길치객 2007.12.12
외부페이지 사용법 [8] 길치객 2007.12.11
권한없는 모듈을 만났을때 로그인 페이지 띄우기.. [10] 똑디 2007.12.11
로그인 안되서 files 폴더 지우셨던 분들!! [3] file 율랑 2007.12.11
top 메뉴를 만들어보자 - layout에서 topmenu 항목만들기 [6] file SensePlus1 2007.12.11
음악플레이기 3종세트 설치 방법(수정) [25] file 팔공산 2007.12.10
[수정] 최근 이미지 추출에 new 이미지 등이 나타나게 하기... [5] 비나무 2007.12.09
그림자 박스 만들기.. [3] file 소마세월 2007.12.07
배경이미지 만드는 방법입니다. 팔공산 2007.12.06
익명게시판 - 문제가 아직 많습니다. (다시 수정) [11] file 올챙이 2007.12.06
XE 설치 진행 후 다시 첫 화면으로 넘어갈때 [2] longkee 2007.12.06
외부페이지에서 매개변수 사용가능하도록 하는 방법 [12] 라르게덴 2007.12.05
"파일첨부"가 클릭이 안되시는 분 보셔요. [11] 최강협 2007.12.04
움직이는 이모티콘 모음입니다. [4] file 범피디 2007.12.04
실시간 날씨를 불러오는 박스 입니다. [13] file 범피디 2007.12.03
날씨배너입니다. [4] LooK782 2007.12.03
[동영상 강좌2] zbxe 페이지 생성과 기능 설명 [45] file 필반 2007.12.03