Hi Jachym,
I just installed the live gauges (very cool BTW). I have one issue with the sunrise/sunset. It is in Epoch time???? I'm not sure, plus my realtime.txt file does not have the sunrise/sunset info. The sunrise/sunset info is in the CUtags.php file. I checked.
Page is here.
Thanks,
John
Hi,
I saw your post yesterday already, but I was not able to quickly find the issue so I am asnwering now. I was quite surprised when I saw this, because as you can see in the demo and on other websites, the exact same script produces normal time and the PHP generated output should be the same on all servers. Your time is in the UNIX format instead of HH:mm.
The times are not taken from any text files, these are actually calculated by the template, it is the same function that is also used in the "Astronomy" pages - sunset, sunrise etc. And to my surprise, those worked fine on your page as well, so I was puzzled by the fact these scripts work there and for some reason they dont work in the live gauges (despite the fact they work elsewhere). However, today I looked at the code more closely and I especially looked more closely at your site and I think I finally found the problem. The problem is you are using outdated version of the template and the compatibility of this plugin is obviously slightly limited - most stuff works, but the time conversion is one of the things that only work correctly in this plugin if you are using newer version of the template - i.e. version 2.0.
I therefore highly suggest you update, it is not that difficult. Version 2.0 brought many bug fixes which you might not even have noticed, it is also much more secure, the 1.x versions are quite prone to SQL injections and also all the sites were optimized so they load faster and important is also the fact that as of 2.0 all sites are in HTML 5 and validated by the W3 standard (pages in v. 1.x often contained several hundreds of errors, which could cause problems in various browsers etc.)
Upgrade is not difficult and in the future, new versions will build up on 2.0. However, the shift from 1.x to 2.0 was quite significant in terms of the code structure and also introduced new structure in the header code, footer code etc. which gave me much better potential for future development of plugins and so it is also likely that more and more plugins will stop or will not work at all right from the beginning. I can also assure you that future updates from 2.0 to new versions will be easier, the problem was that 1.x were still built on the original concept, which I found was impossible to continue.