웹마스터 팁
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
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
이런 에러가 납니다.
다시 원본파일로 변경하니 정상이고요~~~