Jump to content

Working METAR iframe


Thomas

Recommended Posts

Thought I would share this with you guys so that you dont have to put a support topic saying that the METARS dont work :)

Departure:

<iframe src="http://www.vatsim.net/data/metar.php?id=<?php echo $schedule->depicao; ?>" class="metar" width="350" height="75" frameborder="0" scrolling="no"></iframe>

Arrival:

<iframe src="http://www.vatsim.net/data/metar.php?id=<?php echo $schedule->arricao; ?>" class="metar" width="350" height="75" frameborder="0" scrolling="no"></iframe>

Change it in the Schedule_brief.tpl :)

-Thomas.

Link to comment
Share on other sites

  • 5 months later...
  • 3 weeks later...
  • 2 weeks later...

Hi guys, thought I introduce a little variation for all of you that work their schedules with IATA codes since I found out that the above format doesn't work with them.

In that case, instead of using the code above, you can use this one:

For Departure

<a href="http://www.wunderground.com/Aviation/index.html?query=<?php echo $schedule->depicao; ?>" target="_blank">Departure METAR Details</a><br />

For Arrival

<a href="http://www.wunderground.com/Aviation/index.html?query=<?php echo $schedule->arricao; ?>" target="_blank">Arrival METAR Details</a><br />

Now, this will work, but, since I'm really far away from knowing what I'm doing, if you have a better solution to make the IATA codes work within the <iframe> please post it.

Thank a bunch.

Will

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...