Author Topic: drought page  (Read 223 times)

0 Members and 1 Guest are viewing this topic.

Offline txweather.org

  • Forecaster
  • *****
  • Posts: 1420
    • Texas Weather
drought page
« on: April 21, 2019, 11:45:57 PM »
I am trying to make the drought page from https://www.gwwilkins.org/wxdrought_maps.php

Work on my site but something is not loading and cant figure out what... I change all the links to https.

https://www.txweather.org/wxdrought.php

Ideas?

----
Davis Vantage Pro2 Plus +FARS|Meteobridge Nano SD|Meteohub|Meteobridge MR-3020|WU KTXSPRIN75/PWS JRARGWX75/CWOP EW2972/WBB TXWDVUE75/Blitzortung ID: 1142|AWEKAS: 12095
Donations are welcome: https://paypal.me/ffuentesb

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2187
    • SouthEast Lincoln, NE Weather
Re: drought page
« Reply #1 on: April 22, 2019, 10:54:15 AM »
I am trying to make the drought page from https://www.gwwilkins.org/wxdrought_maps.php

Work on my site but something is not loading and cant figure out what... I change all the links to https.

https://www.txweather.org/wxdrought.php

Ideas?
For reasons unknown to me the page is truncated at a height of around 680px.  I can't figure out where the problem lies.  Sorry... :-(
Regards, Jerry Wilkins
gwwilk@inebraska.com

Offline txweather.org

  • Forecaster
  • *****
  • Posts: 1420
    • Texas Weather
Re: drought page
« Reply #2 on: April 22, 2019, 11:12:34 AM »
gwwilk,

Thanks for your reply.
Ill try and see whats going on... Ill keep digging.

----
Davis Vantage Pro2 Plus +FARS|Meteobridge Nano SD|Meteohub|Meteobridge MR-3020|WU KTXSPRIN75/PWS JRARGWX75/CWOP EW2972/WBB TXWDVUE75/Blitzortung ID: 1142|AWEKAS: 12095
Donations are welcome: https://paypal.me/ffuentesb

Offline sacreyweather

  • Echo Valley Weather
  • Forecaster
  • *****
  • Posts: 1759
    • Echo Valley Weather
Re: drought page
« Reply #3 on: April 22, 2019, 11:23:19 AM »
<div id="drought" class="frame_border center" style="width:662.09302325581px; height:496.56976744186px; position:relative">
              <a href="https://droughtmonitor.unl.edu/data/png/current/current_total_trd.png" target="_blank" title="Larger Map"><img src="https://droughtmonitor.unl.edu/data/png/current/current_total_trd.png" alt="" width="680"/>

The above in bold will make the image appear, then you should be able to finish the page out from there.

John
CWOP: D2073, GR2AE, GR3, Cumulus, PWSweather,  CoCoRaHS: AR-SL-23  

Saline Weather on Twitter
Blitzortung Station 1387

Offline txweather.org

  • Forecaster
  • *****
  • Posts: 1420
    • Texas Weather
Re: drought page
« Reply #4 on: April 22, 2019, 12:33:21 PM »
Note too sure what to change... Its all in there like what you have except with variables...

I moved the page to https://wxdev.txweather.org/wxdrought.php

----
Davis Vantage Pro2 Plus +FARS|Meteobridge Nano SD|Meteohub|Meteobridge MR-3020|WU KTXSPRIN75/PWS JRARGWX75/CWOP EW2972/WBB TXWDVUE75/Blitzortung ID: 1142|AWEKAS: 12095
Donations are welcome: https://paypal.me/ffuentesb

Offline txweather.org

  • Forecaster
  • *****
  • Posts: 1420
    • Texas Weather
Re: drought page
« Reply #5 on: April 22, 2019, 04:00:20 PM »
Found my problem...

I had to change the script:

if (!function_exists('getUniqueImageURL')) {
   function getUniqueImageURL($image_url){
      $timestamp = time();
      if(strpos($image_url, '?')){
         $image_url = str_replace('?', "?$timestamp&", $image_url);
      }
      else{
         $image_url .= "?$timestamp";
      }
      return $image_url;
   }
}


to

function getUniqueImageURL($image_url){
   $timestamp = time();
   if(strpos($image_url, '?')){
      $image_url = str_replace('?', "?$timestamp&", $image_url);
   }
   else{
      $image_url .= "?$timestamp";
   }
   return $image_url;
}

----
Davis Vantage Pro2 Plus +FARS|Meteobridge Nano SD|Meteohub|Meteobridge MR-3020|WU KTXSPRIN75/PWS JRARGWX75/CWOP EW2972/WBB TXWDVUE75/Blitzortung ID: 1142|AWEKAS: 12095
Donations are welcome: https://paypal.me/ffuentesb

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2187
    • SouthEast Lincoln, NE Weather
Re: drought page
« Reply #6 on: April 22, 2019, 04:12:39 PM »
Glad you got it sorted out. That has been an issue for some others as well, and obviously I'm not sure why. The function-check prevents a duplicate function error, but ironically for some it causes an error instead. Sorry...
Regards, Jerry Wilkins
gwwilk@inebraska.com

Offline txweather.org

  • Forecaster
  • *****
  • Posts: 1420
    • Texas Weather
Re: drought page
« Reply #7 on: April 22, 2019, 04:22:45 PM »
Glad you got it sorted out. That has been an issue for some others as well, and obviously I'm not sure why. The function-check prevents a duplicate function error, but ironically for some it causes an error instead. Sorry...

Nothing to be sorry about, Thank you for your awesome work!

----
Davis Vantage Pro2 Plus +FARS|Meteobridge Nano SD|Meteohub|Meteobridge MR-3020|WU KTXSPRIN75/PWS JRARGWX75/CWOP EW2972/WBB TXWDVUE75/Blitzortung ID: 1142|AWEKAS: 12095
Donations are welcome: https://paypal.me/ffuentesb

 

anything