Было бы круче если скрипт будет тянуть для каждого юзверя погоду для того города который указан в профиле. Если в профиле пусто то задать дефолтное значение типа Москва/Киев/Минск
Много понятие растежимое :)
Если парсить погоду для 100 городов єто напряжно?
Еще стоить заметить что многие пользователи не заполняют поле город т.е. им будет парсится дефолтный город!
Можно не тягать каждый раз инфу из источника, а кидать ее в кеш с временнОй отметкой. А дельту обновления задавать в конфиге модуля. Исходников не смотрел, но если сама процедура парсинга тяжелая, то в кеше сохранять уже распарсенные данные.
я думаю не стоит усложнять людям жизнь. если человек хочет плагин, то он будет искать его в разделе «плагины».
или нужно реализовать в каталоге ЛС привязку одного аддона к нескольким категориям + добавление файлов для разных версий.
Получил под 0.4, спасибо. В версии под 0.31 была поддержка прокси, в этой нет?
И небольшой вопрос (пожелание). Реально его заточить под погоду с rp5? Подразумеваю заточку за деньги )
Украинская pda версия функционирует, поэтому в файле /plugins/weather/classes/modules/weather/Weather.class.php в 52 строке меняем ru на ua и все снова работает.
Warning: file_get_contents(http://pda.gismeteo.ua/gm/normal/node/prognoz_day/6/?field_wmo=31735&field_index=31735&sd_field_date=2010-12-24&&ed_field_date=2010-12-24) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden in /home/u101579/xablogiru/www/plugins/weather/classes/modules/weather/Weather.class.php on line 53
Notice: Undefined offset: 1 in /home/u101579/xablogiru/www/plugins/weather/classes/modules/weather/Weather.class.php on line 55
Warning: Cannot modify header information - headers already sent by (output started at /home/u101579/xablogiru/www/plugins/weather/classes/modules/weather/Weather.class.php:53) in /home/u101579/xablogiru/www/engine/include/function.php on line 215
Warning: Cannot modify header information - headers already sent by (output started at /home/u101579/xablogiru/www/plugins/weather/classes/modules/weather/Weather.class.php:53) in /home/u101579/xablogiru/www/engine/include/function.php on line 216
Выходит у моего хостинга нет доступа к сайту украинскому? Что делать?
Warning: set_time_limit() has been disabled for security reasons in /home/bestguys/public_html/weekly.kiev.ua/plugins/weather/PluginWeather.class.php on line 15
Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /home/bestguys/public_html/weekly.kiev.ua/plugins/weather/classes/modules/weather/Weather.class.php on line 59
Warning: file_get_contents(http://m.gismeteo.ru/weather/4944/) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /home/bestguys/public_html/weekly.kiev.ua/plugins/weather/classes/modules/weather/Weather.class.php on line 59
Notice: Undefined offset: 1 in /home/bestguys/public_html/weekly.kiev.ua/plugins/weather/classes/modules/weather/Weather.class.php on line 61
Warning: Cannot modify header information — headers already sent by (output started at /home/bestguys/public_html/weekly.kiev.ua/plugins/weather/PluginWeather.class.php:15) in /home/bestguys/public_html/weekly.kiev.ua/engine/include/function.php on line 215
Warning: Cannot modify header information — headers already sent by (output started at /home/bestguys/public_html/weekly.kiev.ua/plugins/weather/PluginWeather.class.php:15) in /home/bestguys/public_html/weekly.kiev.ua/engine/include/function.php on line 216
75 комментариев
Если парсить погоду для 100 городов єто напряжно?
Еще стоить заметить что многие пользователи не заполняют поле город т.е. им будет парсится дефолтный город!
в это время примерно происходит парсинг, я у себя поставил на 10 минут позже
informer.gismeteo.ru только на 1 день предоставляет погоду.
или нужно реализовать в каталоге ЛС привязку одного аддона к нескольким категориям + добавление файлов для разных версий.
И небольшой вопрос (пожелание). Реально его заточить под погоду с rp5? Подразумеваю заточку за деньги )
Я же в личке написал, что реально.
Спасибо Truth4oll.
Выходит у моего хостинга нет доступа к сайту украинскому? Что делать?
Как решать проблему?
Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /home/bestguys/public_html/weekly.kiev.ua/plugins/weather/classes/modules/weather/Weather.class.php on line 59
Warning: file_get_contents(http://m.gismeteo.ru/weather/4944/) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /home/bestguys/public_html/weekly.kiev.ua/plugins/weather/classes/modules/weather/Weather.class.php on line 59
Notice: Undefined offset: 1 in /home/bestguys/public_html/weekly.kiev.ua/plugins/weather/classes/modules/weather/Weather.class.php on line 61
Warning: Cannot modify header information — headers already sent by (output started at /home/bestguys/public_html/weekly.kiev.ua/plugins/weather/PluginWeather.class.php:15) in /home/bestguys/public_html/weekly.kiev.ua/engine/include/function.php on line 215
Warning: Cannot modify header information — headers already sent by (output started at /home/bestguys/public_html/weekly.kiev.ua/plugins/weather/PluginWeather.class.php:15) in /home/bestguys/public_html/weekly.kiev.ua/engine/include/function.php on line 216
возможно ли что-то сделать?