웹마스터 팁
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
blogapi 사진이 포함된 글
2011.09.02 14:52
제로보드 XE에서는 blog api 기능을 이용해서, 외부에서 글을 올릴수가 있다. 그런데, 어느순간 부터 블로그 API로 사진이 포함된 글을 올리면, 사진이 첨부만 되고 내용에는 안나오는 경우가 발생했다.
이 경우에는 modules/file/file.controller.php 을 열어서 아래 내용처럼 수정해주면 된다.
라인424,425
- 변경전
이 경우에는 modules/file/file.controller.
라인424,425
- 변경전
//$_filename = preg_replace('/[#$&*?+%"\']/', '_', $file_info['name']);
$_filename = md5(crypt(rand(1000000,900000), rand(0,100))).'.'.$ext;
-------------------------------------------------------------------------------------
-변경후
-------------------------------------------------------------------------------------
-변경후
$_filename = preg_replace('/[#$&*?+%"\']/', '_', $file_info['+
'name']);
//$_filename = md5(crypt(rand(1000000,900000), rand(0,100))).'.'.$ext;
문제는, 제로보드가 업그래이드 될때마다 위 파일을 수정해줘야한다는 점이다. 조금 귀찮지만, 블로그 API로 글을 보낼려면 할수 없다.
즉 // 의 위치를 바꾸어 주시면 됩니다.
출처/인용 : http://www.moonseller.net/331
문제는, 제로보드가 업그래이드 될때마다 위 파일을 수정해줘야한다는 점이다. 조금 귀찮지만, 블로그 API로 글을 보낼려면 할수 없다.
즉 // 의 위치를 바꾸어 주시면 됩니다.
출처/인용 : http://www.moonseller.net/331
제목 | 글쓴이 | 날짜 |
---|---|---|
CSS 와 HTML 과 연결하기 [5] | Topy | 2002.02.21 |
CSS에 클래스에 관한거 추가 [4] | DearMai | 2002.02.21 |
웹사이트 로딩속도 높혀주는 10가지 방법 [32] | 秀 | 2001.07.25 |
익스플로어 즐겨찾기에 아이콘 추가하기 [7] | rolly™ | 2001.12.13 |
홈페이지에 Fade-in 적용하기~ [5] | remy | 2002.01.08 |
[1차패치] 내 msn 현재상태를 보여주자! + 캡처없앰 -ㅂ- [18] | 티르 | 2002.01.04 |
새로운필터를 적용한 칼라버튼.[ie5.5 sp2이상] [26] | 술도짱 | 2001.11.15 |
글입력상자에서 자동으로 한글, 영문 바뀌게 하기 [6] | 이경두 | 2001.11.15 |
글씨를 세로로 써봅시다...^_^ [6] | 술도짱 | 2001.11.14 |
익스플로러의 자동완성 기능 off 하기 [7] | WOWpc | 2001.10.23 |
(table)에서 HTML 태그를 적용시켜 보기 [16] | 정후니 | 2001.08.31 |
스크롤바 색깔 바꾸는 스타일... [8] | 잔디 | 2001.01.05 |
웹페이지에서 ICQ 번호 자동으로 추가하기... [1] | 잔디 | 2001.01.05 |
XE 공식 게시판에 (다운로드) 같은 '임의목록' 집어 넣기 (확장변수x) [1] | 999 | 2010.12.30 |
좋은 PHP 강좌 사이트들 [1] | HolyJohn | 2010.12.29 |
[생초보팁] 레이아웃 스킨 강좌 사이트 [2] | HolyJohn | 2010.12.29 |
애드온에서 모바일 환경 구분 코드 | misol | 2010.12.24 |
회원가입후 1주일이 지나지 않은 계정에 한하여 탈퇴 제한하기 [1] | Arp | 2010.12.23 |
우분투 apm에서 "쉬운 설치" 에러시 팁 [4] | 김상호 | 2010.12.22 |
심플한 XML 플래시 이미지 갤러리 [7] | maxtabby | 2010.12.21 |
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/haebyeong/www/modules/file/file.controller.php:1) in /home/hosting_users/haebyeong/www/classes/display/DisplayHandler.class.php on line 67 Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/haebyeong/www/modules/file/file.controller.php:1) in /home/hosting_users/haebyeong/www/classes/display/DisplayHandler.class.php on line 253 Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/haebyeong/www/modules/file/file.controller.php:1) in /home/hosting_users/haebyeong/www/classes/display/DisplayHandler.class.php on line 254 Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/haebyeong/www/modules/file/file.controller.php:1) in /home/hosting_users/haebyeong/www/classes/display/DisplayHandler.class.php on line 255 Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/haebyeong/www/modules/file/file.controller.php:1) in /home/hosting_users/haebyeong/www/classes/display/DisplayHandler.class.php on line 256 Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/haebyeong/www/modules/file/file.controller.php:1) in /home/hosting_users/haebyeong/www/classes/display/DisplayHandler.class.php on line 257 Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/haebyeong/www/modules/file/file.controller.php:1) in /home/hosting_users/haebyeong/www/classes/display/DisplayHandler.class.php on line 258 Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/haebyeong/www/modules/file/file.controller.php:1) in /home/hosting_users/haebyeong/www/classes/display/DisplayHandler.class.php on line 77 Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/haebyeong/www/modules/file/file.controller.php:1) in /home/hosting_users/haebyeong/www/classes/display/DisplayHandler.class.php on line 77
이런 에러가 납니다.
다시 원본파일로 변경하니 정상이고요~~~