tuxlog
Forum Replies Created
-
Forum: Plugins
In reply to: [wp-forecast] Notice: Undefined index: wpfcid errorseems to be resolved
Forum: Plugins
In reply to: [wp-forecast] Change Weather Iconshello vagu71,
thanks for your request. At the moment the icons will be overwritten with every update. What about a possibility to change the drectory the icons are stored?
wp-forecast supports gif, jpg and png icons. I am not sure about svg but can add the possibility to support the foramt.
If you have an interesting and free icon set, I would be interested. 🙂
Forum: Plugins
In reply to: [wp-greet] TOU content not rendering under certain conditionsI am not sure I got what you want to describe but just fixed the html for the next release. Is there any problem left?
Forum: Plugins
In reply to: [wp-greet] fatal errorThanks for all your hints. I decided to separate this in two files and include accordingly. So, I can better make changes if necessary for future releases.
I will publish it in a few minutes.Please test it and let me know if the problem is gone.
Forum: Plugins
In reply to: [wp-greet] fatal errorHello yezzz,
thank you for this hint. Can you please give the PHP and WordPress Version you are using? It is easier to rebuild the error then.
Thanks
Forum: Plugins
In reply to: [wp-forecast] Sunset and Sunrise off by two hoursI turned out that the werong values came from accuweather to subtract one hour you can change accu_func.php:
`$weather_arr[‘sunrise’] = date($fc_time_format, strtotime($sunarr[0]) );
$weather_arr[‘sunset’] = date($fc_time_format, strtotime($sunarr[1]) );`to
`$weather_arr[‘sunrise’] = date($fc_time_format, strtotime($sunarr[0]) – 3600 );
$weather_arr[‘sunset’] = date($fc_time_format, strtotime($sunarr[1]) – 3600 );`This will do the trick.
Forum: Plugins
In reply to: [wp-forecast] Php 7.4 support`Hello Darell,
seems you are using a different weather plugin than wp-forecast, which supports PHP 7.4.
Regards, Hans
Forum: Plugins
In reply to: [wp-forecast] Notice: Undefined index: wpfcid errorHi,
first of all this is not an error, only a notice and probably it is displayed because you configured WordPress to show notices too.
If wpfcid is not defined you maybe did not create a location and select it in the admin widget dialog.
can you conirm this?
Forum: Plugins
In reply to: [wp-forecast] Sunset and Sunrise off by two hoursCan you please try replacing the two lines in func_accu.php (around line 275) converting the sunset/sunrise with:
$weather_arr['sunrise'] = date($fc_time_format, strtotime($sunarr[0]) ); $weather_arr['sunset'] = date($fc_time_format, strtotime($sunarr[1]) );Hopefully this will fix it. If it works I will integrate it into the next release.
Forum: Plugins
In reply to: [wp-forecast] Sunset and Sunrise off by two hoursokay, think I found the problem. I use date_i18n function to convert the date of sunset and sunrise. I just found out that date_i18n has issues with certain timezone settings, such as numerical ones…
I will try to use another date conversion to fix it.
Forum: Plugins
In reply to: [wp-forecast] Sunset and Sunrise off by two hoursThanks again, I was able to find the reason. It is the PHP timezone set to Europe/Berlin. If set to UTC the sunset/sunrise times are shown correctly.
I will dig into this to find why it is converted this way.
Forum: Plugins
In reply to: [wp-forecast] Sunset and Sunrise off by two hoursHi Daniel,
just tried it and got
sunrise: 6:55
sunset: 19:34Seems to be okay for me.
WordPress – Timezone was Berlin.
What timezone do you use for WordPress? (Einstellungen -> Allgemein)Forum: Plugins
In reply to: [wp-forecast] Sunset and Sunrise off by two hoursHi Daniel,
do you use accuweather or DarkSky? And can you give the location please?
Forum: Plugins
In reply to: [wp-Monalisa] WordPress 5.5Thank you Big Dave of course I fixed this right after I wrote the note and it will be published during the next days.
Forum: Plugins
In reply to: [wp-Monalisa] WordPress 5.5Hello Peter,
thank you for the details. I just checked it again and it is correct this call is now deprecated. I will change it for the next release.
Thanks, Hans