wxtrends.php dirplot.gif location

My wxtrends.php is showing no dirplot.gif image. I am creating the file in WD and it is uploading to my web server but when i inspect element of the image its looking for /imagesdirplot.gif. Can i change this to look for /dirplot.gif or how do i create a /imagesdirplot.gif file in WD??? A link to the page is here www.waterfordcityweather.com/wxtrends.php

Cheers

Mike

You need to open the file called trends-inc.php in your text editor and look around line 490 for this coding:

<tr class="table-top">
<td colspan="2"><?php echo langtrans('CURRENT'); ?></td>
<td rowspan="18" align="center"><img src="imagedirplot.gif" width="381" height="361" alt="Wind direction plot"></img></td>
</tr>

Change it to this code:

<tr class="table-top">
<td colspan="2"><?php echo langtrans('CURRENT'); ?></td>
<td rowspan="18" align="center"><img src="dirplot.gif" width="381" height="361" alt="Wind direction plot"></img></td>
</tr>

Then save and upload trends-inc.php to you website.

I don’t seem to have a trends-inc.php just a WD-trends-inc.php file. Are they one in the same?? This is how it looks at the moment noting that i didn’t edit anything. I wonder where is it getting the imagesdirplot.gif from.

<?php echo langtrans('CURRENT'); ?> Wind direction plot

Yes they are the same files, I use an older version of the template. :wink:

It’s getting it from this piece of code:

<?php echo $graphImageDir; ?>

This tells the server where to look for the images.
If you look in the Settings-weather.php file you’ll see line like this:

$SITE['graphImageDir']  = './';  // directory location for graph images with trailing /

This is where it’s getting the “image” part from. You can either correct the location in this line or remove the code that I posted above, providing that your dirplot.gif is in the main directory of your site.

Thanks Budgie

The location in the settings was ./images so i changed that to ./ and now its working. :smiley:

Cheers

Mike