WXforum.net
May 23, 2013, 02:49:17 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
Members: 6617  •  Posts: 178629  •  Topics: 18128
Please welcome TheMOX, our newest member.
Welcome to the the new hosting for WXforum.net.
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: I need this image  (Read 757 times)
0 Members and 1 Guest are viewing this topic.
hayskswx
Forecaster
*****
Offline Offline

Posts: 1597



WWW
« on: June 07, 2012, 01:38:20 PM »

I need this image.
moon/b/NH-moon17.gif

It goes with my astronomy page and I'm showing a red x.

http://hayskansasweather.com/wxastronomy.php
Logged



Ryan
Davis Vantage Vue WX Station - Weather Display Software - Win7
www.hayskansasweather.com
Axelvold
Forecaster
*****
Offline Offline

Posts: 1702



WWW
« Reply #1 on: June 07, 2012, 03:58:16 PM »

Here you go.
Logged

Lars Magnusson
Axelvold / Sweden
55° 57' 41" N / 13° 6' 1" E
WX Station: Davis Vantage Pro2 Plus


Axelvold
Forecaster
*****
Offline Offline

Posts: 1702



WWW
« Reply #2 on: June 07, 2012, 04:01:14 PM »

or with white background.
Logged

Lars Magnusson
Axelvold / Sweden
55° 57' 41" N / 13° 6' 1" E
WX Station: Davis Vantage Pro2 Plus


hayskswx
Forecaster
*****
Offline Offline

Posts: 1597



WWW
« Reply #3 on: June 07, 2012, 11:40:47 PM »

Thanks!!!
Logged



Ryan
Davis Vantage Vue WX Station - Weather Display Software - Win7
www.hayskansasweather.com
hayskswx
Forecaster
*****
Offline Offline

Posts: 1597



WWW
« Reply #4 on: June 08, 2012, 12:23:13 PM »

sorry its moon 18


moon/b/NH-moon18.gif
Logged



Ryan
Davis Vantage Vue WX Station - Weather Display Software - Win7
www.hayskansasweather.com
Axelvold
Forecaster
*****
Offline Offline

Posts: 1702



WWW
« Reply #5 on: June 08, 2012, 12:49:54 PM »

here you go.
Logged

Lars Magnusson
Axelvold / Sweden
55° 57' 41" N / 13° 6' 1" E
WX Station: Davis Vantage Pro2 Plus


hayskswx
Forecaster
*****
Offline Offline

Posts: 1597



WWW
« Reply #6 on: June 08, 2012, 12:56:20 PM »

Thanks. For some reason I cant get this dang moon to appear
Logged



Ryan
Davis Vantage Vue WX Station - Weather Display Software - Win7
www.hayskansasweather.com
Axelvold
Forecaster
*****
Offline Offline

Posts: 1702



WWW
« Reply #7 on: June 08, 2012, 02:37:46 PM »

Thanks. For some reason I cant get this dang moon to appear

Do you have those images in the right folder?

http://hayskansasweather.com/ajax-images/moon/b/NH-moon18.gif returns a 404

But here is where you placed the images, http://hayskansasweather.com/ajax-images/NH-moon18.gif

Create the folowing subfolders, moon and b in the ajax-images folder and move this images there and it will work.

Or change the path in wxastronomy.php to folder ajax-images.
« Last Edit: June 08, 2012, 02:41:12 PM by Axelvold » Logged

Lars Magnusson
Axelvold / Sweden
55° 57' 41" N / 13° 6' 1" E
WX Station: Davis Vantage Pro2 Plus


hayskswx
Forecaster
*****
Offline Offline

Posts: 1597



WWW
« Reply #8 on: June 08, 2012, 03:33:28 PM »

Here is what I got in wxastronomy.php

