Author Topic: wxnewpage  (Read 1343 times)

0 Members and 1 Guest are viewing this topic.

Offline yamiacaveman

  • Forecaster
  • *****
  • Posts: 412
    • Penn Lake Weather
wxnewpage
« on: December 04, 2016, 09:15:48 AM »
Hi,

I am looking for a way to put this link: http://www.weather.gov/nerfc/snow_depth_im# inside the wxnewpage template, so it displays within that wxnewpage design. Is it possible? And if it is, please in simple terms.

Thanks for any help.

Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 6326
    • LiVE WEATHER
Re: wxnewpage
« Reply #1 on: December 04, 2016, 09:44:08 AM »
You could add this to page

Code: [Select]
<img src="http://www.weather.gov/images/nerfc/ops/nohrsc_full_sd.png">
« Last Edit: December 04, 2016, 12:09:26 PM by ValentineWeather »
Randy

Offline Maumelle Weather

  • Forecaster
  • *****
  • Posts: 1824
    • Maumelle Weather
Re: wxnewpage
« Reply #2 on: December 04, 2016, 09:56:59 AM »
Are you wanting like what Valentine weather posted, just the picture OR where you can look at each zoomed in section by clicking on it, like how it is on the NWS page? If you are wanting the second option, copy the following into the new page:

<div id="main-copy">

<p><img alt="NOHRSC Snow Depth" src="http://www.weather.gov/images/nerfc/ops/nohrsc_full_sd.png" usemap="#depthmap" /><map id="depthmap" name="depthmap"><area alt="buffalo area" class="group5" coords="35,325,72,304,110,297,110,385,35,385,35,325" href="http://www.weather.gov/images/nerfc/ops/wwny_snowdepth.png" shape="polygon" /><br />
<area alt="Genesee River Valley" class="group5" coords="111,297,160,297,160,385,111,385,111,297 " href="http://www.weather.gov/images/nerfc/ops/wny_snowdepth.png" shape="polygon" /><br />
<area alt="Syracuse Area" class="group5" coords="161,297,266,297,266,344,161,344,161,297" href="http://www.weather.gov/images/nerfc/ops/ncny_snowdepth.png" shape="polygon" /><br />
<area alt="Binghamton Area" class="group5" coords="161,345,266,345,266,385,161,385,161,315" href="http://www.weather.gov/images/nerfc/ops/wcny_snowdepth.png" shape="polygon" /><br />
<area alt="Watertown Area" class="group5" coords="190,255,260,255,260,296,190,296,190,255" href="http://www.weather.gov/images/nerfc/ops/nwny_snowdepth.png" shape="polygon" /><br />
<area alt="Northern NY" class="group5" coords="220,220,335,220,335,296,268,296,268,254,220,254,220,220" href="http://www.weather.gov/images/nerfc/ops/nny_snowdepth.png" shape="polygon" /><br />
<area alt="Catskill Mountains" class="group5" coords="267,355,320,355,320,385,267,385,267,355" href="http://www.weather.gov/images/nerfc/ops/scny_snowdepth.png" shape="polygon" /><br />
<area alt="Albany-North" class="group5" coords="267,297,335,297,335,354,267,354,267,297" href="http://www.weather.gov/images/nerfc/ops/ecny_snowdepth.png" shape="polygon" /><br />
<area alt="NYC Metro" class="group5" coords="250,386,320,386,320,430,250,430,250,386" href="http://www.weather.gov/images/nerfc/ops/sny_snowdepth.png" shape="polygon" /><br />
<area alt="LI and CT" class="group5" coords="321,370,395,370,395,435,321,435,321,370" href="http://www.weather.gov/images/nerfc/ops/ctli_snowdepth.png" shape="polygon" /><br />
<area alt="Northern VT" class="group5" coords="336,230,410,230,410,296,336,296,336,230" href="http://www.weather.gov/images/nerfc/ops/nvt_snowdepth.png" shape="polygon" /><br />
<area alt="Southern VT" class="group5" coords="336,297,410,297,410,343,336,343,336,297" href="http://www.weather.gov/images/nerfc/ops/svt_snowdepth.png" shape="polygon" /><br />
<area alt="Northern NH" class="group5" coords="411,225,441,225,441,296,411,296,411,225" href="http://www.weather.gov/images/nerfc/ops/nnh_snowdepth.png" shape="polygon" /><br />
<area alt="Southern NH" class="group5" coords="411,297,451,297,451,330,430,337,411,343,411,297" href="http://www.weather.gov/images/nerfc/ops/snh_snowdepth.png" shape="polygon" /><br />
<area alt="Southern New England" class="group5" coords="336,344,411,344,430,338,451,331,500,350,500,435,396,435,394,371,322,371,322,355,336,355,336,344" href="http://www.weather.gov/images/nerfc/ops/sne_snowdepth.png" shape="polygon" /><br />
<area alt="NW Maine" class="group5" coords="442,190,492,190,492,245,442,245,442,190" href="http://www.weather.gov/images/nerfc/ops/nwme_snowdepth.png" shape="polygon" /><br />
<area alt="Southern Maine" class="group5" coords="442,246,480,246,480,325,452,325,452,296,442,296,442,246" href="http://www.weather.gov/images/nerfc/ops/sme_snowdepth.png" shape="polygon" /><br />
<area alt="South Central Maine" class="group5" coords="481,230,545,230,545,325,481,325,481,230" href="http://www.weather.gov/images/nerfc/ops/scme_snowdepth.png" shape="polygon" /><br />
<area alt="Downeast Maine" class="group5" coords="546,206,610,206,610,296,546,296,546,206" href="http://www.weather.gov/images/nerfc/ops/deme_snowdepth.png" shape="polygon" /><br />
<area alt="Northern Maine" class="group5" coords="475,125,530,125,530,189,475,189,475,125" href="http://www.weather.gov/images/nerfc/ops/nme_snowdepth.png" shape="polygon" /><br />
<area alt="Northeast Maine " class="group5" coords="531,125,590,125,590,180,531,180,531,125" href="http://www.weather.gov/images/nerfc/ops/neme_snowdepth.png" shape="polygon" /><br />
<area alt="North Central Maine" class="group5" coords="493,181,590,181,590,205,545,205,545,229,493,229,493,181" href="http://www.weather.gov/images/nerfc/ops/ncme_snowdepth.png" shape="polygon" /><br />
--&gt;</map></p>

