This script is very unique and incomprehensible. :roll: :lol: :lol: :lol:
The cache server was deleted? (meteoalarm-en.txt, meteoalarm-en.txt ) 8O
This script is very unique and incomprehensible. :roll: :lol: :lol: :lol:
The cache server was deleted? (meteoalarm-en.txt, meteoalarm-en.txt ) 8O
Hi Kartal,
i’ve also found the latest issue
If i recall meteo.php on my home with this code:
<?php
$frontpage = true;
include_once 'meteo.php';
echo $EUAwarning;
?>
no problem when there isn’t any alerts.
But if i left this code and there is an alert…the alert box are double on my home.
If i would only one of these box you should delete this function:
echo $EUAwarning;
The question is: Is it possible to keep this function when no alerts and delete it when an alert is enabled?
Have you done any test with your copy of meteo.php script?
Regards,
Alessandro
HI Alessandro
This is a version that only appears when the alarm is the php index page.
If no alarm event is not displayed on the index.php page.
Paste this code to the main page
<?php include("meteoalarmfejlec.php");echo $out;?>
meteoalarmfejlec.php.txt (3.93 KB)
Hi Kartal,
i’ve tried your script but i can’t test it with an alerts!
And…i like the green rectangle showing when no alerts, don’t you?
I would find a solution to show green rectangle when no alerts and show yellow, orange or red rectangle when there is/are weather alerts but into one rectangle box…not two like now.
Regards,
Alessandro
I try to vary it myself.
Suddenly able :lol: :lol: :lol:
Good morning Kartal,
i don’t manage to fix the double box in home anymore when an alerts is on.
Have you done anny progress?
http://www.meteocarmignano.it/index_test.php?lang=it
http://www.meteocarmignano.it/meteo.php?lang=en
Regards,
Alessandro
HI Alessandro
The settigs.php meteoalarm remove the link from what?
Matt really has no idea.
Regards,
Hi to all,
finally i’ve fixed the double alarm box in home.
Just put this code:
<?php
$frontpage = false;
include_once 'meteo.php';
?>
on your home. That’s it.
It remains only last issue about alarm icons.
If i load the script in english language the alert icon showing correctly http://www.meteocarmignano.it/meteo.php?lang=en
but if i load the script in italian language the alert icon not showing anymore http://www.meteocarmignano.it/meteo.php?lang=it because the link to that icon is wronged: http://www.meteoalarm.eu/Bilder/wf/[b]Eventi%20costieri[/b]
Any help please?
Regards,
Alessandro
Ciao Alessandro,
How you solved the problem about the icons? I’m workin’ on it but, unfortunately, without a solution
grazie mille
I have same problem with the missing icons.
Alessandro, hope you can help.
How did you resolve this?
Oebel
Oebel,
Add some lines at the translation part of the script:
For example copy the ‘en’ lines from "} else if($Lang == “en”) { " … till "$requiredNoteEUA = '<div etc.
Change the ‘en’ in ‘nl’ and translate the english terms in dutch.
Jacco
Hi Jacco,
Thanks. Heard it just before by pm from Henkka. It`s resolved.
Oebel
Thank you very much…Just resolved
I think that we need an update for this script…it doesn’t work after the meteoalarm website changes #-o
I’ve wrote an e-mail to Henkka.
I’m waiting an answer.
Cheers,
Alessandro
Great…!
Yes thanx for it Alessandro
What worked for me:
The warnbox got some extra parameters, so looking at ken’s script i changed the line 314 (for me) in:
preg_match_all(‘|<div class=“warnbox[^”]+">(.*)\t|Uis’,$cData[1],$warnboxes);
Jacco
what I had In Ken script:
preg_match_all(‘|<div class=“warnbox[^”]+">(.)\t|Uis’,$cData[1],$warnboxes);
your change:
preg_match_all('|<div class=“warnbox[^”]+">(.)\t|Uis’,$cData[1],$warnboxes);
looks the same !
Or am I missing something here Jacco ?
groetjes
uit
zaandam
Hi guys!
Got it working and putted together a zip of it: http://www.nordicweather.net/downloads/meteoalarm.zip
It has ability to show 2 warning-areas at same time, if fex. are near coast.
Note tought that not all MetOffices support seawarnings in MeteoAlarm. You see them on MA’s map as light “border” around the coast.
The script are the same seen on my page recently, shows nothing when no warnings in effect and with slidedown for more info when warnings.
Script worked fine with the test-areas i used, and actually the second area don’t need to be a coast-area, it works with whatever areas :lol:
// Henkka