Step by step help wanted for php web site

Vern,

You should upload ajaxgizmo.js again to your website … the copy there seems to be incomplete, so the pages (other than the home page which doesn’t use it) aren’t showing the rotating conditions display near the top-right of the page.

Best regards,
Ken

:smiley: Great looks good

Ok, next.

As you don’t have WD Live at the moment then we’ll take that off the menu, so to speak.

Look for this code:



…and change it to this:

When you save & upload then the 'Live' heading in the menu will disappear. The good thing is that it's easy to put it back again later and the page it links too is also still in the site. :wink:

Here’s the last two for you:

Change this:


	<item caption="Nearby Buoys" link="wxbuoys.php"/>

</item></blockquote>

To this:

<!–

	<item caption="Nearby Buoys" link="wxbuoys.php"/>

</item>

And this lot:




</item></blockquote>

To this:



</item></blockquote>

Save & upload. That’s you done with the menus for now. :wink:

:oops: Its gone wrong…
It says:xml error missmatched tag line 39

It’s alright, try this complete code.

Just select the whole document and replace is with this:

<?xml version="1.0" encoding="iso-8859-1" ?>
<!-- menu control file for flyout-menu.php program -->
<!-- Ken True - available at http://saratoga-weather.org/scripts-CSSmenu.php -->
<!-- NOTE: this file must be correct XML with all tag items properly closed  -->
<!-- Structure of file is

  <menu>
     <item caption="Main 1" link="main1.php" title="topmost menu item"/>
	 <item caption="Main 2" title="Main menu number 2">
	    <item caption="Drop down 1" link="dropdown1.php"/>
	    <item caption="Drop down 2" link="dropdown2.php">
		   <item caption="Flyout 1" link="flyout1.php"/>
		   <item caption="Flyout 2" link="flyout2.php"/>
		   <item caption="Flyout 3" link="flyout3.php">
		     <item caption"Fourth Level Flyout 1" link"level4a.php"/>
		     <item caption"Fourth Level Flyout 2" link"level4b.php"/>
		     <item caption"Fourth Level Flyout 3" link"level4c.php"/>
		   </item>
		</item>
	    <item caption="Drop down 3" link="dropdown3.php"/>
	 </item>
   </menu>
   
 Failure to follow this structure or nest more than 4 sublevels
 may result in unexpected (and incorrect) results .. the top/sub1/sub2/sub3 four
 level menu should allow for highly complex websites.
 
 test your menu XML at http://validator.w3.org/ if you're having a problem.  The proper
 syntax will be checked and (hopefully) erata spotted for you.
-->
<menu>
	<item caption="Home" link="index.php" title="Home Page"/>
<!--
   <item caption="Live" title="Realtime display of weather conditions">
      <item caption="Weather-Display Live" 
      title="Realtime display of conditions using WDL" link="wxlive.php"/>
-->
    </item>
	<item caption="Radar">
	    <item caption="Local Radar" link="wxradar.php" title="Radar"/>
<!--
		<item caption="GRLevel3 Radar" link="wxgr3radar.php" title="NEXRAD Radar using GRLevel3" />
-->
	</item>
<!--
	<item caption="Mesomap" title="Mesomaps, Marine Buoys">
		<item caption="MesoMap Live" link="wxmesomap.php"
		title="Realtime display of nearby conditions using MML"/>
		<item caption="Nearby Buoys" link="wxbuoys.php"/>

	</item>
-->
	<item caption="Forecast &amp;amp; Advisories" title="Weather outlook">
		<item caption="Forecast details" link="wxforecast.php"/>
		<item caption="Advisories" link="wxadvisory.php" />
<!--
		<item caption="WXSIM Forecast details" link="wxsimforecast.php"/>
-->
	</item>
	<item caption="Almanac" title="Trends, Sun/Moon, Earthquakes">
		<item caption="Weather Trends" link="wxtrends.php"/>
		<item caption="Station Graphs" link="wxgraphs.php"/>
		<item caption="Station Monthly Reports" link="wxhistory.php"
		  title="Daily condition reports by Month" />
		<item caption="Sun/Moon Almanac" link="wxastronomy.php"/>