</div><!-- end main-copy -->

John
GR2AE, GR3, Cumulus

Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 6326
    • LiVE WEATHER
Re: wxnewpage
« Reply #3 on: December 04, 2016, 09:59:30 AM »
Nice John  =D&gt;
Randy

Offline yamiacaveman

  • Forecaster
  • *****
  • Posts: 412
    • Penn Lake Weather
Re: wxnewpage
« Reply #4 on: December 04, 2016, 01:14:22 PM »
Ok so I think I did thing right??? I really did just a copied and paste with both your codes and then I tried my simple version and still ended up with well here, look. all those warnings and such ---
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/pennla7/public_html/wxnsnowdepth.php:1) in /home/pennla7/public_html/include-style-switcher.php on line 31

Warning: Cannot modify header information - headers already sent by (output started at /home/pennla7/public_html/wxnsnowdepth.php:1) in /home/pennla7/public_html/include-style-switcher.php on line 350

Warning: Cannot modify header information - headers already sent by (output started at /home/pennla7/public_html/wxnsnowdepth.php:1) in /home/pennla7/public_html/include-style-switcher.php on line 350

Warning: Cannot modify header information - headers already sent by (output started at /home/pennla7/public_html/wxnsnowdepth.php:1) in /home/pennla7/public_html/include-style-switcher.php on line 350

Warning: Cannot modify header information - headers already sent by (output started at /home/pennla7/public_html/wxnsnowdepth.php:1) in /home/pennla7/public_html/top.php on line 43
Penn Lake Weather

http://www.pennlake.us/wxnewpage.php
Even for my simple code.
http://www.pennlake.us/wxnsnowdepth.php

Thanks, but all that is getting way above this old guy. but I will try.

Again thanks

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: wxnewpage
« Reply #5 on: December 04, 2016, 02:09:32 PM »
This error is most likely generated by the fact you inserted the HTML in a wrong page, some page which is included in a different one. The HTML as such will not throw a headers error. Unfortunately Im not familiar with Ken's template enough to tell you exactly where to paste what.

Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 6326
    • LiVE WEATHER
Re: wxnewpage
« Reply #6 on: December 04, 2016, 02:18:03 PM »
For simple version copy and paste wxnewpage code on blank page.
Then change this section of code.
Code: [Select]
<div id="main-copy">
 
<h1><?php langtrans('Sample Blank Page'); ?></h1>
   
    <p>This is a sample page</p>

    <p>Copy it to a new name and use as the base for a new page on your site.</p>
   
</div><!-- end main-copy -->

<?php

To this
Code: [Select]
<div id="main-copy">
 
<h1><?php langtrans('Snow Depth'); ?></h1>
   
   <img src="http://www.weather.gov/images/nerfc/ops/nohrsc_full_sd.png">
   
</div><!-- end main-copy -->

<?php

Save as-is and rename to your choice like snowdepth.php
Randy

Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 6326
    • LiVE WEATHER
Re: wxnewpage
« Reply #7 on: December 04, 2016, 02:19:49 PM »
Same with sacreyweather code. It goes in same place.
Randy

Offline yamiacaveman

  • Forecaster
  • *****
  • Posts: 412
    • Penn Lake Weather
Re: wxnewpage
« Reply #8 on: December 04, 2016, 05:32:25 PM »
Before I forget -- Hey Jachym -- What are you doing, getting married or something - looking good all cleaned up, lol. I haven't been on in a while to see the new you.

Thanks for all your help!!!

I will work on it but on my computer the image sticks out the side, or I guess I should say it doesn't quite fit within the framework.

For now I will stick with this: very very simple, http://www.pennlake.us/wxsnowdepth1.php  I will work on that too but for now it is up and working, lol.

Your suggestion are a whole lot better than mine for sure.

I never noticed before all the ready made pages that exist already.

I think I'll get myself into more trouble and try to add them to the flyout menu, lol.

Again thanks for all your work!!!


Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: wxnewpage
« Reply #9 on: December 04, 2016, 06:36:48 PM »
Hi,
no :D I just thought that it is maybe time that I don't use a photo from 2010 anymore :D

I have a suggestion:
Email me the script for this page, but make sure you send me the page with the code for the link, not some page where this one is included. I will insert the div there and send it back to you.

My email: jachymcz@gmail.com