WXforum.net

Web Weather => Weather Website PHP/AJAX scripting => Topic started by: wunderbugwx on April 02, 2019, 02:24:08 PM

Title: atom top warning-2 different zones/same page
Post by: wunderbugwx on April 02, 2019, 02:24:08 PM
Is there any way to display the atom-top-warning for 2 different zones on the same web page? (Not on the the line)
I've been trying for over a week, I can only seem to get one zone to display.
I'm not very knowledgeable on writing code, but I'm good at learning by example or trial and error.
Can someone be kind enough to help me with this problem or steer me in the right direction.
Thank you.
Title: Re: atom top warning-2 different zones/same page
Post by: saratogaWX on April 02, 2019, 04:25:33 PM
I'd replied to your email message to me yesterday with:

The atom-top-warning.php script really allows only one instance (and zone) per PHP page include().

You can 'fake' it by doing something like

Code: [Select]
<?php readfile('http://your.website/atom-top-warning.php?zone=XXnNNN'); ?>
for the second instance if you like..

Best regards,
Ken
Title: Re: atom top warning-2 different zones/same page
Post by: wunderbugwx on April 02, 2019, 05:02:04 PM
So sorry, I'd didn't receive that email. Thanks for responding on here, I'll give it a whirl.