Step by step help wanted for php web site

Vern,

Looking at the files you’ve uploaded, there’s one called “thetfordweather ajax images” and it’s a folder. Can you change the name of that folder to “ajax images” on the server. This contains all the images for your weather forecasts plus a oad more things so the name must be correct. :wink:

:smiley: Great thanks I’m on the case…

:? Can you tell me what to do with this little lot ta

Vernon.
Forecast script settings area

#
$SITE['UVscript']		= 'get-UV-forecast-inc.php'; // worldwide forecast script for UV Index
//	comment out above line to exclude UV forecast
//
# if you have WXSIM and plaintext-parser.php, set $SITE['WXSIM'] = true;
# to have the WXSIM forecast text appear in the dashboard along with your primary forecast org's
# forecast.  
$SITE['WXSIM']			= true;  // Set to false if no WXSIM/plaintext-parser.php
$SITE['WXSIMscript'] 	= 'plaintext-parser.php'; // script for decoding plaintext.txt into icons
$SITE['defaultlang']	= 'en';   // 'en' for English (WXSIM plaintext-parser.php)

# fcsturlWU  the Wunderground URL for the non-US/non-Canadian forecasts (WU-forecast.php)
$SITE['fcsturlWU'] 		= 'http://www.wunderground.com/global/stations/93119.html'; // Awhitu, Waiuku New Zealand

$SITE['fcsticonsdir'] = './forecast/images/'; // NOAA-style icons for NWS, WU, WXSIM forecast scripts
#
#---- in the following section, enable settings for ONE primary forecast organization
# pick which script AND org are to be used for your forecast here: (last uncommented pair will
#  be the ones used on the wxforecast.php page and in your dashboard and sidebar

$SITE['fcstscript']	= 'WU-forecast.php';    // Non-USA, Non-Canada Wunderground Forecast Script
$SITE['fcstorg']		= 'WU';    // set to 'WU' for WeatherUnderground

#$SITE['fcstscript']	= 'plaintext-parser.php';    // WXSIM forecast (if only forecast script)
#$SITE['fcstorg']		= 'WXSIM';    // set to 'WXSIM' for WXSIM forecast

We’ll taken them one at a time:

#
$SITE[‘UVscript’] = ‘get-UV-forecast-inc.php’; // worldwide forecast script for UV Index
// comment out above line to exclude UV forecast
//
If you don’t have/want the UV forecast then just put // at the start of the line: //$SITE[‘UVscript’]

[b]# if you have WXSIM and plaintext-parser.php, set $SITE[‘WXSIM’] = true;

to have the WXSIM forecast text appear in the dashboard along with your primary forecast org’s

forecast.

$SITE[‘WXSIM’] = true; // Set to false if no WXSIM/plaintext-parser.php
$SITE[‘WXSIMscript’] = ‘plaintext-parser.php’; // script for decoding plaintext.txt into icons
$SITE[‘defaultlang’] = ‘en’; // ‘en’ for English (WXSIM plaintext-parser.php)[/b]

If you don’t have WXSIM then change the “= true;” to “= false;”

# fcsturlWU the Wunderground URL for the non-US/non-Canadian forecasts (WU-forecast.php)
$SITE[‘fcsturlWU’] = ‘Local Weather Forecast, News and Conditions | Weather Underground’; // Awhitu, Waiuku New Zealand

This is the Weather Underground forecast, for your area you’ll need Norwich (it’s the closest one on there) so change the URL to this:
$SITE[‘fcsturlWU’] = ‘http://www.wunderground.com/global/stations/03492.html’; // Norwich, Norfolk, UK

$SITE[‘fcsticonsdir’] = ‘./forecast/images/’; // NOAA-style icons for NWS, WU, WXSIM forecast scripts
You don’t have a folder called “forecast” in the directory, see if it was in the download and if it was then upload it to the server. If you don’t have it then we’ll find it for you tomorrow. :wink:

#---- in the following section, enable settings for ONE primary forecast organization