<!--
      <item caption="Earthquake activity" link="wxquake.php"/>
-->
        <item caption="UK Earthquakes" link="wxquakeUK.php"/>

   </item>

    <item caption="Links" link="wxlinks.php"/>
    <item caption="About" link="wxabout.php"/>
<!--  remove this and the finishing HTML comment line to enable the wxcontact.php form (if installed)
	<item caption="Contact" link="wxcontact.php"/>
 -->
    <item caption="Website Map" link="wxsitemap.php"/>
</menu>

I know, that one didn’t work either, I just tried it on my own site.

Here’s the fix:

<?xml version="1.0" encoding="iso-8859-1" ?>
<!-- menu control file for flyout-menu.php program -->
<!-- Ken True - available at http://saratoga-weather.org/scripts-CSSmenu.php -->
<!-- NOTE: this file must be correct XML with all tag items properly closed  -->
<!-- Structure of file is

  <menu>
     <item caption="Main 1" link="main1.php" title="topmost menu item"/>
	 <item caption="Main 2" title="Main menu number 2">
	    <item caption="Drop down 1" link="dropdown1.php"/>
	    <item caption="Drop down 2" link="dropdown2.php">
		   <item caption="Flyout 1" link="flyout1.php"/>
		   <item caption="Flyout 2" link="flyout2.php"/>
		   <item caption="Flyout 3" link="flyout3.php">
		     <item caption"Fourth Level Flyout 1" link"level4a.php"/>
		     <item caption"Fourth Level Flyout 2" link"level4b.php"/>
		     <item caption"Fourth Level Flyout 3" link"level4c.php"/>
		   </item>
		</item>
	    <item caption="Drop down 3" link="dropdown3.php"/>
	 </item>
   </menu>
   
 Failure to follow this structure or nest more than 4 sublevels
 may result in unexpected (and incorrect) results .. the top/sub1/sub2/sub3 four
 level menu should allow for highly complex websites.
 
 test your menu XML at http://validator.w3.org/ if you're having a problem.  The proper
 syntax will be checked and (hopefully) erata spotted for you.
-->
<menu>
	<item caption="Home" link="index.php" title="Home Page"/>
<!--
   <item caption="Live" title="Realtime display of weather conditions">
      <item caption="Weather-Display Live" 
      title="Realtime display of conditions using WDL" link="wxlive.php"/>

    </item>
-->
	<item caption="Radar">
	    <item caption="Local Radar" link="wxradar.php" title="Radar"/>
<!--
		<item caption="GRLevel3 Radar" link="wxgr3radar.php" title="NEXRAD Radar using GRLevel3" />
-->
	</item>
<!--
	<item caption="Mesomap" title="Mesomaps, Marine Buoys">
		<item caption="MesoMap Live" link="wxmesomap.php"
		title="Realtime display of nearby conditions using MML"/>
		<item caption="Nearby Buoys" link="wxbuoys.php"/>

	</item>
-->
	<item caption="Forecast &amp;amp; Advisories" title="Weather outlook">
		<item caption="Forecast details" link="wxforecast.php"/>
		<item caption="Advisories" link="wxadvisory.php" />
<!--
		<item caption="WXSIM Forecast details" link="wxsimforecast.php"/>
-->
	</item>
	<item caption="Almanac" title="Trends, Sun/Moon, Earthquakes">
		<item caption="Weather Trends" link="wxtrends.php"/>
		<item caption="Station Graphs" link="wxgraphs.php"/>
		<item caption="Station Monthly Reports" link="wxhistory.php"
		  title="Daily condition reports by Month" />
		<item caption="Sun/Moon Almanac" link="wxastronomy.php"/>
<!--
      <item caption="Earthquake activity" link="wxquake.php"/>
