이 자료실은 공식 자료실에 포함될 예정이며 신규 등록되지 않습니다.
자료를 올려주셨던 분들은 공식 자료실에 다시 올려주시면 매우 감사하겠습니다.
글 수 174
| 라이센스 : | GPL2 |
|---|---|
| 기타 라이센스 : | |
| 적용 버전 : | 정식버전(1.0이후) |
| 프로젝트 URL : |
배포하기가 좀 쑥스럽군요.^^
misol님께서 알려주신 xml 정보를 가져와서 뿌려주는 작업만 했습니다.
디자인 할 필요있습니다.^^
설치 : xml 해석하는 PEAR는 ./libs/PEAR/ 밑에 압축해제
위젯은 ./widget/ 밑에 압축해재
레이아웃에서 <img class="zbxe_widget_output" widget="weather_ko" skin="xe_official" title="일기예보" /> 추가 혹은
페이지 수정에서 위젯 추가->일기예보 클릭하시고 타이틀 입력후 코드생성 클릭하시면 됩니다.
스크린샷

디자인 할 필요있습니다.^^
설치 : xml 해석하는 PEAR는 ./libs/PEAR/ 밑에 압축해제
위젯은 ./widget/ 밑에 압축해재
레이아웃에서 <img class="zbxe_widget_output" widget="weather_ko" skin="xe_official" title="일기예보" /> 추가 혹은
페이지 수정에서 위젯 추가->일기예보 클릭하시고 타이틀 입력후 코드생성 클릭하시면 됩니다.
스크린샷


