cloudy cloudy

Author Topic: Alternative ATOM Feed Alert Program  (Read 80484 times)

0 Members and 1 Guest are viewing this topic.

curly

  • Guest
Re: Alternative ATOM Feed Alert Program
« Reply #30 on: July 19, 2009, 12:03:15 AM »
Fixed a minor error in the AtomSummary.php that didn't validate as strict.

Find this
Code: [Select]
<a href="#" style="color: black; font-size: 90%;" onClick="window.open('./images/iconkey.png', '','width=572,height=398')">Icon key</a><br /><br />
Replace it with this
Code: [Select]
<a href="#" style="color: black; font-size: 90%;" onclick="window.open('./images/iconkey.png', '','width=572,height=398')">Icon key</a><br /><br />

If you want the timezone displayed on the end of the time at  "Last update:"
Find this
Code: [Select]
  $update_time = "&nbsp;Last update: " . date ("F d Y g:i a",filemtime($file))."&nbsp;";Replace it with this
Code: [Select]
  $update_time = "&nbsp;Last update: " . date ("F d Y g:i a T",filemtime($file))."&nbsp;";

mth

  • Guest
Re: Alternative ATOM Feed Alert Program
« Reply #31 on: July 19, 2009, 12:38:32 AM »
Curly,

Added the timezone, my update time now displays:

From This:
Last Updated: July 18 2009 8:29 pm 

To This:
Last Updated: July 18 2009 8:29 pm EDT

Thanks,
Michael

Offline tstorm

  • Posts: 378
  • Harpers Ferry, WV
    • Meadowbrook Farm Weather
Re: Alternative ATOM Feed Alert Program
« Reply #32 on: July 19, 2009, 11:36:30 AM »
I've noticed something a little strange this morning with my AtomSummary page.  I've added some zones outside of my area to test out the scripts.  I have attached a screen shot of when there was two advisories/warnings for one zone (in this case Texas Oklahoma).  Notice that there is a blue line at the top of each warning/advisory except the top one.  Also, more important is a blue line through the short term forecast for Texas Oklahoma.  Any ideas on where the problem is?


http://www.harpersferry-weather.com/AtomSummary.php

Thanks,

John
« Last Edit: July 19, 2009, 11:44:21 AM by tstorm »

Offline jmcmurry

  • Jim McMurry
  • Posts: 2,836
  • Mauston, WI, USA
    • Juneau County Weather
Re: Alternative ATOM Feed Alert Program
« Reply #33 on: July 19, 2009, 12:14:29 PM »
John,

I believe the blue lines are just the underlining indicating that they are links.  It sure does mess things up when you have two in the same area.  You can modify the css to remove that with text-decoration:none; I believe.

- Jim

Forum Search and Google can be your best friends

curly

  • Guest
Re: Alternative ATOM Feed Alert Program
« Reply #34 on: July 19, 2009, 12:33:42 PM »
John,

I think the line height is spacing everything farther than what it should be. Before you adjust your CSS, do this first.
Open AtomSummary.php and find this line
Code: [Select]
print '<span style="font-size: 120%; line-height: 2em"><b>'.$a[0][2].' - '. $a[0][0]. '</b></span><br />';
Replace it with this line
Code: [Select]
print '<span style="font-size: 120%"><b>'.$a[0][2].' - '. $a[0][0]. '</b></span><br />';
After you do that, then the css can be adjusted if needed.


Offline tstorm

  • Posts: 378
  • Harpers Ferry, WV
    • Meadowbrook Farm Weather
Re: Alternative ATOM Feed Alert Program
« Reply #35 on: July 19, 2009, 12:50:37 PM »
That doesn't seem to have done anything.  Where do you suggest that I make adjustments to the decoration?

Thanks,

John

mth

  • Guest
Re: Alternative ATOM Feed Alert Program
« Reply #36 on: July 19, 2009, 01:05:08 PM »
That doesn't seem to have done anything.  Where do you suggest that I make adjustments to the decoration?

Thanks,

John

John,

Looks fine here using IE8.

Michael

Offline tstorm

  • Posts: 378
  • Harpers Ferry, WV
    • Meadowbrook Farm Weather
Re: Alternative ATOM Feed Alert Program
« Reply #37 on: July 19, 2009, 01:11:48 PM »
I'm seeing this issue using FireFox 3.0.11.  I did bring it up in Internet Explorer and it shows fine.

John

curly

  • Guest
Re: Alternative ATOM Feed Alert Program
« Reply #38 on: July 19, 2009, 01:33:27 PM »
John,

That line-height is still in your page
Code: [Select]
<span style="font-size: 120%; line-height: 2em"><b>Clay  Minnesota - MNZ003</b></span>
I don't think changing the css will have any effect until  line-height: 2em is removed.

Offline tstorm

  • Posts: 378
  • Harpers Ferry, WV
    • Meadowbrook Farm Weather
Re: Alternative ATOM Feed Alert Program
« Reply #39 on: July 19, 2009, 01:42:19 PM »
John,

That line-height is still in your page
Code: [Select]
<span style="font-size: 120%; line-height: 2em"><b>Clay  Minnesota - MNZ003</b></span>
I don't think changing the css will have any effect until  line-height: 2em is removed.

You must of caught me after I re uploaded the AtomSummary.php and didn't make the changes again.  So where do you suggest that the css should be changed?

Thanks,

John

curly

  • Guest
Re: Alternative ATOM Feed Alert Program
« Reply #40 on: July 19, 2009, 02:26:58 PM »
John,

Give me some time to figure this out.  I'm at your site looking into it.

curly

  • Guest
Re: Alternative ATOM Feed Alert Program
« Reply #41 on: July 19, 2009, 03:33:40 PM »
For those who are seeing the large space between the link and underline in the AtomSummary.php page, this can be easily fixed.
Open AtomSummary.php, find this and then delete it.
Code: [Select]
; vertical-align: top;
Curly

warwickpaweather

  • Guest
Re: Alternative ATOM Feed Alert Program
« Reply #42 on: July 19, 2009, 04:15:06 PM »
My isp Cron manager shot...

mth

  • Guest
Re: Alternative ATOM Feed Alert Program
« Reply #43 on: July 19, 2009, 04:21:01 PM »
Chris,

Do you need to know what to place in your cron manager?

Michael


warwickpaweather

  • Guest
Re: Alternative ATOM Feed Alert Program
« Reply #44 on: July 19, 2009, 04:24:35 PM »
Indeed I do since this Cron stuff is all very new to me. Any and all help is appreciated!