if ((include_once "Settings.php") == 0) {
   $SITE['latitude' ]      = 32.36924; // N+, S-
   $SITE['longitude']      =  -111.06595; // W-, E+
   $SITE['imagesDir']      = './ajax-images/'; // path for moon images
   $SITE['dateOnlyFormat'] = 'd M Y';
   $SITE['timeOnlyFormat'] = 'H:i';
   $SITE['testtags']       = 'testtags.php'; // required for moon rise/transit/set and seasons dates
Logged



Ryan
Davis Vantage Vue WX Station - Weather Display Software - Win7
www.hayskansasweather.com
Axelvold
Forecaster
*****
Offline Offline

Posts: 1702



WWW
« Reply #9 on: June 08, 2012, 03:38:13 PM »

Try to find this line in wxastronomy.php

Code:
<small>Moon below horison</small><br />
         <span id="ajaxmoonimg100"><img border="0" src="./ajax-images/moon/b/NH-moon18.gif" width="100" height="100" alt="18 days, 19 hours, 48 minutes (18.83 days)" title="18 days, 19 hours, 48 minutes (18.83 days)"/>

and remove the following moon/b/
Logged

Lars Magnusson
Axelvold / Sweden
55° 57' 41" N / 13° 6' 1" E
WX Station: Davis Vantage Pro2 Plus


hayskswx
Forecaster
*****
Offline Offline

Posts: 1597



WWW
« Reply #10 on: June 08, 2012, 03:42:53 PM »

Here is the line I have

 ?></small><br />
         <span id="ajaxmoonimg100"><img border="0" src="<?php echo $currentmoon; ?>" width="100" height="100" alt="<?php echo $moon->age; ?>" title="<?php echo $moon->age; ?>"/></span><br />
Logged



Ryan
Davis Vantage Vue WX Station - Weather Display Software - Win7
www.hayskansasweather.com
hayskswx
Forecaster
*****
Offline Offline

Posts: 1597



WWW
« Reply #11 on: June 08, 2012, 03:49:15 PM »

I changed it to this....

<span id="ajaxmoonimg100"><img border="0" src="./ajax-images/NH-moon18.gif" width="100" height="100" alt="<?php echo $moon->age; ?>" title="<?php echo $moon->age; ?>"/></span><br />

and it worked.. See it here http://hayskansasweather.com/wxastronomy.php
Logged



Ryan
Davis Vantage Vue WX Station - Weather Display Software - Win7
www.hayskansasweather.com
Axelvold
Forecaster
*****
Offline Offline

Posts: 1702



WWW
« Reply #12 on: June 08, 2012, 03:52:23 PM »

could you post a copy of wxastronomy.php here?
Logged

Lars Magnusson
Axelvold / Sweden
55° 57' 41" N / 13° 6' 1" E
WX Station: Davis Vantage Pro2 Plus


hayskswx
Forecaster
*****
Offline Offline

Posts: 1597



WWW
« Reply #13 on: June 08, 2012, 03:57:47 PM »

Here ya go
Logged



Ryan
Davis Vantage Vue WX Station - Weather Display Software - Win7
www.hayskansasweather.com
Axelvold
Forecaster
*****
Offline Offline

Posts: 1702



WWW
« Reply #14 on: June 08, 2012, 04:04:27 PM »

Change this (you will find it at line 255)

Code:
$moon = getMoonInfo();
   if($SITE['latitude' ] >= 0)
        $HF = 'NH'; // use Northern Hemisphere moon img
   else $HF = 'SH'; // use Southern Hemisphere moon img
   $currentmoon = $SITE['imagesDir'].'moon/b/'.$HF.'-moon'.str_pad($moon->pic,2,"0",STR_PAD_LEFT).'.gif';

To

Code:
$moon = getMoonInfo();
   if($SITE['latitude' ] >= 0)
        $HF = 'NH'; // use Northern Hemisphere moon img
   else $HF = 'SH'; // use Southern Hemisphere moon img
   $currentmoon = $SITE['imagesDir'].$HF.'-moon'.str_pad($moon->pic,2,"0",STR_PAD_LEFT).'.gif';

and change back the line you did edit before so do I think it will work just fine.
Logged

Lars Magnusson
Axelvold / Sweden
55° 57' 41" N / 13° 6' 1" E
WX Station: Davis Vantage Pro2 Plus


hayskswx
Forecaster
*****
Offline Offline

Posts: 1597



WWW
« Reply #15 on: June 08, 2012, 04:14:45 PM »

Thanks again Axelvold for helping me.

http://hayskansasweather.com/wxastronomy.php
Logged



Ryan
Davis Vantage Vue WX Station - Weather Display Software - Win7
www.hayskansasweather.com
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.108 seconds with 19 queries.
anything