저같은 경우는 HTDOCS에 zbxe설치되여 있습니다.
혹시 경로를 못찾아서 그럴수 있습니다.
수고스럽지만, 위젯 클라스 파일을 열어서 ./libs/PEAR 위치 , 경로 세트 해줄때 완전한 절대 경로를 적어 줘 보세요.
/home/public_html/libs/PEAR 등.
cafe24 에 설치된 곳에 복사한 뒤 실행하니 include 파일을 좀처럼 찾을 수가 없어서(어디를 기준으로 잡는지를 몰라서)
에러나는 두 파일(weather_ko.class.php, Unserializer.php)의 절대경로를 소스 상에 직접 적용하고 나니 아래와 같은 오류가 발생하였습니다.
Warning: file_get_contents(): URL file-access is disabled in the server configuration in /home/hosting_users/inhaswimming/www/zbxe/widgets/weather_ko/weather_ko.class.php on line 22
Warning: file_get_contents(http://www.kma.go.kr/XML/weather/sfc_web_map.xml): failed to open stream: no suitable wrapper could be found in /home/hosting_users/inhaswimming/www/zbxe/widgets/weather_ko/weather_ko.class.php on line 22
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/inhaswimming/www/zbxe/widgets/weather_ko/weather_ko.class.php:22) in /home/hosting_users/inhaswimming/www/zbxe/classes/display/DisplayHandler.class.php on line 211
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/inhaswimming/www/zbxe/widgets/weather_ko/weather_ko.class.php:22) in /home/hosting_users/inhaswimming/www/zbxe/classes/display/DisplayHandler.class.php on line 232
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/inhaswimming/www/zbxe/widgets/weather_ko/weather_ko.class.php:22) in /home/hosting_users/inhaswimming/www/zbxe/classes/display/DisplayHandler.class.php on line 233
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/inhaswimming/www/zbxe/widgets/weather_ko/weather_ko.class.php:22) in /home/hosting_users/inhaswimming/www/zbxe/classes/display/DisplayHandler.class.php on line 234
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/inhaswimming/www/zbxe/widgets/weather_ko/weather_ko.class.php:22) in /home/hosting_users/inhaswimming/www/zbxe/classes/display/DisplayHandler.class.php on line 235
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/inhaswimming/www/zbxe/widgets/weather_ko/weather_ko.class.php:22) in /home/hosting_users/inhaswimming/www/zbxe/classes/display/DisplayHandler.class.php on line 236
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/inhaswimming/www/zbxe/widgets/weather_ko/weather_ko.class.php:22) in /home/hosting_users/inhaswimming/www/zbxe/classes/display/DisplayHandler.class.php on line 237
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/inhaswimming/www/zbxe/widgets/weather_ko/weather_ko.class.php:22) in /home/hosting_users/inhaswimming/www/zbxe/classes/display/DisplayHandler.class.php on line 92
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/inhaswimming/www/zbxe/widgets/weather_ko/weather_ko.class.php:22) in /home/hosting_users/inhaswimming/www/zbxe/classes/display/DisplayHandler.class.php on line 92
적용이 불가능 한걸까요?
에러나는 두 파일(weather_ko.class.php, Unserializer.php)의 절대경로를 소스 상에 직접 적용하고 나니 아래와 같은 오류가 발생하였습니다.
Warning: file_get_contents(): URL file-access is disabled in the server configuration in /home/hosting_users/inhaswimming/www/zbxe/widgets/weather_ko/weather_ko.class.php on line 22
Warning: file_get_contents(http://www.kma.go.kr/XML/weather/sfc_web_map.xml): failed to open stream: no suitable wrapper could be found in /home/hosting_users/inhaswimming/www/zbxe/widgets/weather_ko/weather_ko.class.php on line 22
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/inhaswimming/www/zbxe/widgets/weather_ko/weather_ko.class.php:22) in /home/hosting_users/inhaswimming/www/zbxe/classes/display/DisplayHandler.class.php on line 211
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/inhaswimming/www/zbxe/widgets/weather_ko/weather_ko.class.php:22) in /home/hosting_users/inhaswimming/www/zbxe/classes/display/DisplayHandler.class.php on line 232
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/inhaswimming/www/zbxe/widgets/weather_ko/weather_ko.class.php:22) in /home/hosting_users/inhaswimming/www/zbxe/classes/display/DisplayHandler.class.php on line 233
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/inhaswimming/www/zbxe/widgets/weather_ko/weather_ko.class.php:22) in /home/hosting_users/inhaswimming/www/zbxe/classes/display/DisplayHandler.class.php on line 234
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/inhaswimming/www/zbxe/widgets/weather_ko/weather_ko.class.php:22) in /home/hosting_users/inhaswimming/www/zbxe/classes/display/DisplayHandler.class.php on line 235
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/inhaswimming/www/zbxe/widgets/weather_ko/weather_ko.class.php:22) in /home/hosting_users/inhaswimming/www/zbxe/classes/display/DisplayHandler.class.php on line 236
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/inhaswimming/www/zbxe/widgets/weather_ko/weather_ko.class.php:22) in /home/hosting_users/inhaswimming/www/zbxe/classes/display/DisplayHandler.class.php on line 237
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/inhaswimming/www/zbxe/widgets/weather_ko/weather_ko.class.php:22) in /home/hosting_users/inhaswimming/www/zbxe/classes/display/DisplayHandler.class.php on line 92
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/inhaswimming/www/zbxe/widgets/weather_ko/weather_ko.class.php:22) in /home/hosting_users/inhaswimming/www/zbxe/classes/display/DisplayHandler.class.php on line 92
적용이 불가능 한걸까요?
안녕하세요.. 일기예보위젯을 사용하려다보니.. 제 홈피가 백지상태로 변합니다.
XML 폴더는 libs/PEAR/XML
위젯폴더밑에 weather위젯폴더를 올렸구요..
layout.html 에 위젯소스를 넣으면 홈피가 백지로 아무것도 안나옵니다..
그래서 말씀하신데로..
위젯클라스파일 ( weather_ko.class.php ) 의 7번째줄을 절대경로를 적어줬습니다.
set_include_path("/home/woojjaa/public_html/zbxe/libs/PEAR");
그래도 동일하게 백지상태입니다.
일기예보위젯을 사용하고 싶은데.. 방법좀 알려주세요..^^;;
XML 폴더는 libs/PEAR/XML
위젯폴더밑에 weather위젯폴더를 올렸구요..
layout.html 에 위젯소스를 넣으면 홈피가 백지로 아무것도 안나옵니다..
그래서 말씀하신데로..
위젯클라스파일 ( weather_ko.class.php ) 의 7번째줄을 절대경로를 적어줬습니다.
set_include_path("/home/woojjaa/public_html/zbxe/libs/PEAR");
그래도 동일하게 백지상태입니다.
일기예보위젯을 사용하고 싶은데.. 방법좀 알려주세요..^^;;








코드삽입하면 사이트자체가 열리지 않습니다.