pick which script AND org are to be used for your forecast here: (last uncommented pair will

be the ones used on the wxforecast.php page and in your dashboard and sidebar

Leave this last one as it is.

Once you’ve done all of this then save the setting.php file and upload it to the website.
I think that’ll do me for tonight, we’ll carry on in the morning. :wink:

:smiley: Thanks martin great help thank you.

Vernon…

Right then, I’m just having a look through you site to see what else we need to do.
It’s nearly there now. :smiley:

Back in a mo’. :wink:

Right then, for the other images that aren’t showing. Can you look at the ‘settings.php’ file and look for this section:

###########################################################################

ajax-dashboard, ajax-sidebar settings (will override defaults in

the scripts themselves when included in this site

###########################################################################

Below that, check that this line is as it is exactly as I have it below:

$SITE['imagesDir'] = './ajax-images/'; // directory for ajax-images with trailing slash

If it’s not then change it to the same as I have it, save, and upload the settings.php file to the site.

Ok Martin I checked and it is the same no changes needed.

vern

I see the problem. It’s the file name on the server. #-o

Can you go onto the server and rename “ajax images” file to “ajax-images” then they should work. :wink:

:smiley: :smiley: :smiley: :smiley: :smiley: Great suff thanks, whats next?

How about some radar images?

Open the ‘wxradar.php’ file in you test editor and scroll down to where it says


Highlight that line and everything else in there down to where it says

Now paste this code onto the page to replace the code you have highlighted:

<div id="main-copy">
	  <table width="80%"  border="0" cellpadding="1">
        <tr>
          <th scope="col"><h3 align="center">Local Radar</h3></th>
          <th scope="col"><h3 align="center">UK &amp; Europian Radar</h3></th>
        </tr>
        <tr>
          <td rowspan="2"><div align="center"><img src="http://www.buienradar.nl/images.aspx?jaar=-3&bliksem=0&voor=&soort=loop1uur1x1&tijdid=200804011650" alt="Radar"></div>
          </img></td>
          <td><div align="center"><a href="http://www.meteox.co.uk/h.aspx?r=&jaar=-3&soort=loop1uur"><img src="http://m.meteox.co.uk/images.aspx?jaar=-3&voor=&soort=loop3uur256&c=uk&n=" alt="UK Radar" border="0"></a></div>
          </img></td>
        </tr>
        <tr>
          <td><div align="center"><a href="http://www.meteox.co.uk/h.aspx?r=&jaar=-3&soort=loop1uur"><img src="http://m.meteox.com/" alt="UK Radar" border="0"></a></div>
          </img></td>
        </tr>
      </table>

  </div><!-- end main-copy -->

Save ‘wxradar.php’ and upload it.

Edit: We may have to modify the code as I think the images maybe a little large for the narrow page. But we’ll deal with that when we know what it looks like. :wink:

:smiley: :smiley: :smiley: :smiley: :smiley: :smiley: :smiley: WOW thats great, whats next?
Ta Vernon

Next we do the same again only put this code in place of the one you’ve just put in the wxradar.php file, it just makes it fit the page. :wink:

<div id="main-copy">
	  <table width="80%"  border="0" cellpadding="1">
        <tr>
          <th colspan="2" scope="col">Local Radar</th>
        </tr>
        <tr>
          <th colspan="2" scope="col"><img src="http://www.buienradar.nl/images.aspx?jaar=-3&bliksem=0&voor=&soort=loop1uur1x1&tijdid=200804011650" alt="Radar"></th>
        </tr>
        <tr>
          <th colspan="2" scope="col">UK &amp; Europian Radar</th>
        </tr>
        <tr>
          <th scope="col"><a href="http://www.meteox.co.uk/h.aspx?r=&jaar=-3&soort=loop1uur"><img src="http://m.meteox.co.uk/images.aspx?jaar=-3&voor=&soort=loop3uur256&c=uk&n=" alt="UK Radar" border="0"></a></th>
          <th scope="col"><a href="http://www.meteox.co.uk/h.aspx?r=&jaar=-3&soort=loop1uur"><img src="http://m.meteox.com/" alt="UK Radar" border="0"></a></th>
        </tr>
      </table>

</div><!-- end main-copy -->

well, I am confused now. I got curious andwanted to see how the new site is coming along. I went to www.thetfordweather.co.uk for some reason it gives me a listing of all the files on the web site. I don’t think it should be doing this.

Bill

Ok martin thats done .

That was going to be another question about wxindex.php Bill.

It’s alright Bill, we’re getting to that. :smiley:
We haven’t assigned the index.php file yet, that will sort the problem. :wink:

Vern,
Go onto the wxradar.php page again and just remove the “/forecast/images” from the first line of code you put in, it’s on this line:

/forecast/images

and it should look like this:

Next we’ll do the menu.

Thats done Martin.

OK, that look better. :smiley:

Now the menu and the index.php.

On the server, re-name your wxindex.php file as index.php and save.

Now open the flyout-menu.xml file in Notepad.
Look for a line that says:


Remove the wx from wxindex.php on this line, save and upload.

Now go on to wwwthetfordweather.co.uk and make sure you don’t see the list of files any more.

:smiley: :smiley: Thats great Martin, well impressed!!! whats to do now?

Thank You

Vernon.

Ok, earthquakes next.
They’re already there, we just need to ask for them.

We’ll be working in the flyout-menu.xml file for a bit so keep it on you screen.
We’ll do one thing at a time and check it as we go. :wink:

Look down the file until you see this line:

All you need to do is replace it with this:

</item></blockquote>

Upload the file and check it on the site.