Need Help to Construct a Weather Web Site

After you change WD to upload index.php, you need to go back to your web site and delete the last index.htm that was uploaded.

Tried it. Deleted the index.htm after I changed WD to tick the “use .php extension.” Even renamed the home.htm file so it wouldn’t interfere. But when I try www.prattvilleweather.com, I get the OLD basic page, not the new .php one. I looked in my web site directory, and there is no index.htm, no home.htm, but there is a current index.php. Why it doesn’t display the index.php is a puzzle. Any more suggestions? I wanted to have the new site displayed when anyone googled “prattville weather” but now you just get the OLD web page. I cannot understand where the OLD page is coming from.

Could someone try just www.prattvilleweather.com and let me know what you see?

I still see your old page, even typing index.php bring the old one up.
The new one is on there but named wxindex.php.
What you need to do is change the name of the wxindex.php to index.php. It maybe best to do this on your PC and then upload it to the server so that it over-writes anything else on there.
You will also need to change the menu.php to point to index.php as the Homepage and not wxindex.php as it does now.

Also, untick the “use .php extention” as that’s not needed and could be confusing the issue as it could be uploading the old index file with a php extention and over-writing the new PHP file.

Just a word of advice garnered from experience…do one thing at a time…upload your change…check your page to see what happened. What app are you using to view/change/upload your pages?

Well, I’ve really screwed things up now!!! Recovered the wxindex.php file, but now it does not update at all. How can I now get it to update? I just want to return to where I was, but not sure how. I would like to have the index.htm as the default, showing the OLD page. Also, I would like a working wxindex.php page (it’s stuck on 12:55pm). I can just tell my friends to try the link: 太阳集团tyc539(中国)有限公司. That would be satisfactory. Help!! #-o

Note: I’m using the File Manager on iPower web server to upload, etc.

You’re right, Linda, I should do ONE thing at a time. I’ve been doing more than that, and that’s probably why I’ve messed things up so badly.

Added Note: The OLD page works fine with the basic link. All I need to do is get the wxindex.php file to update as before. Still cannot figure it out.

Holy cow, dude…I thought we were trying to get wxindex.php to be the default page. Has that changed?

Yes, I was trying to do that (having wxindex.php as the default), but nothing I did worked. :oops:

if you are using the customise internet and file creation setup then make sure you also change the remote file name (and extension) in the upload times for the file in question

Now I know I’m over my head since I don’t know how to do what you suggested, windy.

I mentioned earlier I was using the File Manager in iPower, but have usually used the SmartFTP software.

Your wxindex has stopped updating because your clientraw file isn’t uploading, the last upload was at 1255. Do you still have the yellow icon near the clock in the taskbar on your PC?
Also, you don’t have the trends-inc.html file uploading, but we’ll worry about that later.

As the site is sort of broken at the moment then lets get the files in the right place first.

If you have the wxindex.php from your website on your PC, make a copy of the file and save the copy as “index.php”.
Now upload the new “index.php” to your website.
Now check that the clientraw.txt is uploading by looking in your taskbar for the yellow icon, if you double click on the icon then a new window will appear and you should see the updates being uploaded.

Come back when you’ve done the above and we’ll look at some other things that you’ll need. :wink:

Thanks for helping me, Budgie. OK, I now have the items fixed you mentioned. The index.htm shows the OLD page (by default). The index.php and wxindex.php show the updating NEW page. And the yellow icon for updating the clientraw file is in the taskbar(it wasn’t there before - somehow I stopped it, I guess).

Now, what’s the next steps to getting the index.php as the default?

You need to stop the index.htm from uploading and delete it from the server as it will only create problems having two “index” files on there.

Go into WD Control Panel > FTP & Connection > Web Files Upload & Creation Times - remove all the times from the upload times window and click OK.

Now, if you can access the server, delete the index.htm file from the server.

When you’ve done that, come back & we’ll update the menus. :wink:

Yes!! I’ve done those items and now get the NEW page with the default link to my web site.

What further updates do I need to make now?

NOTE: I really appreciate your help!!!

Right then, on you PC - open “menubar.php” and scroll down until you reach the list of pages on your website.
Look for the line the says:

<li><a href="wxindex.php" title="Home">Home</a></li>

…and change it to this by removing the “WX” from the “wxindex.php”:

<li><a href="index.php" title="Home">Home</a></li>

As you don’t have Weather Display Live at the moment then you can put a “//” in front of this line of code:

<li><a href="wxlive.php" title="Weather Display Live">Live Weather</a></li>

GRlevel Radar isn’t required so remove so put “//” in front of this line:

<li><a href="wxgr3radar.php" title="NEXRAD Radar using GRLevel3">GRLevel3 Radar</a></li>

Do the same with these lines of code for the Mesomaps:

<li class="sub"><a href="#" title="Mesomaps, Marine Buoys">Mesomap<!--[if IE 7]><!--></a><!--<![endif]-->
    <!--[if lte IE 6]><table><tr><td><![endif]-->
    <ul>
    <li><a href="wxmesomap.php" title="Realtime display of nearby conditions using MML">MesoMap Live</a></li>
    </ul>

And this line for the WXSIM forecast:

<li><a href="wxsimforecast.php">WXSIM Forecast details</a></li>

All this does is removes the links from view, but leaves the code and the pages there so you can still use them in the future if you want too. :wink:

Now save the menubar.php file and upload it to the site.

That should be about it for what you have on the site now. Everything else is working fine. :smiley:

OK, I completed all the changes and commenting out in the menubar.php file on my PC. Then I uploaded it to my website, but didn’t see any difference in the menus on the left. When does this update?

Sorry, my mistake. #-o
That’s HTML code in that part so you’ll have to delete the lines of code I indicated to remove them from the menu and upload the menubar.php file again.
Maybe make a local backup copy of the menubar.php file before you delete the lines so you can upload those menu links in the future if you go for one of the items. :wink:

Sorry for the wasted effort on that one.

I forgot to say:
Remember to change:

  • Home
  • To this:

  • Home
  • Made the corrections. Deleted the appropriate lines in menubar.php. I had already changed the wxindex.php to index.php on the “Home” line.

    However, the web page still looks the same. The menu has not changed #-o That really stumps me - how could the menu items be displayed if the code has been deleted???

    Got it, you’ll have to remove the same lines from the “flyout-menu.xml” file and then upload that as well.

    I’ve not used the flyout menus so this is a bit of a learning curve for me. :wink:

    The XML editing is new to me, too. I tried to delete lines two different times in the “flyout-menu.xml” file, but just get a tag error when I try to load my web site. So I reset back to the file before I made the deletions, and it works as before, but with the extraneous menu items. of course. But that’s ok. I’ll eventually learn how to edit XML files without corrupting them.

    Again, thanks for your help!