[텍스트큐브 1.7.8] IE 8의 웹조각 기능 때문에 IE 6에서 빈 줄이 나오는 문제 해결
누리집/블로그 |
2009/04/24 13:27
텍스트큐브 1.7.8의 표지, 최근 글, 최근 덧글 등에 들어간 IE 8의 웹조각(web slice) 기능 때문에 IE 6에서 빈 줄이 나타난다. IE 7 이상 또는 파이어폭스로 보면 빈 줄이 생기지 않는다.
이 문제는 텍스트큐브 파일을 수정해서 해결할 수 있다. /library/view/view.php의 1048~1051째 줄을 다음처럼 수정하면 빈 줄을 없앨 수 있다.
아래 viwe.php_20090501.zip는 5월 1일에 수정 배포된 view.php를 위에 설명한 대로 고친 파일입니다.
Internet Explorer 6에서 보이는 텍스트큐브 블로그의 옆막대(사이드바) 모습이다. 1.7.8로 판올림한 뒤에 공지사항과 최근 글에 공백이 생겼다. (2009.5.12)
이 문제는 텍스트큐브 파일을 수정해서 해결할 수 있다. /library/view/view.php의 1048~1051째 줄을 다음처럼 수정하면 빈 줄을 없앨 수 있다.
return '<div class="hslice" id="'.$id.'">'.CRLF.
'<h4 class="entry-title" style="visibility:hidden;height:0;padding:0;margin:0;">'.$title.'</h4>'.CRLF.
'<div class="entry-content">'.CRLF.$content.CRLF.'</div>'.CRLF.
'</div>'.CRLF;
'<h4 class="entry-title" style="visibility:hidden;height:0;padding:0;margin:0;">'.$title.'</h4>'.CRLF.
'<div class="entry-content">'.CRLF.$content.CRLF.'</div>'.CRLF.
'</div>'.CRLF;
↓
return '<!--[if gte IE 7]><div class="hslice" id="'.$id.'">'.CRLF.
'<h4 class="entry-title" style="visibility:hidden;height:0;padding:0;margin:0;">'.$title.'</h4><![endif]-->'.CRLF.
'<div class="entry-content">'.CRLF.$content.CRLF.'</div>'.CRLF.
'<!--[if gte IE 7]></div><![endif]-->'.CRLF;
'<h4 class="entry-title" style="visibility:hidden;height:0;padding:0;margin:0;">'.$title.'</h4><![endif]-->'.CRLF.
'<div class="entry-content">'.CRLF.$content.CRLF.'</div>'.CRLF.
'<!--[if gte IE 7]></div><![endif]-->'.CRLF;
아래는 수정한 파일이다. 압축을 풀어서 /library/view/view.php를 덮어써도 된다.
아래 viwe.php_20090501.zip는 5월 1일에 수정 배포된 view.php를 위에 설명한 대로 고친 파일입니다.

글 걸기 주소 :: http://pat.bingsan.net/trackback/265
-
제목: 텍스트큐브 1.7.8 설치 후 IE6 에서 Recent Post 부분에 빈 줄 나오는 문제 해결
Tracked from seung, a 2009/08/09 14:06 지우기텍스트큐브 1.7.8의 표지, 최근 글, 최근 덧글 등에 들어간 IE 8의 웹조각(web slice) 기능 때문에 IE 6에서 빈 줄이 나타난다. IE 7 이상 또는 파이어폭스로 보면 빈 줄이 생기지 않는다. 이 문제는 텍스트큐브 파일을 수정해서 해결할 수 있다. /library/view/view.php의 1048~1051째 줄을 다음처럼 수정하면 빈 줄을 없앨 수 있다. return '<div class="hslice" id="'.$id.'...
view.php.zip
Comment on this post!