Quote by ChrisF: Looks like the following code is getting executed:
Text Formatted Code
If ($_GW_replace_title_images)
{
$html = replace_titleimages($html);
} ELSE {
$html = str_replace( 'src="/weather/images/fcicons/','src="' . $_GW_sw_iconpath.'/', $html );
}
return $html;
The path being used for my missing icons on the "Forecast at a glance" is "/ifps/text/images" which doesn't exist on my site.
I'm going to try to quick fix from above, I just can't see where the /ifps/... is getting loaded.
I have fixed this for my site -- I added this line (at line 90) to my weather/index.php:
Text Formatted Code
$html = str_replace( 'src="/ifps/text/images/','src="' . $_GW_sw_iconpath.'/', $html );
This produces the following code:
Text Formatted Code
If ($_GW_replace_title_images)
{
$html = replace_titleimages($html);
$html = str_replace( 'src="/ifps/text/images/','src="' . $_GW_sw_iconpath.'/', $html );
} ELSE {
$html = str_replace( 'src="/weather/images/fcicons/','src="' . $_GW_sw_iconpath.'/', $html );
}
return $html;
}
For those who want to know -- what this file does is go to the NWS website for the metar you want and grabs the resulting html -- it then parses through it, cleaning up the code a bit. The original html page has images located at "/ifps/text/images", so that is where that is coming from. My line simply takes that path and replaces it with the icon path for your server, stored by the $_GW_sw_iconpath variable. Not bad for someone who's never used php before, eh?
I was also missing the following icons:
rasn30.jpgnsn30.jpg