Author Topic: atom top warning-2 different zones/same page  (Read 149 times)

0 Members and 1 Guest are viewing this topic.

Offline wunderbugwx

  • Member
  • *
  • Posts: 11
    • Sasquatch Station 626
atom top warning-2 different zones/same page
« 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.

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 7353
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: atom top warning-2 different zones/same page
« Reply #1 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
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline wunderbugwx

  • Member
  • *
  • Posts: 11
    • Sasquatch Station 626
Re: atom top warning-2 different zones/same page
« Reply #2 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.