-->
        <item caption="UK Earthquakes" link="wxquakeUK.php"/>

   </item>

    <item caption="Links" link="wxlinks.php"/>
    <item caption="About" link="wxabout.php"/>
<!--  remove this and the finishing HTML comment line to enable the wxcontact.php form (if installed)
	<item caption="Contact" link="wxcontact.php"/>
 -->
    <item caption="Website Map" link="wxsitemap.php"/>
</menu>

:smiley: :smiley: :smiley: :smiley: Yes well done martin that got it sorted do I need to do the other adjustments bouy etc…

Vernon

I think that’ll do for tonight.

Tomorrow night we’ll get the Advisories working but you’ll need to download a .zip file for this.
If you want to download it now then the link is here: http://www.dynamicdrive.com/dynamicindex18/rssdisplaybox/rssdisplaybox.zip
The full instructions are here: Dynamic Drive DHTML Scripts- RSS Display Boxes
But I’ve already set it up so I can save you some time. :wink:

Once you’ve downloaded it, open the .zip and extract all the files to a new folder in your website directory (on your PC for now) and call the new folder “RSS”.
Then we’ll run through setting that up tomorrow. :wink:

:smiley: Great Martin thanks very much for all your help its been invaluable to me if I could buy you a beer or dram I would,
Thanks again

Vern…

good work guys !

Awesome! I love it when folks like Martin pitch in and work through the issues to help others out.

Great job!

:salute: :hello1: :angel5: =D> =D> =D>

Best regards,
Ken

Thanks guys. :smiley:

Now then Vern, are you ready for tonight’s installment?

If you’ve downloaded the .zip above into one folder called “RSS” then the next stage is actually an easy one.
In the folder called “rssbox”, open the file called “main.php” in your text editor and go down the page until you see these lines:

//Specify list of RSS URLs $rsslist=array( "bbc" => "http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml" //"nytimes" => "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml", //"dynamicdrive" => "http://www.dynamicdrive.com/export.php?type=new" //no trailing comma after last RSS URL!! );

Select them all and replace them with this:

//Specify list of RSS URLs $rsslist=array( "metoffice" => "http://www.metoffice.gov.uk/xml/warnings_rss.xml" //"bbc" => "http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml" //"nytimes" => "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml", //"dynamicdrive" => "http://www.dynamicdrive.com/export.php?type=new" //no trailing comma after last RSS URL!! );

Now save “main.php” and upload the whole RSS folder to your website.

Once that’s finished, open your “wxadvisory.php” file.
Select all the text in the file and replace it with this text:

<?php
############################################################################
# A Project of TNET Services, Inc. and Saratoga-Weather.org (WD-World template set)
############################################################################
#
#   Project:    Sample Included Website Design
#   Module:     sample.php
#   Purpose:    Sample Page
#   Authors:    Kevin W. Reed <[email protected]>
#               TNET Services, Inc.
#
# 	Copyright:	(c) 1992-2007 Copyright TNET Services, Inc.
############################################################################
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA
############################################################################
#	This document uses Tab 4 Settings
############################################################################
require_once("Settings.php");
require_once("common.php");
############################################################################
$TITLE= $SITE['organ'] . " - Warnings & Advisories";
$showGizmo = true;  // set to false to exclude the gizmo
include("top.php");
############################################################################
?>
<link rel="stylesheet" type="text/css" href="RSS/rssbox/rssdisplaybox.css" />
<script type="text/javascript" src="RSS/rssbox/virtualpaginate.js"></script>

<script type="text/javascript" src="RSS/rssbox/rssdisplaybox.js">

/***********************************************
* RSS Display Boxes-

:occasion5: :occasion5: :wav: :big1:Thank YOU again Martin done as you said I got the yellow box showing Great work, this should prove to be an invaluable topic to a lot of people out there.

A BIG thank to you for your time and effort

Best regards

Vernon

p.s I’m pondering over getting some web cam images on the site mmmm.